[Mimedefang] Local Mail

Joshua Bowser sysadmin at greenwood.net
Tue Feb 11 09:56:02 EST 2003


Richard... I'm not sure about that. I'm just learning here. However, I
do think I have some code that is working for me... just for anyone in
the future that attempts to not scan local outgoing mail...

I created an array for my local IPs....

@localips = qw(
            205.247.45
            208.23.186
            207.15.63
            );

And then in filter_relay sub:

    my ($hostip, $hostname, $helo) = @_;
    foreach $ipcheck (@localips) {
        if ($hostip =~ /$ipcheck/) {
             return ACCEPT_AND_NO_MORE_FILTERING
        }
        return CONTINUE
    }

I've only been testing this for a day or so now, but it seems to be
working...


	-Joshua-

-----Original Message-----
From: mimedefang-admin at lists.roaringpenguin.com
[mailto:mimedefang-admin at lists.roaringpenguin.com] On Behalf Of Richard
Cooper
Sent: Tuesday, February 11, 2003 5:46 AM
To: mimedefang at lists.roaringpenguin.com
Subject: RE: [Mimedefang] Local Mail


> I'm trying to not run spam checks for all OUTGOING mail. Being that
> sometimes local users (we're a dialup ISP) get blocked when 
> sending out.
> Big pain... I've tried 2 or 3 different methods of doing 
> this, but seem
> to always bomb mimedefang, or end up with non-local originating mail
> slipping through. I tried an alteration of Richard Coopers 
> suggestion...
> but maybe I didn't put it in the right sub...  Anyways, I was hoping
> someone has already jumped this hurdle and had written something that
> actually works... hehe. If anyone has any ideas, please let me know!
> Thanks in advance.

I can't claim credit for it, Perl just makes my brain hurt :). I wish I
could remember who posted it to properly credit them. It does however
work fine for me in sub filter_end - I actually use it to attach
boilerplates to outgoing messages only and spam checks are also called
in filter_end. Would there be any problems with $RelayAddr outside
filter_end?

Cheers
Ric

-- 
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed.

If you have received this email in error please notify the
originator of the message. This footer also confirms that this
email message has been scanned for the presence of computer viruses.

Any views expressed in this message are those of the individual
sender, except where the sender specifies and with authority,
states them to be the views of Digital Animations Group.





More information about the MIMEDefang mailing list