Difference between revisions of "SpamAssassin"

From Nuclear Physics Group Documentation Pages
Jump to navigationJump to search
Line 26: Line 26:
 
=== Plugins ===
 
=== Plugins ===
  
 +
SpamAssassin plugins are found in: /usr/lib/perl5/vendor_perl/5.8.8/Mail/SpamAssassin
  
 +
==== AutoWhiteList ====
 +
 +
See: http://wiki.apache.org/spamassassin/ManualWhitelist
 +
 +
This automatically adds spam messages to a blacklist and not-spam (i.e. ham) to a whitelist.
  
 
== '''Important Note''' ==
 
== '''Important Note''' ==
 
SpamAssassin needs to have a user account named spamd, and this has to be a local account as well as being in the LDAP database.
 
SpamAssassin needs to have a user account named spamd, and this has to be a local account as well as being in the LDAP database.

Revision as of 19:18, 23 September 2014

Setup

We are using a fairly standard SpamAssassin setup, close to the default. Any variations from default MUST be noted here. Spam is getting out of hand, so the most basic setup is no longer sufficient.

Basic

A reference in /etc/postfix/master.cf lets the mail system know to use spamassassin, i.e. "spamd"

Sieve

For spam filtering to work, each user needs a sieve script that directs the spam somewhere else. The most basic .sieve script is:

#  a simple SPAM filter
#
require "fileinto";

if header :contains "X-Spam-Flag" "YES" {
#
#  move messages with "X-Spam-Flag: YES" header
#  into "spam" folder
#
	fileinto "INBOX.SPAM";
}

Plugins

SpamAssassin plugins are found in: /usr/lib/perl5/vendor_perl/5.8.8/Mail/SpamAssassin

AutoWhiteList

See: http://wiki.apache.org/spamassassin/ManualWhitelist

This automatically adds spam messages to a blacklist and not-spam (i.e. ham) to a whitelist.

Important Note

SpamAssassin needs to have a user account named spamd, and this has to be a local account as well as being in the LDAP database.