Blog/ Email glossary & concepts

What Is DANE for Email? DNSSEC-Backed SMTP Security

Nafiul HasanNafiul Hasan· 10 min read
Diagram explaining what DANE for email is: a sending mail server reads a DNSSEC-signed TLSA record for the receiving server and validates its TLS certificate before delivering SMTP mail.

The short answer

DANE for email is a standard (RFC 7672) that lets a domain publish a TLSA record in its DNSSEC-signed DNS, so a sending mail server can verify the receiving server's TLS certificate without trusting a public CA. Unlike MTA-STS, it requires DNSSEC and protects the very first message.

What is DANE for email? RFC 7672 uses TLSA records in DNSSEC-signed DNS to let a sending server verify the recipient's TLS certificate without a public CA.

On this page
  1. 01How does DANE for SMTP work?
  2. 02What a TLSA record looks like
  3. 03The three TLSA fields
  4. 04How the TLSA record ties DNSSEC to the certificate
  5. 05Why DANE matters: what STARTTLS leaves open
  6. 06DANE vs MTA-STS: the short version
  7. 07Common misconceptions about DANE
  8. 08Does DANE work everywhere? Adoption and support
  9. 09Where DANE sits — and where AI Emaily fits

So what is DANE for email? DANE — short for DNS-Based Authentication of Named Entities — is a way to prove a mail server's TLS certificate using DNS instead of a public certificate authority. Applied to server-to-server email in RFC 7672, it lets a domain publish a TLSA record in its DNSSEC-signed DNS zone. A sending server reads that record and uses it to verify the receiving server's certificate before it hands over any mail.

The gap it fills is specific. Email between servers runs on SMTP, which upgrades to encryption through an optional command called STARTTLS. Optional means an attacker on the network can strip that offer, and the two servers quietly fall back to plaintext. DANE gives the receiving domain a way to say, in a place an attacker cannot forge, that encryption is mandatory and which certificate is the real one.

The word doing the heavy lifting is DNSSEC. A plain DNS record can be spoofed, so an unsigned TLSA record proves nothing; DANE only works when the DNS zone is DNSSEC-signed end to end. That single requirement explains almost everything about where DANE is common and where it is not — a point this guide returns to below.

How does DANE for SMTP work?#

A sending server that supports DANE runs the same short sequence before delivering to a domain that publishes TLSA records. Every DNS lookup in it is validated by DNSSEC; if any answer is not DNSSEC-secure, the sender treats DANE as unavailable and falls back to ordinary opportunistic TLS.

  1. 1

    Resolve the MX securely

    The sender looks up the recipient domain's MX records and validates them with DNSSEC. Without a DNSSEC-secure MX answer, DANE does not apply to the delivery.

  2. 2

    Query the TLSA record

    For each candidate MX host, the sender queries a TLSA record at _25._tcp.<mx-host> — again validated by DNSSEC. Port 25 is the server-to-server SMTP port.

  3. 3

    Open TLS and match the certificate

    During the STARTTLS handshake, the sender checks the receiving server's certificate against the TLSA record — for example, a SHA-256 fingerprint of the server's public key.

  4. 4

    Deliver, or fail closed

    If a usable, DNSSEC-secure TLSA record exists and the certificate matches, mail is delivered. If the record exists but the certificate does not match, RFC 7672 requires the sender to refuse delivery rather than drop to plaintext.

What a TLSA record looks like#

The TLSA record type is defined in RFC 6698. For a mail server it lives at an owner name built from the port and protocol — _25._tcp — in front of the mail host. The record carries three small numeric fields plus the certificate data itself.

Here is a common shape for an SMTP server: usage 3, selector 1, matching type 1, followed by a SHA-256 digest of the server's public key.

A TLSA record for an SMTP server (port 25)
_25._tcp.mail.example.comIN TLSA
Certificate usage3 — DANE-EE (domain-issued)
Selector1 — SubjectPublicKeyInfo
Matching type1 — SHA-256
Certificate data8cbf9e...d90a (digest of the server key)

The three TLSA fields#

