I run MailScanner and SpamAssassin here at SDJL, which does a great job of catching spam and nasty email content.
Recently there’s been quite of spammy email getting through those filters. I made a couple of changes to the default rules in place and I seem to be catching most of the spam now.
Here’s my custom SpamAssassin rule set for those that want to make use of it.
score BAYES_99 5.0 score URIBL_SBL 5.0 score URIBL_AB_SURBL 5.0 score URIBL_OB_SURBL 5.0 score URIBL_PH_SURBL 5.0 score URIBL_SC_SURBL 5.0 score URIBL_WS_SURBL 5.0 score URIBL_JP_SURBL 5.0 score BAYES_00 -2.0 score RCVD_IN_NJABL_DUL 2.5 score FORGED_RCVD_HELO 0.6 score RCVD_IN_SORBS_DUL 3.7 score RCVD_IN_SORBS_WEB 2.0
Original spam rules were from ConfigServer, but I’ve added a few of my own to make it even more aggressive.
To use these rules, create a file called /etc/mail/spamassassin/sdjl.cf and add the above code to it.
If you utilise MailScanner, reload it using the following command.
service MailScanner reload