schedule 15-min read

DANE for SMTP: What It Is and Does Your Domain Need It?

DMARC AI editorial team · Last updated

DANE for SMTP uses DNSSEC and TLSA records to force authenticated TLS on inbound mail. What it needs, how it differs from MTA-STS, who needs it.

01

What is DANE for SMTP?

DANE for SMTP (DNS-based Authentication of Named Entities) is a standard, defined in RFC 7672, that lets a receiving domain publish its mail server's TLS key in DNSSEC-signed DNS. Sending servers that validate DANE then refuse to deliver over plaintext or to a server presenting the wrong certificate. It protects mail in transit to your domain, not your sender identity.

DANE is the DNS-based alternative to MTA-STS. If you have not met MTA-STS yet, start with what MTA-STS is and why businesses care. This guide covers the parts only DANE has: DNSSEC, TLSA records, key rollover, and an MSP decision on which clients should get it.

02

Key takeaways

  • DANE pins your MX server's TLS key in DNS. It only works when both the recipient domain and the MX host zone are DNSSEC-signed.
  • Publish 3 1 1 (DANE-EE) TLSA records as the default. RFC 7672 names 2 0 1 (DANE-TA) as the second choice.
  • Always publish the next key's TLSA record before you deploy that key. Skipping this step causes deferred inbound mail.
  • Exchange Online validates DANE outbound by default, and has offered inbound DANE with DNSSEC since October 2024.
  • DANE is transport security. It does not replace DMARC, and DMARC does not replace it.
03

How does DANE for SMTP work?

A sending server looks up your MX records, then asks DNS for a TLSA record attached to each MX host. If both answers are DNSSEC-validated, the sender must use TLS and must check that the server's certificate matches the TLSA data. A mismatch means no delivery, not a quiet fallback to plaintext.

The pieces come from three RFCs:

RFC What it defines
RFC 6698 The TLSA DNS record type and the original DANE protocol
RFC 7671 Operational updates: DANE-EE and DANE-TA behaviour, key rollover
RFC 7672 How SMTP servers use DANE, including which TLSA parameters to publish

Normal SMTP encryption is opportunistic. A server offers STARTTLS (RFC 3207), and the sender uses it if it can. An attacker on the network path can strip that offer, and most senders accept any certificate anyway. DANE closes both gaps for senders that validate it.

There is a useful difference from web certificates. RFC 7672 says the sender "MUST NOT perform certificate name checks" with DANE-EE records, and the certificate's expiry date "MUST be ignored". The DNS record is the trust anchor, so a self-signed certificate is fine. What matters is that the key matches.

04

Why does DANE need DNSSEC on two zones?

DANE trusts DNS, so DNS must be tamper-proof. Domain Name System Security Extensions (DNSSEC) sign DNS answers so a resolver can prove they are genuine. RFC 7672 says DANE can authenticate delivery "only when the MX records are obtained securely". The TLSA record must also be signed. That means two zones, which are often run by different parties.

  1. The recipient domain. The zone for example.com must be signed, so the sender trusts the MX answer.
  2. The MX host zone. The zone that holds mx1.example.com, or your provider's hostname, must be signed and must hold the TLSA record.

If the client's domain is signed but its MX points at a provider whose zone is unsigned, there is no DANE. If the MX zone is signed but the client's own domain is not, the sender cannot trust the MX lookup, so again no DANE. RFC 7672 treats "bogus" or "indeterminate" DNSSEC answers as lookup failures, so a broken DNSSEC chain can delay mail to that domain.

Before you plan anything, check both zones with our DNS lookup tool or with dig +dnssec against a validating resolver. The ad (authenticated data) flag in the response tells you the answer was validated. Our DNS lookup fundamentals for MSPs explains how to read those responses.

05

What does a TLSA record for SMTP look like?

A TLSA record for SMTP lives at _25._tcp. followed by the MX hostname, not the email domain. It holds four fields: certificate usage, selector, matching type, and the hash. For a server called mx1.example.com, the record looks like this:

_25._tcp.mx1.example.com. 3600 IN TLSA 3 1 1 (
    8d02536c887482bc34ff54e41d2ba659bf85b341a0a20afadb5813dcfbcf286d )

The three numbers mean:

