Blue Flower

Monday, 06 July 2015 00:35

Optimizing qmail/SpamAssassin to catch more Spams

Written by
Rate this item
(0 votes)

When you first install SpamAssassin from either source, rpm or Ports, The default setup for SpamAssassin still allows a lot of spams to still get through. The following are a few recommended things to use to help SpamAssassin filter more spams out for you.

If you happen to get a lot of spams to invalid users, I would highly suggest taking a look at john Simpsons validrcptto patch. This is included with his combined patch as well. If you use his patch, you will also need to replace the original qmail-smtpd/run script with Johns as it breaks smtp-auth. Take a look at the following URLs

http://qmail.jms1.net/patches/
http://qmail.jms1.net/scripts/

If you would like to enable jgreylist, follow this website:

http://qmail.jms1.net/scripts/jgreylist.shtml

The next thing I would recommend is to enable the Bayes Database. Take a look at:

http://freebsdrocks.net/index.php/13-useful-qmail-utilities/61-how-to-enable-bayes-autolearning

 I would suggest adding rules to SpamAssassin to mark up messages better. The only thing I have found about some of these rules is that when you run spamassassin --lint, You do get some errors from time to time.

http://freebsdrocks.net/index.php/16-useful-qmail-utilities/spamassassin/58-how-to-add-rules-to-spamassassin 

You can also enable razor/pryzor here:

http://freebsdrocks.net/index.php/13-useful-qmail-utilities/52-installing-and-configuring-razor-and-pryzor

Another good thing to use is SpamAssassin Auto-Learning with Site-Wide Bayes and User Feedback. This will allow your users to send spams or hams via forwarding as an attachment to report them to bayes as ham or spams.

http://freebsdrocks.net/index.php/16-useful-qmail-utilities/spamassassin/59-spamassassin-auto-learning-with-site-wide-bayes-and-user-feedback

If you implemented the site-wide bayes with feeedback, adding the Squirrelmail spam or ham reporting option makes reporting via Squirrelmail really simplistic.

http://freebsdrocks.net/index.php/13-useful-qmail-utilities/47-setting-up-ham-and-spam-buttons-for-squirrelmail

There are some new spams going around that are gifs. Here is a link on how to get rid of those types of spams:

http://freebsdrocks.net/index.php/16-useful-qmail-utilities/spamassassin/57-fuzzyocr-walkthrough

Read 2333 times Last modified on Thursday, 19 May 2016 01:56

Leave a comment

Make sure you enter all the required information, indicated by an asterisk (*). HTML code is not allowed.