Spam Assassin is a perl-based software that helps users detect and
filter 'spam' email.
Spam assassin works well with procmail, our default mail delivery
agent. (Please look at our howto for procmail
for help on setting up initial .procmailrc)
The following two lines need to be put in user's .procmailrc
Spam assassin with procmail
By default, spam assassin will add the following header lines
If mail is tagged as spam, it can then be caught by the following
* ^X-Spam-Status: Yes
Spam assassin with .maildelivery
- Modify ~/.forward to call SpamAssassin. It will be called prior to delivering a message via NMH's slocal.
"| /usr/local/bin/spamc | [mhdir]slocal -user username"
- Modify ~/.maildelivery to include a rule to transfer messages SpamAssassin has marked as suspect into a spam folder (create a spam folder as neccessary).
# SpamAssassin has marked this as being suspect, move it to the spam folder
X-Spam-Flag Yes | ? "[mhdir]rcvstore +spam"
[mhdir] is /usr/local/mh/lib/
Help With SpamAssassin
More information on Spam Assassin is available at
There's a mailing list for support or discussion of SpamAssassin. It
lives at . See
http://spamassassin.org/lists.html for the sign-up address and a
link to the archive of past messages.
- An email that I received is incorrectly tagged as
spam. What do I do?
In your home directory there is a subdirectory .spamassassin
that contains all spamassassin configurations. You can alter
spamassassin behavior using file user_prefs .
For more details on user preferences, please visit
Spam assassin's user preference page.
- A spam email that I received was not caught by spam
The same file user_prefs can be used to "blacklist" as well as "whitelist"
sites, domains or individual emails.