Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Whitelisting a user

Adding a user to your whitelist gives them a -100 score, which has the effect of always marking their mail as non-spam.

To manually whitelist a particular address, say d.cary@sparkingwire.com, edit your local user prefs file ( ~/.spamassassin/user_prefs ):

No Format
# whitelist David d.caryCary:
whitelist_from  d.cary@sparkingwire.com

...

No Format
# whitelist everyone at sparkingwire.com:
whitelist_from  *@sparkingwire.com

To manually blacklist, use blacklist_from to add an address to your blacklist.

If the sender is at all well known (such as a mailing list), you should use whitelist_from_rcvd instead so that a spammer can't forge their mail to look like it's from the whitelisted address. More info on whitelist_from, whitelist_from_rcvd, and blacklist_from is in the man pages; type perldoc Mail::SpamAssassin::Conf.

Some good, free web-based tools are available to put a friendly user interface on whitelists (and blacklists) and allow users to edit their own. See WebUserInterfaces.

To manually blacklist,

use spamassassin --add-addr-to-blacklist=addr to add one address to your blacklist.

...

How do I force AutoWhitelist certain addresses?

DavidCaryYes. Technically, you can use spamassassin --add-addr-to-whitelist and similar. --JustinMasonKeep in mind that running these commands will edit the AWL for the logged in user. If you are using Spamassassin with, for example AMAVIS, you'll need to switch to that user first, but don't. The AutoWhitelist is designed as a score averaging system, not as a whitelisting system. If you want to manually whitelist, you should use the directions from the previous section.

contributors