config: frontend smtp bind 127.0.0.1:25 bind HAProxy_Server_IP:25 mode tcp # Route all traffic to our backend default_backend smtp-backend-mail log global option tcplog option logasap backend smtp-backend-mail # Layer 4 based load balancing mode tcp option smtpchk HELO HAProxy_Server_IP # IP stickyness balance source hash-type consistent stick-table type ip size 20k stick on src server APP_Hostname APP_IP:25 check on-marked-down shutdown-sessions
Error: smtpserver.log ERROR smtpserver: Socket to hostname closed remotely. java.net.SocketException: Connection reset haproxy.log 31 03:31:03 localhost haproxy[13975]: IP:60416 [31/Mar/2020:03:31:03.627] https/2: Connection closed during SSL handshake Mar 31 03:31:03 localhost haproxy[30585]: http http/ -1/-1/-1/-1/+0 400 +187 - - CR-- 0/0/0/0/0 0/0 “” Mar 31 03:32:03 localhost haproxy[30585]: https/2: Connection closed during SSL handshake Mar 31 03:32:03 localhost haproxy[13975]: http http/ -1/-1/-1/-1/+0 400 +187 - - CR-- 0/0/0/0/0 0/0 “”