this is the hell !
How do you have this setup running ?
My postfix and dovecot are on the same server, listenning on 587 and 993.
If i put my computer on the lan where postfix server is located : i can use Thunderbird . (receive server self certficate) and correctly authenticate, bind to dovecot and postfix (send & receive)
But with HAProxy it does not work ...
Do you have an example of correct setup ?
Here is my HAproxy setup :
global
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
stats socket /run/haproxy/admin.sock mode 660 level admin
stats timeout 30s
user haproxy
group haproxy
daemon
# Default SSL material locations
# ca-base /etc/ssl/certs
# crt-base /etc/ssl/private
# Default ciphers to use on SSL-enabled listening sockets.
# For more information, see ciphers(1SSL). This list is from:
#
https://hynek.me/articles/hardening-your-web-servers-ssl-ciphers/
# An alternative list with additional directives can be obtained from
#
https://mozilla.github.io/server-side-tls/ssl-config-generator/?server=haproxy
# ssl-default-bind-ciphers ECDH+AESGCM
H+AESGCM:ECDH+AES256
H+AES256:ECDH+AES128
H+AES:RSA+AESGCM:R$
# ssl-default-bind-options no-sslv3
defaults
log global
mode tcp
option dontlognull
timeout connect 5s
timeout client 1m
timeout server 1m
## IMAPs
frontend imaps
bind :993
default_backend imaps
backend imaps
server mx1.ilinux.lan20 10.20.20.31:993
## SMTPs (Submission)
frontend submission
bind :587
default_backend submission
backend submission
server mx1.ilinux.lan20 10.20.20.31:587
And the result on MX server :
Jul 20 17:33:02 mx1 postfix/submission/smtpd[1622]: connect from rpx2.ilinux.dmz10[10.10.10.52]
Jul 20 17:33:02 mx1 postfix/submission/smtpd[1622]: improper command pipelining after EHLO from rpx2.ilinux.dmz10[10.10.10.52]: QUIT\r\n
Jul 20 17:33:02 mx1 postfix/submission/smtpd[1622]: disconnect from rpx2.ilinux.dmz10[10.10.10.52] ehlo=1 quit=1 commands=2
Jul 20 17:33:02 mx1 dovecot: imap-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=10.10.10.52, lip=10.20.20.31, TLS: SSL_read() failed: error:14094418:SSL routines:ssl3_read_bytes:tlsv1 alert unknown ca: SSL alert number 48, session=<WV73jh6OvJMKCgo0>
Jul 20 17:33:02 mx1 dovecot: imap-login: Aborted login (no auth attempts in 0 secs): user=<>, rip=10.10.10.52, lip=10.20.20.31, TLS, session=<x4/6jh6OwJMKCgo0>