I have a Postfix Backend behind HAProxy and check for a response starting with 220 (status code).
backend smtp-backend
mode tcp
option tcp-check
tcp-check expect rstring ^220
balance roundrobin
server vtsv-postfix1 172.21.0.137:25 check
server vtsv-postfix2 172.21.0.147:25 check
The problem is when i configure the proxy protocol in postfix and use send-proxy for the backend, the health check does not work anymore.
backend smtp-backend
mode tcp
option tcp-check
tcp-check expect rstring ^220
balance roundrobin
server vtsv-postfix1 172.21.0.137:25 check send-proxy
server vtsv-postfix2 172.21.0.147:25 check send-proxy
How can i do a health check to see if postfix is responding with a 220 status code when using the proxy-protocol?