Each field is one octet. Together they tell a sender whose certificate the record names and how to match it. RFC 6698 defines the full set of values; RFC 7672 narrows the sensible choices for mail.

FieldCommon value for SMTPWhat it means
Certificate usage3 — DANE-EEThe record names the server's own certificate or key directly, with no public CA involved. RFC 7672 recommends this for most mail servers.
Certificate usage2 — DANE-TAThe record names a trust anchor the server certificate must chain to. That anchor can be a private or self-signed root you control.
Selector0 or 1Whether the record matches the full certificate (0) or only its public-key info (1). Matching on the key (1) survives certificate renewal if the key is reused.
Matching type1 — SHA-256Whether the data is the exact bytes (0), a SHA-256 hash (1), or a SHA-512 hash (2). A hash keeps the record small.

For port 25, RFC 7672 narrows the choices

RFC 7672 recommends that mail servers publish a DANE-EE(3) record over the server's own key, and says TLSA records for the SMTP port SHOULD NOT use the PKIX usages 0 or 1 that depend on a public CA. The point of DANE for mail is to take the public CA out of the trust decision, so the usages that reintroduce it are discouraged.

How the TLSA record ties DNSSEC to the certificate#

The record on its own is just data. What makes it trustworthy is the DNSSEC chain of trust wrapped around the DNS zone it lives in. Because that chain signs every step from the root down to the TLSA record, a sender can be sure the fingerprint it reads is the one the domain owner published — not one an attacker swapped in on the wire.

So the flow is a bridge: DNSSEC vouches for the DNS zone, the TLSA record inside it carries the fingerprint of the mail server's certificate, and the sender trusts that certificate because the DNSSEC signatures check out. No public certificate authority sits in the middle of that decision.

A bridge diagram: on one side, a DNSSEC-signed DNS zone with a chain of trust from the root down; on the other, a mail server's TLS certificate. The TLSA record spans them, carrying the certificate fingerprint so a sending server can trust the certificate without a public CA.
DNSSEC vouches for the zone; the TLSA record inside it vouches for the certificate. That chain replaces the public CA.

Why DANE matters: what STARTTLS leaves open#

Without DANE, TLS between mail servers is opportunistic — it happens if the handshake succeeds and is skipped if it does not. That is convenient for delivery and weak for security, because an attacker positioned between two servers can make the handshake quietly fail.

The concrete attack is STARTTLS stripping. The attacker deletes the STARTTLS offer, both servers fall back to plaintext, and the mail crosses the wire unencrypted while neither side records a problem. A DNSSEC-secure TLSA record removes that fallback: encryption is required, the certificate is pinned, and a mismatch becomes a delivery failure instead of a silent leak.

DANE also covers a case MTA-STS cannot on its own — the very first message from a sender that has never contacted you before. Because a DANE-aware sender validates on every connection using DNS it can already verify, there is no need to have cached a policy first.

The attack DANE stops is a silent downgrade

With plain opportunistic TLS, an on-path attacker can delete the STARTTLS offer during the SMTP handshake. Both servers fall back to plaintext and neither logs an error, so password resets, invoices and contracts cross the internet in the clear. With a DNSSEC-secure TLSA record present, RFC 7672 requires the sender to refuse delivery rather than downgrade — turning a silent leak into a visible, retryable failure.

DANE vs MTA-STS: the short version#

DANE and MTA-STS solve the same problem — stopping a TLS downgrade between mail servers — but anchor trust in different things. This is the quick orientation a definition needs; a fuller weigh-up of when to pick each belongs in a dedicated comparison. The one line to remember: DANE leans on DNSSEC, MTA-STS leans on the public CA system, and many domains run both.

QuestionDANE for SMTP (RFC 7672)MTA-STS (RFC 8461)
What proves the policy is real?A DNSSEC signature over the TLSA recordA public-CA certificate on an HTTPS-hosted policy file
Does it need DNSSEC?Yes — it cannot work without itNo
Where the policy livesA TLSA record in DNSA DNS flag plus a policy file served over HTTPS
First message from a new senderValidated — no prior contact neededNot covered until the sender has cached your policy
A built-in report-only mode?NoYes — testing mode

