I’m currently facing an issue while setting up SSL on my Mailcow email server. Despite having both AAAA (IPv6) and A (IPv4) records correctly configured in Cloudflare for my domain, I’m encountering an error related to IPv6 during the SSL setup process.
Here’s the specific error message from the mailcowdockerized-acme-mailcow-1 container logs:
Cannot match your IP 0000:0000:0000:0000:0000:0000:0000:0000 against hostname my.hostname.com (DNS returned XXXX:YYYY:ZZZZ:000::1111)
Removing the AAAA record and keeping only the A record allows SSL to function properly, but I prefer to have both IPv4 and IPv6 enabled for improved connectivity.
It seems that the local IPv6 detection isn’t functioning correctly (0000:0000:0000:0000:0000:0000:0000:0000 it’s obviously not my IPv6). The IPv4 detection is working fine.
OS: Debian 11
I would greatly appreciate any insights or suggestions on resolving this issue. Thank you in advance for your help!
Please note XXXX:YYYY:ZZZZ:000::1111 it’'s my server IPv6.