[Mimedefang] Perl Question

Tony Nugent tony at linuxworks.com.au
Thu Dec 19 20:23:00 EST 2002


On Thu Dec 19 2002 at 05:24, Dirk Mueller wrote:

> On Mit, 18 Dez 2002, Jason Englander wrote:
> 
> > ...but $Sender can have <> around it too, so you may want to do something
> > like this instead (the tr part removes the <>):
> 
> ... or simply use the whitelist_from option in SpamAssassin, which reacts on
> the body From (which is more reliable to test on than the envelope from).

As usual, with unix there is almost always more than one way to
achieve the same end result :-)

But by "whitelisting" specific email in the filter, needless (and
resource-expensive) SA filtering can be avoided altogether - which
can be a performance issue in some situations.

Early in my own filters, I check the sender address against a
whiltelist and set a global $whitelisted flag if there is a
match... then filter_end() doesn't do spam-filtering if that flag is
true.

If the whitelist changes frequently, then rather than hard-coding
the changes into the filter and having it re-read, someone recently
posted some perl code that could allow accessing this sort of data
from an external database.

> Dirk (received 105 mails today)

(is that all? :)

Cheers
Tony



More information about the MIMEDefang mailing list