Common misconceptions about DANE#

DANE sits next to several other email standards, and the overlap breeds confusion.

  • It is not end-to-end encryption. DANE secures the server-to-server hop and only for mail sent to a domain that publishes TLSA records. The message is still readable on each server it passes through, unlike PGP or S/MIME.
  • It does not replace SPF, DKIM, or DMARC. Those authenticate who sent a message; DANE secures how the message travels. Different jobs — you want both.
  • It is not just a DNS record you add. An unsigned TLSA record is worthless: senders ignore it. The zone has to be DNSSEC-signed first, and that is the harder half of the work.
  • It does not use public certificate authorities. A self-signed certificate is fine if it matches the TLSA record, because DNSSEC — not a CA — is what vouches for the record.
  • It is not an either/or with MTA-STS. Neither standard obsoletes the other, and publishing both adds first-contact protection on top of a policy every CA-using sender already understands.

Does DANE work everywhere? Adoption and support#

DANE's reach is shaped by one prerequisite: DNSSEC. A domain can only publish a TLSA record senders will trust if its DNS zone is DNSSEC-signed, and a sender can only validate one if it does DNSSEC lookups. Many domains, registrars, and resolvers still do not, which is the honest reason DANE is not universal.

So DANE clusters where DNSSEC is already common. It is widely deployed across parts of Europe and in several national and government mail stacks, and rarer among large consumer providers elsewhere — some of which rely on MTA-STS instead. This is a real difference in the landscape, not a flaw in the standard.

One dated data point on the adoption side: Microsoft has rolled out inbound SMTP DANE with DNSSEC for Exchange Online and its consumer Outlook and Hotmail domains, and has been extending outbound DANE alongside it (as of 2026). On the other side, several large consumer mailbox providers publish no TLSA records for their own servers and use MTA-STS instead — Google-hosted domains, for instance, do not currently publish DANE records. Because these positions move, verify each provider's current status on its own documentation.

DANE fails closed, so DNSSEC hygiene is not optional

Because a compliant sender refuses to deliver when a TLSA record exists but does not match, a rotated key you forget to reflect, an expired DNSSEC signature, or a broken chain of trust can block your own inbound mail from every DANE-aware sender. Change the certificate and the TLSA record together, and monitor the DNSSEC signatures that make the record trustworthy.

Where DANE sits — and where AI Emaily fits#

DANE is a control you set at the DNS and mail-server layer, and it protects mail while it moves between servers, before it reaches any mailbox. AI Emaily is not part of that layer. It does not publish TLSA records, sign your DNS zone, or act as a mail server — DANE and DNSSEC live with your DNS provider and mail host, and no email client can stand in for them.

What AI Emaily does begins after a message lands. It is an AI-native email client for Gmail, Outlook, and IMAP that triages the inbox, drafts replies you approve before they send, and defends against spam and phishing that slip through. Sensitive data it stores, such as OAuth tokens and message bodies, is encrypted, and it does not train on your mail. So DANE secures the delivery path; AI Emaily handles what arrives at the end of it. We build AI Emaily.

Frequently asked

Nafiul Hasan

Written by

Nafiul Hasan

Nafiul Hasan is an entrepreneur and AI automation system builder with 10+ years of experience turning messy, manual workflows into reliable automated systems. He designs and ships AI enterprise solutions end-to-end — the agent logic, the data plumbing, and the product people actually use — and founded AI Emaily to give busy professionals their attention back. He writes here from the builder's seat: what works, what breaks, and how to put AI to work without giving up control.

EntrepreneurAI Automation System BuilderAI EnthusiastBuilds AI Enterprise Solutions10+ years experience
More from Nafiul
Ready when you are

DANE hardens the pipe. AI Emaily handles what comes out of it.

DANE and DNSSEC secure mail in transit at the DNS and server layer — a job for your DNS provider, not a mail client. AI Emaily is the AI-native client that triages, drafts, and defends the inbox once mail lands, across Gmail, Outlook, and IMAP, with approve-before-send and a full audit trail. Start a 7-day free trial.

  • 7-day free trial
  • Cancel anytime
  • Every provider