David,

Great eyes. That was it.

Thanks,

Steve

----- Original Message ----- From: "David F. Skoll" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, July 07, 2006 4:23 PM
Subject: Re: [Mimedefang] Starting all over to kill invalid users


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.








_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list [email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list [email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to