On 10/19/2011 5:46 PM, [email protected] wrote:
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.
looked at adding this under my Local Rulesets but I am getting this error:

rewrite: map log not found

I'm using 8.14.5 but is there perhaps something else in your mc you have that the log chains to?

regards,
KAM

_______________________________________________
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