[Mimedefang] Scanning inbound mail only

David F. Skoll dfs at roaringpenguin.com
Sat Dec 7 20:51:01 EST 2002


On Sat, 7 Dec 2002 listuser at neo.pittstate.edu wrote:

> Unfortunately we don't use SMTP AUTH.  The other unfortunate thing is I
> haven't got a clue how to use $RelayAddress.  Do you think there might be
> an example in the archives and if so do you about when it might have been
> posted?

Something like this:

	if ($RelayAddress eq "127.0.0.1" or
	    $RelayAddress =~ /^192\.168\.2\./) {
		# Do not do spam check
	} else {
		# Do spam check
	}

That skips checking for 127.0.0.1 and the entire class C 192.168.2.xxx network.

> I haven't found a searchable archive for this list yet

http://www.roaringpenguin.com/search/ and for search scope, select
"Only MIMEDefang mailing list archive"

Regards,

David.



More information about the MIMEDefang mailing list