Skip to content
AdminKit
Free tool Updated

MTA-STS check: is this domain's mail TLS policy published and enforcing?

How does this check work, and what does the result tell you?

Enter a domain and AdminKit's free tool checks whether it publishes a live MTA-STS record and policy file, reading back the real mode — enforce, testing or none — and the MX hosts and max_age it declares, because without MTA-STS an attacker in the path can force incoming mail to a silent, unencrypted downgrade.

Part of the Email authentication cluster — more tools, guides and terms on email authentication.

AI explanation Run a check below, then sign in to ask AI to explain the result in plain language.

What the result means

"Not published" usually means no _mta-sts record exists yet — nothing is broken. Check the findings, though: two or more v=STSv1 records also show as "Not published", and that one is a real error to fix. "Published but broken" means the record exists but the policy file can't be fetched or its mode is invalid, which is worse: some senders may already be relying on it and silently failing to deliver.

Next step

See how to publish and test MTA-STS for the full rollout path, confirm your MX hosts match the policy's list, or check your DMARC policy next.

Keep this result

Copy a link to this check so you can share it or run it again later. Want a heads-up when this result changes? Talk to our team and we'll set it up for you.

How it works and limits

This tool calls AdminKit’s live Check API (POST /v1/check/mail) and reads back the MTA-STS sub-check: a real DNS lookup for the _mta-sts.<domain> TXT record, followed by a server-side fetch of the policy file at https://mta-sts.<domain>/.well-known/mta-sts.txt — both done by AdminKit’s backend, not by code running in your browser. MTA-STS is defined in RFC 8461, a Standards Track RFC whose IETF Datatracker record also shows any errata or later updates to it.

How it works

MTA-STS needs two pieces published together, and this tool checks both:

  • The DNS record — a TXT record at _mta-sts.<domain> that begins with exactly v=STSv1 and carries an id=<unique-id> of 1 to 32 letters and digits, declaring that a policy exists and giving senders a version to detect changes by.
  • The policy file — hosted over HTTPS at mta-sts.<domain>/.well-known/mta-sts.txt as text/plain, with a version: STSv1 line, a mode (enforce, testing or none), the mx hostnames the policy covers (required for enforce and testing), and a max_age for how long senders should cache it, at most 31557600 seconds (about a year). Field names and values are case-sensitive: Mode: Enforce is not valid.

Those are the complete sets of registered fields: IANA’s MTA-STS registries list only v and id for the TXT record and only version, mode, max_age and mx for the policy file, all defined in RFC 8461 §3.

The mode is what matters most: enforce means compliant senders must defer or reject mail they can’t deliver over TLS to a listed MX host; testing means senders only report what would have happened, without blocking anything; none means the policy exists but doesn’t require TLS at all. Google’s Workspace guide to MTA-STS and TLS reporting advises setting the policy to testing mode first, using the daily TLS reports to fix connection issues, and only then changing it to enforce. If the DNS record is missing (or there is more than one), the tool reports it as not published. If the record exists but anything the check rates high is wrong, the tool reports it as published but broken, whatever mode the policy file declares:

  • the record’s id is missing or is not 1 to 32 letters and digits;
  • the policy file can’t be fetched (anything other than HTTP 200);
  • the policy has no version: STSv1 line;
  • its mode is missing or not one of the three values;
  • its max_age is missing, not a whole number of up to 10 digits, or over 31557600;
  • mode is enforce or testing and no mx line is listed.

Senders treat each of these as “no usable policy” (RFC 8461 §3), so a policy that says mode: enforce is not in force. Reporting it as broken surfaces a real problem rather than lumping it in with “not published”. If the DNS query itself fails, the tool shows Could not check (DNS lookup failed) instead.

How to read the results

  • Status badge — one of Enforced, Testing (not enforced), Published, not enforced (mode=none), Published but broken, Not published or Could not check (DNS lookup failed), worked out from the check’s status, the TXT record and the policy file’s mode. Next to it is the check’s one-line summary, such as example.com MTA-STS: mode=enforce, 2 mx entries or MTA-STS policy file not fetchable (404).
  • TXT record (_mta-sts.<domain>) — the exact v=STSv1 record found. It only appears when the domain publishes exactly one such record; with two or more, the badge reads Not published and the findings list shows “Multiple MTA-STS TXT records” instead, because senders cannot pick between them. A failed DNS lookup shows Could not check (DNS lookup failed) with the finding “Could not query TXT records”: the record may exist, so run the check again before acting on it.
  • Policy mode, MX hosts in policy, max_age (seconds) — read from the policy file when it returned HTTP 200. (none) means the file has no mode line, (none listed) means no mx lines, and (invalid/missing) means max_age is absent, not a whole number of up to 10 digits, or over 31557600.
  • Policy file … returned HTTP N / could not be fetched — shown instead of those three fields when the policy file did not come back with HTTP 200. The fetch does not follow redirects and validates the certificate, so a redirect shows its 3xx status and a TLS, DNS or connection failure shows “could not be fetched”.
  • Findings — each with a severity badge:
    • high, which makes the badge read Published but broken: “MTA-STS record has no ‘id’ tag”, “MTA-STS record ‘id’ is not 1-32 letters/digits”, “MTA-STS policy file could not be fetched”, “MTA-STS policy has an invalid or missing ‘version’”, “MTA-STS policy has an invalid or missing ‘mode’”, “MTA-STS policy lists no ‘mx’ hosts” (only under enforce or testing) and “MTA-STS policy has no valid ‘max_age’”;
    • medium: “Multiple MTA-STS TXT records” and “Could not query TXT records”;
    • low: “No MTA-STS record published” (with the TXT record to add), “MTA-STS policy mode is ‘none’” and “MTA-STS policy is not served as text/plain” (only checked when the server sends a Content-Type);
    • info: “MTA-STS policy mode is ‘testing’”.

