[Mimedefang] SA "Whitelist_to"?

Ben Kadish Ben.Kadish at happcontrols.com
Wed May 29 11:55:14 EDT 2002


Hi All,

I'm trying to setup my filter such that if there's a match in the recipient 
list against a list I specify, it sets a logical and SpamAssassin doesn't 
touch it. Here are the deltas in the mimedefang-filter file:

Added to filter_begin:

     $SAskip = 0;
     @SAskipaddrs = ("addr1 at to.skip");
     for $rec (@Recipients) {
         for $addr (@SAskipaddrs) {
             if ($addr =~ m/$rec/) { $SAskip = 1 };
         }
     }

Also in filter_begin, to match my logical:

if ($Features{"SpamAssassin"}) {
         if ((-s "./INPUTMSG" < 256*1024) && ($SAskip == 0))

Yes, I am aware this adds extra overhead and is potentially bad, but it's a 
business need. Does anyone have any suggestions/examples/etc.?

Thanks,

----------
Ben Kadish              Ben.Kadish at happcontrols.com
Network Analyst
Happ Controls, Inc.

DSA Public Key 86EEC8F6 available from http://wwwkeys.us.pgp.net
----------





More information about the MIMEDefang mailing list