Personal tools
You are here: Home Local HOWTOs Configuring Spamassassin
Document Actions

Configuring Spamassassin

by Pearu Peterson last modified 2009-07-16 17:23

Howto configure spamassassin

  • Login to kev.
  • Create a file ~/cens/.procmailrc containing the following code
:0fw
| /usr/bin/spamassassin -P
:0:
* ^X-Spam-Status: Yes
mail/SPAM
  • Execute
cd ~/cens
mkdir .spamassassin
chmod go-rx .spamassassin

To verify that spamassassin is working, check if ~/cens/.spamassassin/user_prefs will be created when you recieve a new mail.

You can add white and black list patterns to user_prefs for tuning spam filtering.

There is also the tool sa-learn, execute

sa-learn --mbox --spam <filename> #for training spam mail
sa-learn --mbox --ham <filename> #for training non-spam (=ham)

NB! sa-learn needs to be exactly the same version as the spamassassin on the mail server! 

 

 


Powered by Plone, the Open Source Content Management System