Kayne,
----- Original Message ----- From: "Kayne Kruse" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, July 07, 2006 3:10 PM
Subject: Re: [Mimedefang] Starting all over to kill invalid users


On Fri, 2006-07-07 at 14:13 -0400, Steve Campbell wrote:
Now to get the logging figured out.


Easy just put something like this on the next line.
md_syslog('notice', "Relayed $relay to internal.server.com\n");

or whatever you want.

This is what I have in my mimedefang-filter file for the subroutine:

# Verify users and reject if invalid
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");
}

along with

$SyslogFacility = "mail";

above it.

Nothing gets logged to either messages or maillog.

There are some settings above it all, of course, like $Stupidity, detect_and_load_perl_modules() and the likes. That's the whole file.

Thanks,

Steve

Kayne
_______________________________________________
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