MTA-STS Policy Checker
Look up the _mta-sts Text (TXT) record and the HyperText Transfer Protocol Secure (HTTPS) policy file, then cross-check the policy's mx patterns against the domain's real Mail Exchange (MX) hosts.
The two parts of MTA-STS, with examples
First, a TXT record that announces the policy and its version:
_mta-sts.example.com. IN TXT "v=STSv1; id=20261112T090000"
Second, a text file served at
https://mta-sts.example.com/.well-known/mta-sts.txt:
version: STSv1
mode: enforce
mx: mx1.mail.example.net
mx: *.mail.example.org
max_age: 604800
modeisnone,testing(failures are reported, mail is still delivered) orenforce(mail is not delivered to a server that fails).- Each
mxline names a permitted mail server. A wildcard covers exactly one label:*.mail.example.orgmatchesa.mail.example.org, nota.b.mail.example.org. max_ageis the time in seconds a sender keeps the policy; 604800 is one week.
Faults that make senders ignore or misapply the policy
- The id was not changed. Senders fetch the file again only when the
idin the TXT record changes. After editing the file, set a newid. - An MX host is missing from the policy. In
enforcemode, senders refuse to deliver to a mail server that nomxline matches. This happens when a mail provider is changed and the policy file is forgotten. - The policy host has no valid certificate.
mta-sts.<domain>must answer over HTTPS with a certificate valid for exactly that name. A redirect is not followed. - The mail server's certificate does not match. Each MX host must present a certificate that is valid for its own host name and issued by a trusted authority; a self-signed certificate fails.
- Enforcing too early. Start with
mode: testingand a TLS-RPT record, read the reports for some weeks, then switch toenforce.
To withdraw MTA-STS, publish mode: none first and keep it for the previous
max_age; removing the record at once leaves senders with a cached policy.
Related tools
Monitor MTA-STS Policy Checker automatically
Look up the _mta-sts Text (TXT) record and the HyperText Transfer Protocol Secure (HTTPS) policy file, then cross-check the policy's mx patterns against the domain's real Mail Exchange (MX) hosts. NetTests can run this check on a schedule, preserve historical results, compare changes over time, and alert you the moment something breaks.
Start monitoring free → See all monitoring productsFrequently Asked Questions
What is MTA-STS and why does it matter?
Mail Transfer Agent Strict Transport Security (MTA-STS) (RFC 8461) is a mechanism that lets email domains declare they support Transport Layer Security (TLS) and that sending servers should refuse to deliver mail if a valid TLS connection cannot be established. Without MTA-STS, an attacker can perform a downgrade attack — stripping STARTTLS from the Simple Mail Transfer Protocol (SMTP) negotiation to receive mail in the clear. MTA-STS prevents this.
How does MTA-STS work?
Two parts: a Domain Name System (DNS) Text (TXT) record at _mta-sts.example.com signals policy existence, and a HyperText Transfer Protocol Secure (HTTPS) policy file at https://mta-sts.example.com/.well-known/mta-sts.txt lists the authorised Mail Exchange (MX) hostnames and the enforcement mode. Sending Mail Transfer Agents (MTAs) fetch the policy file, verify the MX hosts match, and enforce TLS. The HTTPS channel provides authentication that DNS alone cannot.
What is the difference between 'enforce' and 'testing' mode?
mode: enforce — sending servers must establish a valid Transport Layer Security (TLS) connection or reject the delivery attempt. mode: testing — servers attempt TLS but report failures via TLS Reporting (TLS-RPT) without rejecting mail. Start with testing to collect reports and verify your setup before moving to enforce.
Do my MX hostnames need to match the policy exactly?
Yes — the policy file lists the Mail Exchange (MX) patterns your receiving servers must match. This tool cross-checks your live MX records against the policy's mx entries and flags any mismatches. A mismatch in enforce mode would cause sending servers to reject delivery to your domain.