Using Bogofilter with Spam Assassin
For deadly-accurate spam filtering, combine a well-trained bogofilter with SpamAssassin. Here's how.
Add the following lines to your procmailrc file, before you run SpamAssassin:
:0HB * ? bogofilter { :0fw | formail -I "X-Spam-Bogofilter: yes" }
Add the following lines to your /etc/spamassassin/local.cf
file:
header BOGOFILTER X-Spam-Bogofilter =~ /yes/ describe BOGOFILTER Message has too many bogons. score BOGOFILTER 5.0
Presto! This plugs almost all the holes in SpamAssassin's defense, and uses SpamAssassin's auto-whitelist (you've got it turned on, right?) to protect against false positives.
Want to contact me about this article? Or if you're looking for something else to read, here's a list of popular posts.