<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Well, you can create rules in
spamassassin not amavis as far as I know. However, creating rules
based on Message-ID is generally a bad idea because you will might
get false pasitives. If you are still insisting to filter on
Message-ID, insert something like below in your spamassassin
local.cf file:<br>
<br>
header FANEX-US Message-ID =~ /fanex-us\.local\b/i<br>
score FANEX-US 5<br>
<br>
The regex above SHOULD match fanex-us.local and spamasassin will
assign it a score of 5. Of course adjust the score to whatever you
want.<br>
<br>
Hope this helps<br>
<br>
<br>
On 9/14/2016 11:11 PM, Indunil Jayasooriya wrote:<br>
</div>
<blockquote
cite="mid:CAJF2yJTdPD7HV9Jfz7oK=xpiorVKMhYtVM5FoGrKQi+c2BrvNQ@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<div dir="ltr"><br>
<div class="gmail_quote"><br>
<br>
<div dir="ltr">Hi list,<br>
<div><br>
<br>
I want to know if amavisd-new can bock mails based on
Message-ID:, when it has a particular PATTERN?<br>
<br>
<br>
</div>
<div>I get mails whose Message-ID s are like these?<br>
<br>
<br>
</div>
<div>Message-ID: 861dfa65-7e64a83d-4434-525d-<wbr>clmthigeer-PC-EXC02.Fanex-us.<wbr>local<br>
<br>
Message-ID: fe8e9914-909f386c-dd43-fa1c-<wbr>clmthigeer-PC-EXC02.Fanex-us.<wbr>local<br>
<br>
Message-ID: 71fce904-aa6368fb-ebc9-172f-<wbr>clmthigeer-PC-EXC02.Fanex-us.<wbr>local
<br>
<br>
Message-ID: c4aaf04e-24c231f0-12bb-1f68-<wbr>clmthigeer-PC-EXC02.Fanex-us.<wbr>local
<br>
<br>
<br>
</div>
<div>Now we can see every mail shares the string <b>clmthigeer-PC-EXC02.Fanex-us.<wbr>local
<br>
<br>
<br>
</b></div>
<div><b>Can I have a Regex to block it in amavisd-new? <br>
<br>
<br>
</b></div>
<div><b>hope to hear from you.<span class="HOEnZb"><font
color="#888888"><br>
<br>
<br>
</font></span></b></div>
<span class="HOEnZb"><font color="#888888">
<div><br>
<br>
<br>
<br>
<div><br>
<br>
<br clear="all">
<div><br>
-- <br>
<div data-smartmail="gmail_signature">
<div dir="ltr">cat /etc/motd<br>
<br>
Thank you<br>
Indunil Jayasooriya <br>
<a moz-do-not-send="true"
href="http://www.theravadanet.net/"
target="_blank">http://www.theravadanet.net/</a><br>
<a moz-do-not-send="true"
href="http://www.siyabas.lk/sinhala_how_to_install.html"
target="_blank">http://www.siyabas.lk/sinhala_<wbr>how_to_install.html</a>
- Download Sinhala Fonts<br>
<br>
</div>
</div>
</div>
</div>
</div>
</font></span></div>
</div>
<br>
<br clear="all">
<br>
-- <br>
<div class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">cat /etc/motd<br>
<br>
Thank you<br>
Indunil Jayasooriya <br>
<a moz-do-not-send="true"
href="http://www.theravadanet.net/" target="_blank">http://www.theravadanet.net/</a><br>
<a moz-do-not-send="true"
href="http://www.siyabas.lk/sinhala_how_to_install.html"
target="_blank">http://www.siyabas.lk/sinhala_how_to_install.html</a>
- Download Sinhala Fonts<br>
<br>
</div>
</div>
</div>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<img src="cid:part5.02030807.06080602@deeztek.com" alt="Hermes
Secure Email Gateway"><br>
<b>Hermes Secure Email Gateway</b><br>
Hermes Secure Email Gateway combines Open Source technologies such
as Postfix, Apache SpamAssassin, ClamAV, Amavisd-new, MySQL and
CipherMail under one unified web based Web GUI for easy
administration and management of your incoming and ougoing email
for your organization. Anti-spam, anti-virus and anti-malware
protection, encrypted S/MIME, encrypted PDF and SMTP TLS support,
built-in email archiving, end-user self-service web gui.
<br>
<br>
Download the free open-source appliance at:<br>
<a href="">http://www.deeztek.com/hermes-secure-email-gateway/</a></div>
</body>
</html>