Hello Community,
is there anyone who can help me configuring haproxy in a correct manner ? I set up a mailcow behind haproxy. Then web redirection works like a charm but i am not able to access the mailboxes via imaps. Enclosed you will find the respective parts of my haproxy.cfg.
IMAP Frontend
frontend imap_frontend
bind *:143
bind *:993 ssl crt /etc/letsencrypt/live/dom-a.de/dom-a.de.pem crt /etc/letsencrypt/live/dom-b.de/dom-b.de.pem crt alpn imap
mode tcp
option tcplog
# Route based on SNI
acl sni_dom-a_de req_ssl_sni -i mail.dom-a.de
acl sni_dom-b_de req_ssl_sni -i mail.dom-b.de
use_backend imap_dom-a_backend if sni_dom-a_de
use_backend imap_dom-b_backend if sni_dom-b_de
Backend for IMAP
backend imap_dom-a_backend
mode tcp
server imap_server_dom-a_de server.dom-a.internal:143
backend imap_dom-b_backend
mode tcp
server imap_server_dom-b_de server.dom-a.internal:143
Any hint or tip is highly appreciated.
Best regards
Jens