On 10/19/11 2:46 PM, [email protected] wrote: > Then log it in the MTA if MD doesn't support it. > > Here's the SIMPLE logging statement I use with sendmail: > > SLocal_check_relay > R$* $: $(log "Connection: "$&{if_addr}" ("$&{if_name}") > "$&{daemon_port}" <- "$&{client_addr}" "$&{client_port}" > C:"$&{client_connections}" R:"$&{client_rate} $) $1 > > As noted, I log also the interface name (since I have SMTP virtual hosting), > connection count, and rate info too. The client's name gets checked by > another rule which occurs later, so it shows up a couple of lines following > in my logs. Therefore, I felt it was unnecessary. > > Note: check_relay runs before there's a queue ID generated, so all these > messages will start with a literal "NOQUEUE: Connection: " string.
I think people prefer to do it in Mimedefang, because it's a richer/simpler environment. I think more people understand Perl than do sendmail.cf files. As for Postfix? I don't think you even can. Plus what if I want to open a different file, or use a different logging priority/facility? You can't set those in sendmail's rulesets. -Philip _______________________________________________ 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

