[Mimedefang] Excluding localhost
David F. Skoll
dfs at roaringpenguin.com
Mon Aug 22 08:32:50 EDT 2005
Andrew Pollock wrote:
> sub filter_begin () {
> # No need to impact on delivery times for locally generated mail
> if (!defined $RelayAddr || $RelayAddr eq '127.0.0.1') {
> 8.204.2') {
> return ACCEPT_AND_NO_MORE_FILTERING
> }
Won't work. Make sure you invoke mimedefang with the -r flag and
use this:
sub filter_relay ()
my($hostip, $hostname) = @_;
if ($hostip eq '127.0.0.1') {
return ('ACCEPT_AND_NO_MORE_FILTERING', 'ok');
}
return ('CONTINUE', 'ok');
}
Note the form of the return value. You are returning a list of
two *strings*.
--
David.
More information about the MIMEDefang
mailing list