Here's what I use: ACCEPT_AND_NO_MORE_FILTERING in filter_relay. Can't
use macros there, have to read COMMANDS file.
sub is_trusted() {
if ($RelayAddr eq "127.0.0.1" || $RelayAddr eq "123.123.123.123" ||
$RelayAddr =~ /^10\.1\.1\./) {
return 1;
}
else {
open(COMM, "<./COMMANDS") or return 0;
while(<COMM>) {
if (/^=auth_authen/) {
close(COMM);
md_syslog('info', "MDLOG: SMTP Authenticated");
return 1;
}
}
close(COMM);
return 0;
}
}
#Must set MX_RELAY_CHECK=yes in /etc/init.d/mimedefang
sub filter_relay {
my($ip, $name, $helo) = @_;
if ($helo =~ /mydomain\./i) {
if (!is_trusted()){
return(REJECT,"Spam block HELO $helo.");
}
}
if (is_trusted()){
return(ACCEPT_AND_NO_MORE_FILTERING,"ok1");
}
return (CONTINUE,"ok2");
}
_______________________________________________
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang