Skip to content
TrySitePrice

MTA-STS Lookup

Enter a domain and we read both halves of its MTA-STS deployment: the TXT record, the policy file fetched the way a sender fetches it, and whether the policy’s mx list actually covers the MX hosts the domain publishes today.

We read the _mta-sts TXT record, then fetch the policy from mta-sts.<domain> and check its mx list against the domain's real MX hosts.

Questions about MTA-STS

01What does MTA-STS actually do?

It lets a receiving domain say: mail to me must arrive over TLS, to one of these MX hosts, with a valid certificate. Without it, a sending server that cannot negotiate TLS will usually deliver in the clear instead, and a server that is handed a bad certificate will usually accept it. MTA-STS turns both of those into delivery failures.

02Why are there two things to publish?

A TXT record at _mta-sts.<domain> and a policy file at https://mta-sts.<domain>/.well-known/mta-sts.txt. The record is small and cached by DNS; its id value is what tells a sender the policy changed and needs re-fetching. The policy itself is the part with the mx list and the mode, and it is fetched over HTTPS so its authenticity rests on your certificate.

03The two files use different formats — is that a mistake?

No, and it catches people out. The TXT record is semicolon-delimited key=value, per the section 3.1 ABNF where sts-field-delim = *WSP ";" *WSP. The policy file is line-oriented key: value, per section 3.2 where sts-policy-field-delim = ":" *WSP and sts-policy-term = LF / CRLF. Writing the policy in the record’s format, or the reverse, produces a file that looks fine and parses as nothing.

04Why does a redirect break the policy?

Section 3.3 is explicit: HTTP 3xx redirects MUST NOT be followed, and policies fetched via HTTPS are only valid if the response code is 200. So a host that redirects /.well-known/mta-sts.txt to a tidier URL, or to HTTPS from HTTP, publishes no readable policy at all. This tool asks with redirects disabled for exactly that reason — a checker that follows them reports a policy no sender will ever see.

05What is the worst way to get this wrong?

An mx list in enforce mode that misses one of your own MX hosts. A sender that reaches the uncovered host treats the delivery as failed, so mail through it stops — and nothing in your DNS or your policy looks broken. That is why this page fetches your live MX records and matches them against the list, rather than only checking the policy’s syntax.

06How does the wildcard in an mx pattern work?

Section 4.1 allows * only as the entire left-most label. So *.example.net matches mx1.example.net but not a.b.example.net and not example.net itself. It is not a general glob, and treating it as one is how a pattern ends up covering less than its author expects.

07What should max_age be?

Section 3.2 defines it as plaintext non-negative integer seconds with a maximum value of 31557600, which is about a year. The RFC sets the ceiling and no floor, so this tool reports the value and flags only a number above the ceiling. A short value while you are testing and a long one once the policy is settled is the usual shape, but the RFC does not name figures and neither does this page.

08What does mode: none mean?

It is how you withdraw a policy. Senders that cached your previous policy read mode: none and stop enforcing, which is the safe way out. Deleting the TXT record instead leaves every sender enforcing a cached policy until its max_age expires.

Related checks

MTA-STS tells senders to insist on TLS; TLS reporting is how you find out when that insistence failed. The certificate on each MX host is the SSL checker’s job and the transport it negotiates is the TLS checker’s. The MX list itself comes from an MX lookup.