[Mimedefang] Starting all over to kill invalid users
David F. Skoll
dfs at roaringpenguin.com
Fri Jul 7 16:23:07 EDT 2006
Steve Campbell wrote:
> sub filter_recipient {
> # md_graphdefang_log_enable('mail', 1);
> my($recip, $sender, $ip, $first, $helo, $rcpt_mailer, $rcpt_host,
> $rcpt_addr)
> = @_;
> my $relay = undef;
> $relay = "test.cnpapers.com" if ($recip =~ /\bcnpapers\.com\b/);
> $relay = "mail.wvgazette.com" if ($recip =~ /\bwvgazette\.com\b/);
> $relay = "mail.dailymail.com" if ($recip =~ /\bdailymail\.com\b/);
> if ($relay) {
> return md_check_against_smtp_server($sender, $recip,
> "webber.cnpapers.net"
> , $relay);
> }
> #md_log_enable('mail');
> md_syslog("info", "Relay to: $relay");
> return('CONTINUE', "OK");
> }
Nothing will get logged if the recipient address matches one of the
three regexps, because of the "return" statement inside the "if"
--
David.
More information about the MIMEDefang
mailing list