Dave's Brain

Browse - Computer Tips - How do I tell Spam Assassin that some mail is not spam (whitelist) ?

Date: 2010apr16
Product: Spam Assassin

Q.  How do I tell Spam Assassin that some mail is not spam (whitelist) ?

A.  If Spam Assassin is marking some mail you regular get as spam
you can set up a rule to indicate that its not.

For example if mail from your discount brokerage is flagged as a scam you
can do this.

Create file /usr/share/spamassassin/99_my_broker.cf with contents:

##{ FH_MY_BROKER header FH_MY_BROKER From =~ /mybroker.com/ describe FH_MY_BROKER Appears to be from my broker score FH_MY_BROKER -10 ##} FH_MY_BROKER
The negative score will counteract any positive points the mail may get. You can perform matchs on all other mail fields too.

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.