Field Value Meaning
Certificate usage 3 DANE-EE: match the server's own (end-entity) certificate
Selector 1 SPKI: match the public key only, not the whole certificate
Matching type 1 SHA-256 hash of the selected data

RFC 7672 says: "we RECOMMEND the use of DANE-EE(3) SPKI(1) SHA2-256(1)". The second choice is DANE-TA(2) Cert(0) SHA2-256(1), written 2 0 1, which pins the issuing certificate authority (CA) instead of the server key. With DANE-TA, the server must send that CA certificate in its TLS handshake.

You will see 2 1 1 records in the wild, and validators accept them. But RFC 7672 says DANE-TA publishers "SHOULD publish records with a selector of Cert(0)", because SPKI leaves the rest of the CA certificate mutable. Avoid usages 0 and 1 (PKIX-TA and PKIX-EE). RFC 7672 says port 25 records "SHOULD NOT" use them, and Microsoft's documentation says Exchange Online treats them as not usable.

Why 3 1 1 as default? Hashing the public key means the record survives certificate renewals that keep the same key. That suits automated certificates well, as long as your renewal tooling reuses the key.

06

How do you generate the TLSA hash with openssl?

Extract the public key from the certificate, convert it to DER, and hash it with SHA-256. The output is the hex string for a 3 1 1 record. Run it against the exact certificate file your mail server presents on port 25.

openssl x509 -in /etc/postfix/mx1.pem -noout -pubkey 
  | openssl pkey -pubin -outform DER 
  | openssl dgst -sha256 
  | awk '{print $NF}'

If you only have the live server, fetch its certificate over STARTTLS first:

openssl s_client -connect mx1.example.com:25 -starttls smtp </dev/null 2>/dev/null 
  | openssl x509 -outform PEM > mx1.pem

After publishing, test the full chain from outside. OpenSSL 1.1.0 and later can check a record directly:

openssl s_client -connect mx1.example.com:25 -starttls smtp 
  -dane_tlsa_domain mx1.example.com 
  -dane_tlsa_rrdata "3 1 1 8d02536c887482bc34ff54e41d2ba659bf85b341a0a20afadb5813dcfbcf286d"

Look for a line reporting the verified TLSA record. Then confirm with dig +dnssec TLSA _25._tcp.mx1.example.com that the record comes back with the ad flag.

07

How do you roll keys without breaking inbound mail?

Publish the TLSA record for the next key before you deploy that key, wait for caches to expire, then switch. RFC 7672 says: "Two TLSA records MUST be published before employing a new EE or TA public key or certificate." Remove the old record only after the new key is live and verified.

A practical runbook for a 3 1 1 rollover:

  1. Generate the new key pair and certificate, but do not install it yet.
  2. Publish a second TLSA record with the new key's hash. Keep the current one.
  3. Wait at least two TTLs. RFC 7671 says to add the new records "at least two Times to Live (TTLs) or longer before the new chain is deployed".
  4. Install the new certificate on the MX host and reload the mail service.
  5. Run the openssl check above against the new record.
  6. Remove the old TLSA record.

The classic failure is an automated certificate renewal that silently generates a new key. The server starts presenting a key no TLSA record matches. DANE-validating senders then defer mail, and if it is not fixed in time, it bounces. Configure your ACME client to reuse the key, or script the TLSA update into the renewal hook ahead of deployment. For MSPs, this belongs in the change calendar next to DKIM key rotation.

08

How does DANE compare with MTA-STS?

Both force authenticated TLS on mail to your domain, and both report failures through TLS-RPT. DANE anchors trust in DNSSEC and pins a key. MTA-STS anchors trust in an HTTPS-hosted policy and public CA certificates. They can run side by side: RFC 8461 says senders must not let MTA-STS override a failing DANE validation.

DANE for SMTP MTA-STS
Standard RFC 7672 (with RFC 6698, RFC 7671) RFC 8461
Protects Mail sent to your domain, by senders that validate DANE Mail sent to your domain, by senders that honour MTA-STS
Needs DNSSEC Yes, on the recipient domain and the MX host zone No
Trust model Key or CA pinned in signed DNS; no public CA needed Public CA certificate plus policy fetched over HTTPS
First contact Protected from the first message, if DNSSEC validates Policy is cached after first fetch; first contact can be downgraded
Failure behaviour Sender must not deliver; mail is deferred, then bounced In enforce mode, sender must not deliver to failing MX hosts
Reporting TLS-RPT, RFC 8460 (policy-type: tlsa) TLS-RPT, RFC 8460 (policy-type: sts)
Main operational risk Key rollover and DNSSEC chain errors Stale policy file after MX changes

