Teaching Spam Assassin

016th Feb 2010Systems Administration, , ,

This was written about running Spamassassin, Exim on CentOS Linux

As SPAM evolves the techniques used change over time, it is because of this that mail servers running the very popular “Spamassassin” software should keep it up to date.

If you’re receiving a lot of spam, don’t delete them… Move it all into a “Spam” directory in your IMAP account so that we can use them to enlighten the anti spam software.

In order to teach Spamassassin first we need to introduce it to the spam you’ve stored:

$ sa-learn -u exim --dbpath ~exim/.spamassassin/ --spam [MAILDIR CONTAINING SPAM]

Now delete all this SPAM from your mailbox.

Finally we should also show Spamassassin what valid email looks like, by knowing these two it will be able to make a more “informed” decision on whether a message is SPAM or HAM.

$ sa-learn -u exim --dbpath ~exim/.spamassassin/ --ham [MAILDIR CONTAINING VALID MAIL]

No Comments Comments Feed

Add a Comment

*

Spam protection by WP Captcha-Free