Free tools / Email

DANE and TLSA Checker for Mail Servers

Reads the TLSA records on each MX host and the DNSSEC they need.

Answers in about a second. No sign-up, and no email address.

What this tool does

DANE lets your domain state, in DNSSEC-signed DNS, which certificate or key your mail servers will present. A sending server that supports it refuses to deliver over a connection that does not match, which stops STARTTLS stripping and certificate substitution without relying on MTA-STS or the web PKI.

Enter a domain to look up its MX hosts, read the TLSA record for each one at _25._tcp, check its parameters, and see whether the zones involved are signed and anchored, without which senders ignore the records.

Reading the result

3 1 1
Usage 3 (DANE-EE), selector 1 (public key), SHA-256. The recommended form for mail servers.
Signed and anchored
The zone has a DNSKEY and its parent holds a DS record. Without both, TLSA records are ignored.
No TLSA
DANE is not in use for that host. Common, and not a fault on its own.
Could not check
A DNS query failed. That is not evidence the record is missing.

How a sender uses DANE

A sending server that supports DANE looks up your MX records, then asks for the TLSA record at _25._tcp.<mx host> for the host it is about to connect to. If that record exists and the answer is DNSSEC-validated, the sender requires STARTTLS and a certificate that matches the record. If either check fails, it defers the mail rather than send it in clear text or to an impostor. RFC 7672 defines this for SMTP.

The protection rests entirely on DNSSEC. An unsigned zone lets an attacker forge the TLSA answer as easily as the MX answer, so senders ignore TLSA records that are not validated. That is why this check reads the zone's DNSKEY and the DS record at its parent before it says anything about the records themselves.

Reading a TLSA record

A TLSA record is four fields: usage, selector, matching type and the data. RFC 7671 gives the operational advice behind the recommendations below.

Field Values For mail servers
Usage 0 PKIX-TA, 1 PKIX-EE, 2 DANE-TA, 3 DANE-EE Use 3 (pin the server's own key) or 2 (pin your CA). 0 and 1 are for the web.
Selector 0 full certificate, 1 public key Use 1: the key survives a certificate renewal that keeps it.
Matching type 0 exact, 1 SHA-256, 2 SHA-512 Use 1. A SHA-256 digest is 32 bytes, SHA-512 is 64.
Data The certificate, key, or its digest, in hex Generated from the certificate with a tool such as openssl or ldns-dane.

Changing keys without losing mail

  1. Generate the new key and certificate, but do not install them yet.
  2. Publish a TLSA record for the new key next to the current one, so both are valid.
  3. Wait at least twice the TLSA record's TTL, so every sender's cache holds both.
  4. Install the new key and certificate on the mail server.
  5. Remove the old TLSA record once the server has been on the new key for a while.
Note. A certificate renewal that keeps the same key needs no DNS change at all when the record uses selector 1, which is the main reason 3 1 1 is recommended.

What this check cannot see

Whether the record matches the certificate the server actually presents is the one thing a DNS lookup cannot answer. It needs an SMTP session on port 25, which cloud hosts, this one included, block outbound. The senders who do connect report mismatches in their daily TLS reports as tlsa-invalid, and dnssec-invalid when the chain fails, so publishing TLS-RPT alongside DANE is how you hear about a broken record. Signed here also means structurally signed, a DNSKEY with a DS at the parent; the signatures themselves are not validated one by one.

Use it with

Standards and references

Questions people ask

Does this check that the TLSA record matches the certificate?

No. That needs an SMTP connection to port 25, which this service's host cannot make, because cloud providers block outbound port 25. The page says so on every result. Sender TLS reports (TLS-RPT) show a tlsa-invalid failure when the record and the certificate do not match.

Do I need DANE if I have MTA-STS?

They solve the same problem in different ways and can run together. MTA-STS needs no DNSSEC and is what Google and Microsoft check when sending; DANE needs DNSSEC and is what Postfix, many European providers and Microsoft 365 outbound use. Publishing both covers both groups of senders.

Why does a single TLSA record get a warning?

Because the record must change before the server's key does. Publish the next key's record alongside the current one, wait for the old record's TTL to pass, then swap the key. With one record, a key change breaks delivery from every DANE sender until DNS catches up.

Can I use DANE with Google Workspace or Microsoft 365 mail?

For inbound mail, only if the provider publishes TLSA records for its own MX hosts in a signed zone; you cannot add them for servers you do not control. Microsoft 365 has been rolling out inbound DANE support; check the MX host your tenant uses.

Related tools

Where this fits

This check reads what is public. These are the engagements that go further, and what each one covers.

Want a person to look at it? These checks read what is public. A review with us covers what they cannot see. See the posture review →