## Automatically generated configuration.# Do not edit this file manually.#global uid 80 gid 80 chroot /var/haproxy daemon stats socket /var/run/haproxy.socket group proxy mode 775 level admin nbproc 1 nbthread 1 hard-stop-after 60s no strict-limits tune.ssl.default-dh-param 2048 spread-checks 2 tune.bufsize 16384 tune.lua.maxmem 0 log /var/run/log local0 info lua-prepend-path /tmp/haproxy/lua/?.luadefaults log global option redispatch -1 timeout client 30s timeout connect 30s timeout check 10s timeout server 30s retries 3 default-server init-addr last,libc# autogenerated entries for ACLs# autogenerated entries for config in backends/frontends# autogenerated entries for stats# Frontend: smtpd-loadbalancing (Port 25 Load Balancing)frontend smtpd-loadbalancing bind 192.168.2.2:25 name 192.168.2.2:25 mode tcp default_backend mail.rna.nl.991 # tuning options timeout client 30s # logging options# Frontend: submission-loadbalancing (Port 587 Load Balancing)frontend submission-loadbalancing bind 192.168.2.2:587 name 192.168.2.2:587 mode tcp default_backend mail.rna.nl.991 # tuning options timeout client 30s # logging options# Frontend: imaps-loadbalancing (Port 993 Load Balancing)frontend imaps-loadbalancing bind 192.168.2.2:993 name 192.168.2.2:993 mode tcp default_backend mail.rna.nl.994 # tuning options timeout client 30s # logging options# Backend: mail.rna.nl.991 (postfix haproxy postscreen pool)backend mail.rna.nl.991 option log-health-checks # health check: port991-health-monitor mode tcp balance roundrobin # tuning options timeout connect 30s timeout check 10s timeout server 30s server albus-991 192.168.2.66:991 check inter 300s port 991 send-proxy server snape-991 192.168.2.125:991 check inter 300s port 991 send-proxy# Backend: mail.rna.nl.990 (postfix haproxy submssion pool)backend mail.rna.nl.990 option log-health-checks # health check: port991-health-monitor mode tcp balance roundrobin # tuning options timeout connect 30s timeout check 10s timeout server 30s server albus-990 192.168.2.66:990 check inter 300s port 991 send-proxy server snape-990 192.168.2.125:990 check inter 300s port 991 send-proxy# Backend: mail.rna.nl.994 (postfix haproxy imaps pool)backend mail.rna.nl.994 option log-health-checks # health check: port991-health-monitor mode tcp balance roundrobin # tuning options timeout connect 30s timeout check 10s timeout server 30s server albus-994 192.168.2.66:994 check inter 300s port 991 send-proxy server snape-994 192.168.2.125:994 check inter 300s port 991 send-proxy
It sounds a bit like an upstream issue with the HAProxy software itself.But: do you need HAProxy? The business version also has a proxy plugin based on Apache if it fits your use cases:https://docs.opnsense.org/vendor/deciso/opnwaf.htmlCheers,Franco
would start with enabling Detailed Logging and looking in logs perhaps )it is also interesting to understand the network configuration (fontends and backends in 192.168.2 ?)
2023-01-27T05:11:12 Notice haproxy Health check for server mail.rna.nl.991/albus-991 failed, reason: Layer4 connection problem, info: "General socket error (Network is down)", check duration: 0ms, status: 0/2 DOWN. 2023-01-26T22:38:19 Notice haproxy Health check for server mail.rna.nl.994/snape-994 succeeded, reason: Layer4 check passed, check duration: 0ms, status: 3/3 UP. 2023-01-26T22:37:29 Notice haproxy Health check for server mail.rna.nl.994/albus-994 succeeded, reason: Layer4 check passed, check duration: 0ms, status: 3/3 UP. 2023-01-26T22:36:39 Notice haproxy Health check for server mail.rna.nl.990/snape-990 succeeded, reason: Layer4 check passed, check duration: 0ms, status: 3/3 UP. 2023-01-26T22:35:49 Notice haproxy Health check for server mail.rna.nl.990/albus-990 succeeded, reason: Layer4 check passed, check duration: 0ms, status: 3/3 UP. 2023-01-26T22:34:59 Notice haproxy Health check for server mail.rna.nl.991/snape-991 succeeded, reason: Layer4 check passed, check duration: 0ms, status: 3/3 UP. 2023-01-26T22:34:09 Notice haproxy Health check for server mail.rna.nl.991/albus-991 succeeded, reason: Layer4 check passed, check duration: 2ms, status: 3/3 UP. 2023-01-25T00:57:00 Notice haproxy Health check for server mail.rna.nl.994/snape-994 succeeded, reason: Layer4 check passed, check duration: 0ms, status: 3/3 UP. 2023-01-25T00:56:10 Notice haproxy Health check for server mail.rna.nl.994/albus-994 succeeded, reason: Layer4 check passed, check duration: 0ms, status: 3/3 UP. 2023-01-25T00:55:20 Notice haproxy Health check for server mail.rna.nl.990/snape-990 succeeded, reason: Layer4 check passed, check duration: 0ms, status: 3/3 UP. 2023-01-25T00:54:30 Notice haproxy Health check for server mail.rna.nl.990/albus-990 succeeded, reason: Layer4 check passed, check duration: 0ms, status: 3/3 UP. 2023-01-25T00:53:40 Notice haproxy Health check for server mail.rna.nl.991/snape-991 succeeded, reason: Layer4 check passed, check duration: 0ms, status: 3/3 UP. 2023-01-25T00:52:50 Notice haproxy Health check for server mail.rna.nl.991/albus-991 succeeded, reason: Layer4 check passed, check duration: 2ms, status: 3/3 UP.
I only became aware of a user not being able to contact port 587 around 20:15 on Jan 26. And I am positive that in the meantime port 587 has worked (I sent mail myself)