What MTA-STS is and how it works
Mail servers encrypt SMTP with STARTTLS only when both sides offer it, and nothing stops an attacker on the network path from removing that offer. The mail then travels in plain text. MTA-STS (RFC 8461) lets a domain declare that its inbound servers support TLS, so senders refuse to deliver when they cannot set up a valid encrypted connection.
It has two parts. A TXT record at _mta-sts.<domain> such as v=STSv1; id=20261024120000 announces the policy. The policy file itself is served at https://mta-sts.<domain>/.well-known/mta-sts.txt and contains lines such as version: STSv1, mode: enforce, mx: mx1.example.com and max_age: 604800.
Senders that support MTA-STS fetch the policy over HTTPS, cache it for max_age seconds and check the id in DNS to learn when it changes.
How to read your MTA-STS check results
This checker reads the TXT record at _mta-sts.<domain> and checks that v is exactly STSv1 and that id is present and 1 to 32 letters or digits. It also lists any other tags in the record.
It does not fetch the policy file. Open https://mta-sts.yourdomain.com/.well-known/mta-sts.txt in a browser to confirm it loads over HTTPS with a valid certificate and lists every mail server. Compare those mx lines against the MX lookup.
A missing record is not an error, because MTA-STS is optional. Without it, senders still use TLS when your servers offer it, but they fall back to plain text if the offer is stripped.
MTA-STS policy modes and fields
mode has three values. testing asks senders to report TLS problems through TLS-RPT but still deliver. enforce asks them to refuse delivery to servers that do not match the policy or lack valid TLS. none withdraws a previous policy.
mx lines list the allowed mail servers, one per line. A wildcard such as *.example.net matches one label. max_age is how long senders cache the policy, in seconds, up to 31557600 (about a year).
A safe rollout: publish the policy in testing mode with TLS-RPT, read the reports for a couple of weeks, then switch to enforce and change the id.
Common MTA-STS errors and how to fix them
Missing or invalid id. The id is required and may contain only letters and digits, up to 32 characters. Dashes, colons and dots make it invalid. A timestamp such as 20261024120000 works well.
Policy file unreachable. The host mta-sts.<domain> must serve the file over HTTPS with a certificate valid for that name. Senders do not follow redirects, so serve the file directly as text/plain.
Mail server missing from the policy. After changing providers, update the mx lines before the new MX records go live. In enforce mode, senders refuse to deliver to servers the policy does not list.
id not changed after an edit. Senders keep their cached copy until max_age runs out. Changing the id tells them to fetch the new policy.
MTA-STS, TLS-RPT and DMARC
MTA-STS protects mail you receive. DMARC, SPF and DKIM protect your domain from being spoofed in mail other people receive. They are independent, and Google and Yahoo’s sender requirements do not include MTA-STS. Check the sending side with the DMARC checker.
TLS-RPT (RFC 8460) is the reporting companion. A TXT record at _smtp._tls.<domain> such as v=TLSRPTv1; rua=mailto:tls-reports@example.com asks senders for daily reports on TLS successes and failures. The full email security report checks it next to MTA-STS, and MTA-STS and TLS-RPT walks through setup.
MTA-STS trusts the first policy a sender fetches. DANE, which pins certificates in DNS, does not have that gap but requires DNSSEC.
Frequently asked questions
What is MTA-STS?
MTA-STS (RFC 8461) is a standard that tells sending mail servers your domain requires TLS for inbound mail. It uses a TXT record at _mta-sts.yourdomain.com and a policy file on https://mta-sts.yourdomain.com. Senders that support it refuse to deliver over an unencrypted or unverified connection.
Is MTA-STS required?
No. MTA-STS is optional, and Google and Yahoo’s sender requirements do not include it. It is still recommended for any domain that receives sensitive mail, because without it an attacker can force mail to travel unencrypted.
How do I check my MTA-STS policy?
Enter your domain in this MTA-STS checker to validate the TXT record at _mta-sts.yourdomain.com. Then open https://mta-sts.yourdomain.com/.well-known/mta-sts.txt in a browser to confirm the policy file loads over HTTPS and lists all of your MX hosts.
What should the MTA-STS id be?
Any string of 1 to 32 letters and digits. A timestamp such as 20261024120000 is a common choice. Change it every time you edit the policy file so senders fetch the new version.
What is the difference between MTA-STS testing and enforce mode?
In testing mode, senders report TLS failures through TLS-RPT but still deliver the mail. In enforce mode, they refuse delivery when TLS fails or the server is not listed in the policy. Start with testing and switch once the reports are clean.
Do I need TLS-RPT with MTA-STS?
It is not required, but without TLS-RPT you cannot see when senders fail to connect securely. Publish a TXT record at _smtp._tls.yourdomain.com such as v=TLSRPTv1; rua=mailto:tls-reports@yourdomain.com to receive daily reports.