The check does not compare the policy’s MX hosts with the domain’s real MX records — run the MX lookup and compare the two lists yourself. A mismatch matters once the policy is in enforce: Microsoft’s Exchange Online MTA-STS documentation lists non-delivery code 5.4.8 for mail whose destination MX host wasn’t the host the domain’s policy expected.

Examples

What the domain publishesBadgeWhat else you see
One v=STSv1; id=20261112T000000 record; policy version: STSv1, mode: enforce, mx: mx1.example.com, max_age: 604800EnforcedSummary example.com MTA-STS: mode=enforce, 1 mx entries, no findings.
Same record; policy mode: testing with two mx linesTesting (not enforced)info finding “MTA-STS policy mode is ‘testing’”.
Same record; policy mode: none, max_age: 86400, no mxPublished, not enforced (mode=none)low finding for mode none. No mx finding: mx is optional under none.
Record v=STSv1 (no id); a policy file with mode: enforcePublished but brokenhigh finding “MTA-STS record has no ‘id’ tag”. Senders ignore the record.
Same record as the first row; policy mode: enforce but no mx linePublished but brokenhigh finding “MTA-STS policy lists no ‘mx’ hosts”.
Same as the first row, but the policy file has no version: linePublished but brokenhigh finding “MTA-STS policy has an invalid or missing ‘version’”.
Same as the first row, but served as text/htmlEnforcedlow finding “MTA-STS policy is not served as text/plain”.
Record present, but https://mta-sts.example.org/.well-known/mta-sts.txt returns 404Published but broken“Policy file … returned HTTP 404.” and a high finding “MTA-STS policy file could not be fetched”.
No _mta-sts.example.net TXT recordNot publishedlow finding “No MTA-STS record published” with the record to publish.
The DNS query for _mta-sts.example.net returns SERVFAILCould not check (DNS lookup failed)medium finding “Could not query TXT records”.

Limits

  • This reads the live state of the record and policy file at the moment you run it — it does not open a TLS connection to any MX host, so it cannot confirm a sending server would actually honor the policy, only that the policy itself is correctly published.
  • No query is logged; see /legal/privacy/.

This tool reads a policy that’s already published; if your domain has none yet, or you need to build the policy file and TXT record from your MX hosts, AdminKit’s MTA-STS policy generator builds both for you to host and publish.

See how to publish and test MTA-STS for the full rollout path — start in testing, add TLS-RPT (defined in RFC 8460) for visibility into delivery failures the policy itself won’t tell you about, then move to enforce once reports confirm the MX list is accurate. Check your DMARC policy and your domain’s MX records next — the MX hostnames your mail actually flows through are exactly what an MTA-STS policy’s mx list needs to match.

Frequently asked questions

What does MTA-STS mode=testing actually do?

It asks sending servers to report what would have happened under the policy without blocking any mail — RFC 8461 §5 defines 'testing' as a mode where "the Policy Domain requests that Senders apply the requirements of MTA-STS, but Senders SHOULD NOT act with regard to policy violations" beyond reporting. It's a rollout stage, not enforcement: a mismatched MX list won't bounce or delay mail while in testing, only surface in reports (if TLS-RPT is also configured).

What does MTA-STS mode=enforce actually guarantee?

RFC 8461 §5 defines 'enforce' as requiring Senders to "honor the MTA-STS Policy ... refus[ing] to deliver messages to MX hosts that do not present" a certificate matching the policy over TLS — connections that can't meet that bar must be deferred or rejected. It only covers mail delivered TO this domain over SMTP; it says nothing about outbound mail or any other protocol.

Does a missing MTA-STS record mean this domain's mail is unsafe?

Not on its own — MTA-STS is a hardening layer, not a baseline requirement, and most mail still relies on opportunistic STARTTLS without it. A missing record means there is no declared, enforceable requirement for incoming mail to use TLS, so an attacker in the network path can force a silent downgrade to plaintext without either side noticing; it's a gap worth closing, not evidence of an active compromise.

Why does the tool show 'published but broken' instead of just 'not published'?

They are different problems. 'Not published' means no single `_mta-sts` TXT record starting with v=STSv1 was found (two or more also land here, with a finding). 'Published but broken' means the record exists but senders would ignore it (RFC 8461 §3): a missing or invalid id, a policy file that can't be fetched, or a policy without version: STSv1, a valid mode or a valid max_age, or with no mx under enforce or testing.

Why does the policy file show HTTP 301 or "could not be fetched" when it opens fine in my browser?

AdminKit fetches the policy file the way RFC 8461 §3.3 asks senders to: a single HTTPS GET to https://mta-sts.<domain>/.well-known/mta-sts.txt with certificate validation and no redirect following. A 3xx redirect is reported as that HTTP status, and a certificate, DNS or connection failure as "could not be fetched" — either way senders would not get the policy, so serve the file directly with a valid certificate for the mta-sts host.