Hello,
I am facing the same issue, my topology like this one,
Could you please give me advise how to fix it? Thanks a lot
External --------> (listen on 25, 587, 993) HAProxy ------>FWD (port 2525, 587, 10143) -----> iredmail
<<HAProxy.conf>>
listen submission
bind public_ip:587
balance leastconn
option tcp-check
tcp-check connect send-proxy
tcp-check expect rstring ^220
server ired iredmail_ip:587 check send-proxy
frontend f_srvc_imap
bind public_ip:143
mode tcp
default_backend b_srvc_imap
backend b_srvc_smtp
mode tcp
no option http-server-close
log global
option tcplog
timeout server 1m
timeout connect 5s
server ired iredmail_ip:2525 send-proxy
<<master.cf>>
#<Section submission>
# Submission, port 587, force TLS connection.
submission inet n - n - - smtpd
-o syslog_name=postfix/submission
-o smtpd_tls_security_level=encrypt
-o smtpd_sasl_auth_enable=yes
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
-o content_filter=smtp-amavis:[127.0.0.1]:10026
-o smtpd_upstream_proxy_protocol=haproxy
#<Section haproxy-smtp>
2525 inet n - - - 1 postscreen
-o postscreen_upstream_proxy_protocol = haproxy
-o postscreen_upstream_proxy_timeout = 50s
Postfix log showing as below (172.30.200.201 is Ip address on HAProxy)
Oct 17 06:06:28 snow postfix/submission/smtpd[2429]: disconnect from unknown[172.30.200.201] commands=0/0
Oct 17 06:06:31 snow postfix/submission/smtpd[2429]: connect from unknown[172.30.200.201]
Oct 17 06:06:31 snow postfix/submission/smtpd[2429]: lost connection after CONNECT from unknown[172.30.200.201]
Oct 17 06:06:31 snow postfix/submission/smtpd[2429]: disconnect from unknown[172.30.200.201] commands=0/0
Oct 17 06:06:33 snow postfix/submission/smtpd[2429]: connect from unknown[172.30.200.201]
Oct 17 06:06:33 snow postfix/submission/smtpd[2429]: lost connection after CONNECT from unknown[172.30.200.201]
Oct 17 06:06:33 snow postfix/submission/smtpd[2429]: disconnect from unknown[172.30.200.201] commands=0/0
Oct 17 06:06:35 snow postfix/submission/smtpd[2429]: connect from unknown[172.30.200.201]
Oct 17 06:06:35 snow postfix/submission/smtpd[2429]: lost connection after CONNECT from unknown[172.30.200.201]
Oct 17 06:06:35 snow postfix/submission/smtpd[2429]: disconnect from unknown[172.30.200.201] commands=0/0
Oct 17 06:06:37 snow postfix/submission/smtpd[2429]: connect from unknown[172.30.200.201]