What DANE is
With DANE you publish the fingerprint of the mail server certificate in DNS (TLSA). Senders that support DANE then require encryption with exactly that certificate. It requires DNSSEC.
How to read the TLSA record
- The first number is the usage. 3 (DANE-EE) points to the server’s own certificate, 2 (DANE-TA) to the issuer. For email 3 or 2 is recommended.
- The second number is what is hashed. 1 means only the public key, which survives renewal with the same key.
- The third number is the hash type. 1 is SHA-256, which is the most common.
Common mistakes
The most dangerous mistake is to change the certificate or key without updating the TLSA record first. Then senders that support DANE reject all email to you. Add the new TLSA record next to the old one, wait until the TTL has expired, and then change the certificate.
TLSA records without DNSSEC are ignored. So check DNSSEC for both the domain and the zone of the MX server.