[Mimedefang] Incoming specific email address

Jason Englander jason at englanders.cc
Tue Sep 2 18:07:00 EDT 2003


On Mon, 1 Sep 2003, Carol Man wrote:

> I got here... but just to finish better: I have to
> create a file named 'whitelist.cf' and put inside of
> it the addresses that I want to income, right? Because

You can't just put addresses in there alone, they have to be SpamAssassin
confiration entries like this:

whitelist_from jason at englanders.cc
whitelist_from johndoe at foo.org janedoe at foo.org
whitelist_from_rcvd lists.roaringpenguin.org

See 'man Mail::SpamAssassin::Conf' for more info about those and others
like blacklist_from, whitelist_to, and so on.


For a normal, small, simple MD + SA installation I just put every
configuration setting that I need (including whitelist and blacklist
entries) in /etc/mail/spamassassin/sa-mimedefang.cf

I had a client that had a file in /usr/share/spamassassin named
90_whitelist.cf or something like that.  Everything in there was a
whitelist_from or whitelist_from_rcvd line.  I put the file there, they
tested it and told me that it was being used.  They had already been
using the file with an older MD + SA installation (different machine).  I
wrote their new MD filter and SA configuration
(/etc/mail/spamassassin/sa-mimedefang.cf), I didn't pass any config
file(s) to the spam_assassin_* functions.  They had hundreds of lines in
the whitelist, and the file was auto-generated from a db periodically, so
it had to be a separate file.  [ after a while I switched it to a
whitelist read in by MD at slave startup where it would just skip calling
SA at all for those recipients ]

Just remember that the config file (wherever it is) has to be readable by
at least the user that runs MIMEDefang ('defang' for most people, or it
can be world readable).  And only newly started slave mimedefang processes
will see the configuration update, so you may want to restart or reload
MIMEDefang.

  Jason

-- 
Jason Englander <jason at englanders.cc>
394F 7E02 C105 7268 777A  3F5A 0AC0 C618 0675 80CA




More information about the MIMEDefang mailing list