SpamAssassin

Use SpamAssassin

Do you want to detect spam using the very good SpamAssassin package? You must have installed SpamAssassin before using this option, otherwise MailScanner will not start properly.


Max SpamAssassin Size

SpamAssassin is quite slow when processing very large messages. To work round this problem, this option provides a maximum size for messages that are processed with SpamAssassin. Most real spam is usually less than about 50,000 bytes per message.

Required SpamAssassin Score

This gives the minimum SpamAssassin score value above which messages are spam. This replaces SpamAssassin's own "required_hits" value, so that it can be a ruleset and set to different values for different users/domains.

High SpamAssassin Score

Messages with a SpamAssassin score greater than this value are labelled as being "High Scoring Spam", and a different set of "Spam Actions" are applied to messages scoring at least this value.

SpamAssassin Auto Whitelist

SpamAssassin has a feature which measures the ratio of spam to non-spam originating from different addresses, and will automatically add addresses to its own internal "whitelist" if most of the messages from an address is not spam. This option enables this feature of SpamAssassin. Please read their documentation for more information.

SpamAssassin Prefs File

SpamAssassin uses a "user preferences" file which can be used to set the values of various SpamAssassin options. This is the name of that file. Its most useful feature is that the RBL/DNSBL/"Spam List" checks done by SpamAssassin can be disabled as MailScanner already does them and there is little to be gained by doing these checks twice for every message.

SpamAssassin Timeout

This option sets the maximum number of seconds to wait for SpamAssassin to process a message. This is a useful protection against occasional bugs in SpamAssassin that can cause it to take hours to process a single message.

Max SpamAssassin Timeouts

If several consecutive calls to SpamAssassin time out, then MailScanner decides that there is something stopping SpamAssassin from working properly. It will therefore be disabled for the next few hours until MailScanner restarts itself, at which point it will be tried again.

Check SpamAssassin If On Spam List

If a message has already triggered any of the "Spam List" checks, the SpamAssassin check will be skipped if this option is set to "no". This can help reduce the load on your server if SpamAssassin checks take a long time for some reason.

Always Include SpamAssassin Report

If this option is set, then the "Spam Header" will be included in the header of every message, so its presence cannot be used to filter out spam by your users' e-mail applications.

Spam Score

If a message is spam, and this option is set, then a header will be added to the message containing 1 character for each point in the SpamAssassin score. This allows users to choose for themselves the SpamAssassin scores at which they want to do different things with the message, such as file it or delete it.

SpamAssassin User State Dir

The per-user files (bayes, auto-whitelist, user_prefs) are looked for here and in ~/.spamassassin/. Note the files are mutable.
If this is unset then no extra places are searched for.
If using Postfix, you probably want to set this as shown in the example line at the end of this comment, and do
mkdir /var/spool/MailScanner/spamassassin
chown postfix.postfix /var/spool/MailScanner/spamassassin
SpamAssassin User State Dir = /var/spool/MailScanner/spamassassin

SpamAssassin Install Prefix

This setting is useful if SpamAssassin is installed in an unusual place, e.g. /opt/MailScanner.
The install prefix is used to find some fallback directories if neither of the following two settings work.
If this is set then it adds to the list of places that are searched; otherwise it has no effect.

SpamAssassin Local Rules Dir

The site-local rules are searched for here, and in prefix/etc/spamassassin, prefix/etc/mail/spamassassin, /usr/local/etc/spamassassin, /etc/spamassassin, /etc/mail/spamassassin, and maybe others.
If this is set then it adds to the list of places that are searched; otherwise it has no effect.

SpamAssassin Default Rules Dir

The default rules are searched for here, and in prefix/share/spamassassin, /usr/local/share/spamassassin, /usr/share/spamassassin, and maybe others.
If this is set then it adds to the list of places that are searched;otherwise it has no effect.