I’m trying to get my desktopclient (tried Thunderbird aswell as Ecolution (evolution-ews) to access Dovecot though HA-Proxy.
Connecting directly to Mailcow-Dockerized works fine, but this prevents me from using my laptop from outside my network (mail anyway).
I’ve forwarded port 10143 and 10993 to the same ports in the container.
Added the configuration in haproxy
#frontend ft_mailcow_imap
frontend ft_mailcow_imap
bind haproxy-ip:143
mode tcp
option tcplog
default_backend bk_mailcow_imap
#bk_mailcow_imap
backend bk_mailcow_imap
mode tcp
balance leastconn
stick store-request src
stick-table type ip size 200k expire 30m
option tcplog
server mailcow mailcow.domain.lan:10143 send-proxy-v2
#frontend ft_mailcow_imaps
frontend ft_mailcow_imaps
bind haproxy-ip:993
mode tcp
option tcplog
default_backend bk_mailcow_imaps
#bk_mailcow_imaps
backend bk_mailcow_imaps
mode tcp
option tcplog
no option http-server-close
stick store-request src
stick-table type ip size 200k expire 30m
server mailcow mailcow.domain.lan:10993 send-proxy-v2
This is logged in Dovecot:
Sep 11 17:34:16 mailcow dovecot: auth: Error: ldap(2297o73573g0xpbd@mailcow.local): ldap_search(base=OU=Users,OU=Domain,DC=DOMAIN,DC=LAN filter=(&(objectClass=posixAccount)(uid=2297o73573g0xpbd@mailcow.local))) failed: Operations error
Sep 11 17:34:16 mailcow dovecot: doveadm(2297o73573g0xpbd@mailcow.local): Error: sync: /var/run/dovecot/auth-userdb: passdb lookup failed (to see if user is proxied, because doveadm_port is set)
Sep 11 17:44:16 mailcow dovecot: auth: Error: ldap(2297o73573g0xpbd@mailcow.local): ldap_search(base=OU=Users,OU=Domain,DC=DOMAIN,DC=LAN filter=(&(objectClass=posixAccount)(uid=2297o73573g0xpbd@mailcow.local))) failed: Operations error
Sep 11 17:44:16 mailcow dovecot: doveadm(2297o73573g0xpbd@mailcow.local): Error: auth-master: passdb lookup(2297o73573g0xpbd@mailcow.local): Auth PASS lookup failed
Sep 11 17:44:16 mailcow dovecot: doveadm(2297o73573g0xpbd@mailcow.local): Error: sync: /var/run/dovecot/auth-userdb: passdb lookup failed (to see if user is proxied, because doveadm_port is set)
Is there something I’m missing and/or how can I get this to work….?
(I’m pretty new to Linux and Mailcow - and its components, but highly motivated to get away from MS…)