Skipping filtering for outbound mail (was Re: [Mimedefang] MIMEDefang 2.28-BETA-2 is available)

Philip Clever philip at turquoise.net
Wed Dec 11 15:38:01 EST 2002


David,

Thanks it works like a champ, I Jumped from 2.26 to beta .28 so hopefully
we'll see more stable slave proccesses as well on the our Solaris 9 box.

-Philip

> It should go in filter_relay, and you need the "-r" option on
> mimedefang.  Anyway, let's say you don't want to scan mail from
> 127.0.0.1, 192.168.3/24 or 192.168.4.4.  This will do the trick:
>
> sub filter_relay {
>     my($hostip, $hostname, $helo) = @_;
>     if ($hostip eq '127.0.0.1' or
>         $hostip eq '192.168.4.4' or
>         $hostip =~ /^192\.168\.3\./) {
>         return ('ACCEPT_AND_NO_MORE_FILTERING', "ok");
>     }
>     return ('CONTINUE', "ok");
> }


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.427 / Virus Database: 240 - Release Date: 12/10/2002




More information about the MIMEDefang mailing list