Messaging Fundamentals Series

📌 Understanding How DANE (TLSA Records) Works From a Top 1% Perspective — Another Answer, Where MTA-STS Trusts a Certificate Authority, but DANE Trusts DNSSEC Instead

Introduction

This article is part of the Top 1% Series Complete Article Guide, and article 6.2 in the Mail Infrastructure Series.

Prerequisite Knowledge

Getting the Big Picture

MTA-STS trusted the existing CA (certificate authority) system as its foundation of trust, through a policy file distributed over HTTPS. DANE is an entirely different mechanism, trusting DNSSEC as its foundation instead. The sending domain directly declares, inside a DNSSEC-signed DNS record called a TLSA record, “this is the correct certificate (or public key) the mail server for this domain should present.” This means the certificate itself can be pinned directly inside DNS, with no CA intermediary at all.

graph TB
    subgraph MTASTS["MTA-STS: Trusts the CA System"]
        PolicyFile["An HTTPS-delivered policy file"] -->|"Requires a valid, CA-signed certificate"| CAStore["The existing CA (certificate authority) system"]
    end
    subgraph DANE["DANE: Trusts DNSSEC"]
        TLSARecord["A TLSA record<br/>(signed by DNSSEC)"] -->|"Pins the certificate directly"| NoCANeeded["Specifies the certificate directly, no CA involved"]
    end

Deep Dive Into the Fundamentals

A TLSA Record: Specifying the Certificate Itself, Directly Inside DNS

A TLSA record directly writes, into DNS, the hash of the certificate (or its public key) an SMTP server should present. The profile recommended for SMTP is the combination “DANE-EE (specifying the end-entity certificate itself), SPKI (public key information), SHA-256.” For this mechanism to work, there’s an absolute prerequisite: the TLSA record itself must be signed by DNSSEC, and the receiving side must be able to verify that signature. In a zone where DNSSEC isn’t deployed, a compliant implementation ignores the TLSA record.

A Decisive Difference in Each Mechanism’s Weakness

DANE’s weakness is that it depends completely on DNSSEC being correctly deployed across the entire zone, from the sender to the recipient. MTA-STS’s weakness is that protection hasn’t kicked in yet during the very first connection (the initial contact, TOFU) — before the policy file has ever been cached.

Deploying Both Together Is Realistically Recommended

DANE and MTA-STS aren’t competing choices — deploying both, as complementary mechanisms covering each other’s weakness, is recommended. DANE covers domains where DNSSEC is deployed, while MTA-STS covers domains where it isn’t. When both are deployed, there’s also a rule: MTA-STS policy validation must never override a failing DANE validation result to allow the connection anyway. Microsoft announced DANE support for inbound SMTP in July 2024, and adoption among major providers is advancing.

What a Pro Sees Here (Top 1% Understanding)

Noticing the Fundamental Difference in “Who Do You Trust”

MTA-STS and DANE share exactly the same goal — reinforcing opportunistic encryption’s weakness — but underneath how each actually achieves it lies a fundamentally different premise: “do you trust an existing third-party system, the CA,” or “do you trust DNS’s own hierarchical structure, DNSSEC.” The fact that multiple solutions, based on entirely different trust models, can exist in parallel for a single problem is a perspective that leads to not settling for just one side when making a technology choice, but judging only after understanding both premises.

Common Misconceptions and Pitfalls

Troubleshooting Perspective

  1. You set up a TLSA record, but senders fail validation: Check whether that zone itself is correctly signed by DNSSEC.
  2. You’ve deployed both DANE and MTA-STS, but behavior seems contradictory: Check whether a DANE validation result is being overridden by the MTA-STS policy.
  3. You can’t decide which mechanism to deploy first: Consider DANE first if DNSSEC is already deployed, or MTA-STS first if it isn’t yet.

Summary

Takeaways to Apply Today

  1. Even for a domain that’s already deployed MTA-STS, consider adding DANE if DNSSEC is also deployed.
  2. Always keep in mind the fundamental difference in “who do you trust” when making a technology choice.

References

Comments

Feel free to leave thoughts, questions, or corrections below (sign in with a GitHub account to comment or react).