I'm trying to troubleshoot some occasional HAProxy health check
failures. HAProxy logs the health check failures and Postfix logs "lost
connection after RCPT" messages without a whole lot of other detail. I
learned Postfix's debug_peer_list and debug_peer_level options and have
added the IP Address used by HAProxy to the debug_peer_list setting.
I see that no matter the debug_peer_level chosen, this increases the log
levels significantly. This is good, as I'm hoping to use this additional
detail to help pin down the root cause for the occasional failures, but
it appears that these more verbose messages are still being logged at
"informational" level.
Is there an option somewhere to change that, so that all messages logged
as as a result of the debug_peer_* options are set at debug syslog level
instead?
Because the health check failures are infrequent and hard to pin down,
I'd like to leave the debug logging active for a while, but filter on
mail facility and debug level so that the debug messages are saved
locally instead of being passed into our logging infrastructure (where
they eventually make it into a Graylog instance).
If I use the syslog_name setting I could then filter on that, but I'm
passing mail from HAProxy on the same port/transport, which I assume
would result in all log messages for mail passed in on that transport
being logged only to the local system.
Thank you in advance for reading this and for any advice you may have!