Hi!
I have been following several guides on the youtube channel and have successfully setup haproxy in pfsense with https on outside to three internal services on the inside without ssl.
I fail to setup haproxy to open IMAPS on the outside to IMAP on the inside.
My setup:
DNS setup
mydomain.com
with a mx record pointing to mm.mydomain.com
acme setup
Certificate created for both mydomain.com
and mm.mydomain.com
.
haproxy setup
Backend created by pointing to local imap server on port 143
Frontend created by listen to WAN address on port 993 with SSL Offloading selected and
Value for “Host starting with:” is
mm.mydomain.com
I’m not sure which certificate to use for SSL offloading but I have tried both the cert for mydomain.com
and mm.mydomain.com
with same result.
I have a firewall rule with source=any and desitnation any with port IMAP/S (993).
I thought I should have the destination IP but I just tested with any. Still no success.
When I use a mail server tester on internet
- I get a timeout if I try to use the IMAPS method.
- If I instead use IMAP (which I created a NAT rule for) it works as expected.
Anyone who can tell me what I should do to get progress?
Regards,
NL