Currently, every time haproxy checks if postfix is still alive, e.g. on port 
587, I see this in my logging:

Jan 28 13:13:20 albus submission/smtpd[97331]: warning: haproxy read: EOF
Jan 28 13:13:20 albus submission/smtpd[97331]: connect from unknown[unknown]
Jan 28 13:13:20 albus submission/smtpd[97331]: disconnect from unknown[unknown] 
commands=0/0


I just tell rsyslog to ignore those lines so they don't get logged.

    if $programname == "postfix" and $msg startswith "warning: haproxy read: " 
then stop
    if $programname == "postfix" and $msg contains " from unknown[unknown]" 
then stop
    if $programname == "postfix" and $msg contains " from proxy.example.com[" 
then stop

Reply via email to