The reporting record is the same for both:

_smtp._tls.example.com. IN TXT "v=TLSRPTv1;rua=mailto:tlsrpt@example.com"

RFC 8460 defines daily JSON reports that tell you whether senders met your DANE or MTA-STS policy. Set it up before enforcing either. TLS-RPT explained covers reading those reports. The MTA-STS details are in how MTA-STS strengthens email transport security.

09

Who actually validates DANE when sending mail?

DANE only protects you against senders that check it. Exchange Online is the large one: Microsoft documents outbound DANE as on by default for every tenant. Google documents MTA-STS support for Gmail, but when we checked in November 2026 we found no Google documentation saying Gmail validates DANE.

Microsoft Exchange Online. Microsoft's Exchange team says outbound SMTP DANE with DNSSEC "was released in 2022". Microsoft Learn says it is "ON by default for all Exchange Online customers" and that a tenant-level opt-out "isn't available". Where no TLSA record exists, mail flows as usual. Where DANE fails, Exchange Online retries after 15 minutes, again after 15 minutes, then hourly for 24 hours, then returns a non-delivery report (NDR). The error codes are 4/5.7.321 to 4/5.7.324.

Inbound DANE with DNSSEC for customer domains reached general availability on 28 October 2024. Microsoft also listed a target of 1 July 2026 for provisioning new accepted domains on DNSSEC-enabled mx.microsoft infrastructure. Check the current Message Center status rather than assuming a date.

Google and Gmail. Google's Workspace help says Gmail messages "comply with MTA-STS when sent to external servers with an MTA-STS policy in enforced mode". The page does not mention DANE. When we checked in November 2026, smtp.google.com returned no TLSA record and Google's zone was not DNSSEC-signed. So a Google Workspace client cannot currently get inbound DANE. MTA-STS is the route there.

Self-hosted mail. Postfix supports DANE validation for outbound mail when pointed at a DNSSEC-validating resolver. Check your own MTA's documentation before you rely on it.

10

Is DANE required anywhere?

In the Netherlands, yes, for the public sector. The Dutch Standardisation Forum lists STARTTLS and DANE as mandatory on its "pas toe of leg uit" (comply or explain) list. In the UK, government guidance requires MTA-STS and TLS-RPT, and does not mention DANE.

Netherlands. STARTTLS and DANE (RFC 3207 and RFC 7672) went on the list by decision of 19 September 2016. The scope was widened on 29 November 2018 from receiving mail servers to both receiving and sending servers. It applies to Dutch central government, provinces, municipalities, water boards and (semi-)public sector bodies. MTA-STS is not on that list. An MSP serving Dutch public-sector clients should treat DANE as a procurement requirement.

United Kingdom. The NCSC's MTA-STS guidance recommends starting in testing mode with TLS-RPT, then moving to enforce. That page does not mention DANE or DNSSEC. The GOV.UK Securing government email guidance says departments must publish an MTA-STS policy and set up TLS-RPT, and also does not mention DANE. For UK clients, MTA-STS is the expected control and DANE is an optional extra.

11

Does DANE replace DMARC, or the other way round?

No. DANE is transport encryption: it makes sure mail to your domain travels over authenticated TLS. DMARC is sender authentication: it tells receivers what to do with mail that claims your domain but fails SPF and DKIM alignment. A domain can have perfect DANE and still be spoofed freely.

The reverse is also true. A domain at p=reject under RFC 9989 can still have its inbound mail read on a hostile network path. The two controls protect different things:

  • DMARC protects other people's inboxes from fake mail using your domain.
  • DANE protects mail that other people send to you while it is in transit.

That is why DMARC comes first in most projects. Spoofing is the more common and more visible risk. Our modern email security stack article shows the usual deployment order.

12

Should your client get DANE? An MSP decision table

