[Mimedefang] whitelist basic questions

Jeffrey Goldberg jeffrey at goldmark.org
Sat Apr 26 20:13:00 EDT 2003


On Sat, 26 Apr 2003, Charles Mount wrote:

> I need to whitelist about 300 domains to bypass spam checking [...]

> [...] The examples I see of whitelist_from in
> /etc/mail/spamassassin/sa-mimedefang.cf.example only show how to
> whitelist single addresses.  Does including a top level domain
> automatically work for all subdomains?  For example, would including edu
> or .edu or *.edu cover harvard.edu, yale.edu, med.harvard.edu, and
> pe.yale.edu?

What I've got in /etc/mail/spamassassin/local.cf is

 # Add mydomain.com to white list.  Note that this will allow mail FORGED
 #  from mydomain to pass through.

 whitelist_from *@mydomain.com
 whitelist_from *.mydomain.com

My reading of perldoc Mail::SpamAssassin::Conf leads me to suspect that
both of those lines are needed.  I didn't test with just the second one.

> Does blacklist_from work the same way as whitelist_from?  Which runs first?
> Can I blacklist one user or one server and whitelist everything else or
> visa-versa?  Can I blacklist certain usernames at all domains like
> offers@*.* ?

According to the SpamAssassin docs yes.  Note that there is an
"unwhitelist_from" and "unblacklist_from".

> Is there also whitelist_to and blacklist_to ability somewhere.

According to the documentation, yes.

> Are these included in a hash table or some such structure for rapid
> execution, or is this a list which is checked one at a time?

This I don't really know.  I'm still not entirely clear how these whole
things in invoked so that there isn't massive perl startup overhead with
each message.  Since I'm not clear on how that magic works, I'll leave it
to others to answer that question.

> This is a PRIVATE message. If you are not the intended recipient,

You posted that to a mailing list.  I'll keep this one in mind the next
time I add to

  http://www.goldmark.org/jeff/stupid-disclaimers/

-j

-- 
Jeffrey Goldberg                            http://www.goldmark.org/jeff/
 Relativism is the triumph of authority over truth, convention over justice
 Hate spam?  Boycott MCI! http://www.goldmark.org/jeff/anti-spam/mci/



More information about the MIMEDefang mailing list