[Mimedefang] Starting all over to kill invalid users
Steve Campbell
campbell at cnpapers.com
Fri Jul 7 16:33:21 EDT 2006
David,
Great eyes. That was it.
Thanks,
Steve
----- Original Message -----
From: "David F. Skoll" <dfs at roaringpenguin.com>
To: <mimedefang at lists.roaringpenguin.com>
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 MIMEDefang at lists.roaringpenguin.com
> http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
>
More information about the MIMEDefang
mailing list