Hello everyone,
I’m running a mail server using Virtualmin with the following setup:
Primary domain: mydomain.com
MX record: mail.mydomain.com
DNSSEC: Enabled and functioning correctly
TLSA records: Configured and published for mail.mydomain.com
Postfix certificate: Let’s Encrypt multi-domain certificate for both mydomain.com and mail.mydomain.com
However, I’m facing an issue where external DANE validators report the following error:
"The DANE TLSA records of these MX hosts fail to validate their certificate chains. Inbound email may be delayed or not delivered."
Upon further inspection, I noticed that when connecting to port 25 (SMTP), the certificate served by Postfix presents mydomain.com as the Common Name (CN), even though mail.mydomain.com is listed as a Subject Alternative Name (SAN) in the certificate.
It appears that the DANE TLSA check is failing due to a mismatch between the MX hostname (mail.mydomain.com) and the CN reported in the certificate, even though the SAN includes it.
My Questions:
Is it mandatory for the certificate’s CN to exactly match the MX hostname (mail.mydomain.com) for DANE to validate correctly, even if it’s listed in the SAN?
Is there a way to configure Postfix (or Virtualmin) to explicitly serve mail.mydomain.com as the CN during the TLS handshake?
Has anyone resolved a similar DANE validation issue in a Virtualmin setup with Let’s Encrypt certificates?
Appreciate any insights or guidance on resolving this issue. Thank you!
SYSTEM INFORMATION | |
---|---|
OS type and version | Ubuntu 24 LTS |
Webmin version | 2.303 |
Virtualmin version | 7.30.8 |
Postfix version | 3.8.6 |