SpamAssassin

Configuration
SpamAssassin comes with a number of modules (or plugins) that can be enabled or disabled via configuration files. These files can be found under. When new plugins appear in a release of SpamAssassin, they are configured in a file named (for example), which corresponds to SpamAssassin v3.4.1 and contains configuration for new plugins as of that version.

Your local configuration belongs in ; however, any file with a  suffix (in that same directory) will be loaded by SpamAssassin.

Bayes SQL database
By default, SpamAssassin comes configured to use BerkeleyDB for its bayes database. If you chose some other database (e.g.,  , or  ), then you will need to configure SpamAssassin to use that database before SpamAssassin will run.

Detailed instructions are provided with SpamAssassin and can be found in within your SpamAssassin documentation directory (something like ).

Spam detection rules
Our SpamAssassin ebuilds do not ship any rules. You need to download these yourself after SpamAssassin has been installed. The simplest way to do this is to run, but first, you need to download and install the SpamAssassin project's GPG key (so that the authenticity of the rules can be verified).

To install the GPG key,

Now you should be able to download the rules:

To improve performance, you may also wish to compile the rules:

(that should output a bunch of junk).

Daily updates
The SpamAssassin project regularly releases new and updated rules. It is a good idea to schedule your updates (at least) daily, so that your rules are never out of date. A cron job is ideal for this, and newer revisions supply one. Just set  and re-emerge.