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

David F. Skoll dfs at roaringpenguin.com
Thu Sep 19 20:49:01 EDT 2002


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.




More information about the MIMEDefang mailing list