[Mimedefang] Re: How to exclude localhost from MD/SA checks

Stefano McGhee SMcGhee at ARCweb.com
Fri Sep 20 10:32:01 EDT 2002


Hello all,
	Thanks David and Ellen.  David's logic was what I was looking for,
but implemented in a way similar to Ellen's.  I was also looking to apply
this to the suspicious characters section since I seem to be getting
newsletters from CNN and other presumably legitimate sources that get
quarantined for that reason.

Cheers,

Stefano

-----Original Message-----
From: David F. Skoll [mailto:dfs at roaringpenguin.com] 
Sent: Thursday, September 19, 2002 8:49 PM
To: mimedefang at lists.roaringpenguin.com
Subject: Re: [Mimedefang] Re: How to exclude localhost from MD/SA checks


On Thu, 19 Sep 2002, Ellen Clary wrote:

> I cat the contents of the HOSTIP file into a variable

That's an old version of MIMEDefang.  The "official" way is as follows:

if ($RelayAddr eq "127.0.0.1" or
    $RelayAddr eq "ip.of.my.server" or
    $RelayAddr =~ /^ip\.of\.my-class-c$/) {
	# Don't check for spam
} else {
	# Check for spam
}

This works with all versions of MIMEDefang.

--
David.

_______________________________________________
MIMEDefang mailing list
MIMEDefang at lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang




More information about the MIMEDefang mailing list