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:
header FANEX-US Message-ID =~ /fanex-us\.local\b/i
score FANEX-US 5
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.
Hope this helps
On 9/14/2016 11:11 PM, Indunil Jayasooriya wrote:
Hi list,
I want to know if amavisd-new can bock mails based on Message-ID:,
when it has a particular PATTERN?
I get mails whose Message-ID s are like these?
Message-ID: 861dfa65-7e64a83d-4434-525d-clmthigeer-PC-EXC02.Fanex-us.local
Message-ID: fe8e9914-909f386c-dd43-fa1c-clmthigeer-PC-EXC02.Fanex-us.local
Message-ID:
71fce904-aa6368fb-ebc9-172f-clmthigeer-PC-EXC02.Fanex-us.local
Message-ID:
c4aaf04e-24c231f0-12bb-1f68-clmthigeer-PC-EXC02.Fanex-us.local
Now we can see every mail shares the string
*clmthigeer-PC-EXC02.Fanex-us.local
*
*Can I have a Regex to block it in amavisd-new?
*
*hope to hear from you.
*
--
cat /etc/motd
Thank you
Indunil Jayasooriya
http://www.theravadanet.net/
http://www.siyabas.lk/sinhala_how_to_install.html
<http://www.siyabas.lk/sinhala_how_to_install.html> - Download
Sinhala Fonts
--
cat /etc/motd
Thank you
Indunil Jayasooriya
http://www.theravadanet.net/
http://www.siyabas.lk/sinhala_how_to_install.html - Download Sinhala
Fonts
--
Hermes Secure Email Gateway
*Hermes Secure Email Gateway*
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.
Download the free open-source appliance at:
http://www.deeztek.com/hermes-secure-email-gateway/