How to reject emails that tagged as SPAM by spamassassin
April 8, 2019 at 11:33 am Leave a comment
Hi Guys,
I have wrote a seperate blog post on how to configure spamassassin ,spamass-milter & sendmail to combat SPAM. But this article focus on how to reject emails that are tagged as SPAM by spamassassin. By default the emails will not be rejected , and it will be delivered to the MTA as it is.
In order to achieve this , you need to modify the spamass-milter configuration file in /etc/sysconfig/spamass-milter , and uncomment the line
EXTRA_FLAGS=”-m -r 15″
and modify the -r value to based on your needs, and leave the -m as it is, this will prevent the spamass-milter modifying the header. In my case I have set the -r value to 5 . Do not forget to restart the spamassassin , spamass-milter & sendmail services.
That’s it.
Entry filed under: Linux. Tags: EXTRA_FLAGS, reject, spamass-milter.
Trackback this post | Subscribe to the comments via RSS Feed