browser icon
You are using an insecure version of your web browser. Please update your browser!
Using an outdated browser makes your computer unsafe. For a safer, faster, more enjoyable user experience, please update your browser today or try a newer browser.

Fine-tuning SpamAssassin LG #105

Posted by on September 20, 2007

Fine-tuning SpamAssassin LG #105

Whitelisting is usually done with the settings whitelist_from and whitelist_to. These can be repeated as many times as you like. Simple globbing patterns (see “man bash” and search for “Pattern Matching” for a description) are used to specify wildcard matches. E.g., ‘?’ matches a single character and ‘*’ matches any number of characters (including zero.) whitelist_from and whitelist_to subtract 100 points from the score, making it very rare for matching emails to reach the spam threshold.whitelist_from nice.but_clueless@example.net
whitelist_from *@importantclient.example.com

Also available are options more_spam_to, all_spam_to. According to the documentation, “There are three levels of To-whitelisting, whitelist_to, more_spam_to and all_spam_to. Users in the first level may still get some spammish mails blocked, but users inall_spam_to should never get mail blocked.”

Whitelist_from was giving -100.0, but whitelist_to was giving -6.0 with Spamassassin 3.2.3, but when I used all_spam_to, I saw the -100.0 score. I applied this to a client who gets mail that is caught too often, so I’ll let them deal with the spam on the client end.