Deploy DANE where the client's DNS host supports DNSSEC and the mail platform can publish TLSA records. That is Microsoft 365 with the mx.microsoft migration, or self-hosted Exchange or Postfix. Everyone else should get MTA-STS plus TLS-RPT now, and revisit DANE when their DNS or mail provider changes.

Client setup Can it have inbound DANE? Recommended action
Microsoft 365, DNS host supports DNSSEC Yes Sign the zone, run Enable-DnssecForVerifiedDomain, move the MX to mx.microsoft, then Enable-SmtpDaneInbound. Microsoft publishes the TLSA records.
Microsoft 365 with a third-party gateway as MX Depends on the gateway Microsoft lists some gateway setups as limitations. DANE must be published for the gateway's MX hostname, by the gateway vendor.
Self-hosted Exchange Server or Postfix Yes, if both zones are signed Publish 3 1 1 TLSA records, add the rollover to your certificate process, monitor TLS-RPT.
Google Workspace Not today, from what we could verify Deploy MTA-STS and TLS-RPT.
Any platform, DNS host without DNSSEC No MTA-STS and TLS-RPT now. Move DNS hosting if DANE is a requirement, for example a Dutch public-sector contract.
Dutch public-sector client Required Plan DNSSEC and DANE on both receiving and sending servers.

A few operating rules for MSPs running this across many tenants:

  • Inventory first. Record per domain: DNSSEC status, MX host, TLSA presence, MTA-STS mode, and TLS-RPT destination.
  • Lower TTLs before MX moves. Microsoft's procedure asks for this before switching to mx.microsoft. If MTA-STS is in enforce, set it to testing and wait out max_age first.
  • Watch DNSSEC as an outage risk. An expired signature or a mismatched DS record at the registrar breaks DANE and can defer all inbound mail.
  • Send TLS-RPT to a mailbox someone reads. Without it, a failed rollover shows up as a client complaint.

Microsoft-specific DMARC work sits alongside this; see DMARC for Microsoft 365 clients. For MX record details across platforms, see MX records and email authentication.

13

FAQ

Does DANE protect the email I send?

No. DANE protects mail sent to a domain that publishes TLSA records. Your outgoing mail gets DANE protection only if your mail platform validates DANE and the recipient publishes TLSA records. Exchange Online does this by default. Publishing TLSA records for your own domain protects your inbound mail.

Can I use DANE and MTA-STS together?

Yes, and many domains do. They protect against the same downgrade attacks using different trust models. Senders that validate DANE use it, and senders that only support MTA-STS use the policy. RFC 8461 says an MTA-STS pass must never override a failed DANE check. Keep the MTA-STS mx: lines in sync when you change MX hosts.

What happens if my TLSA record is wrong?

Senders that validate DANE will not deliver to your server. Exchange Online retries for about 24 hours, then bounces the message with an NDR. Other senders keep delivering normally, so the problem can hide for a while. TLS-RPT reports with policy-type: tlsa and failure counts are your early warning.

Is DNSSEC risky to enable?

It adds a failure mode: expired signatures or a mismatched DS record make your domain fail validation. Most managed DNS hosts automate signing and key rollover, which removes most of the risk. Enable it on a quiet domain first, check validation from outside, and monitor it like any other production service.

Does DANE help with DMARC alignment or deliverability?

No. DANE does not touch SPF, DKIM or DMARC results, and it does not change how receivers judge your sender reputation. It only affects whether mail to your domain travels over authenticated TLS. Treat it as a separate transport control after DMARC enforcement is in place.

14

Final thoughts

DANE for SMTP is the strongest transport protection SMTP has. It covers the first message, needs no public CA, and is validated by default by Exchange Online. Its cost is DNSSEC on two zones and disciplined key rollover. For Microsoft 365 clients on a DNSSEC-capable DNS host, the setup is now a few PowerShell commands.

For everyone else, MTA-STS with TLS-RPT is the practical baseline, and it is what UK government guidance asks for. Dutch public-sector clients need DANE regardless. Whatever you choose for transport, keep DMARC enforcement as the first priority. To manage DMARC across a client portfolio, see DMARC for MSPs.

Related articles

Related tools

Ready to Implement?

Get authenticated mail moving in minutes: start free, book a guided demo, or talk to the team about your stack.