[Mimedefang] Re: Skipping filtering for outbound mail (was Re: [Mimedefang] MIMEDefang2.28-BETA-2 is available)

Albert E. Whale aewhale at ABS-CompTech.com
Wed Dec 11 11:40:01 EST 2002


"David F. Skoll" wrote:

> On Tue, 10 Dec 2002, Philip Clever wrote:
>
> > Hey David can you supply an example of code using this to block a couple of
> > ranges for outbound mail?  Some of us aren't real Perl savvy but getting
> > this feature to work would ROCK!  Does this need to go in a  filter_sender
> > sub?  I don't think we have one in our current filter.
>
> 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");
> }
>
> --
> David.

David,

I get Errors when I attempt to use the Variables 'ACCEPT_AND_NO_MORE_FILTERING'
or 'CONTINUE'.  Where are these Defined?

--
Albert E. Whale - CISSP
http://www.abs-comptech.com
----------------------------------------------------------------------
ABS Computer Technology, Inc. - ESM, Computer & Networking Specialists
Sr. Security, Network, and Systems Consultant
Board of Directors - InfraGard - Pittsburgh, PA





More information about the MIMEDefang mailing list