MTA-STS and TLS-RPT Checker
Check a domain's _mta-sts record, its policy file, whether every MX host is covered, and its TLS-RPT record. MTA-STS (RFC 8461) tells other mail servers to deliver to you only over verified TLS.
Set up MTA-STS in four steps
You need two DNS records and one small text file on a web server. Replace example.com with your domain and the mx lines with your own MX hosts.
1. Publish the policy file
Serve it at exactly
https://mta-sts.example.com/.well-known/mta-sts.txtwith HTTP 200 and atext/plaincontent type. The certificate must be valid formta-sts.example.com. Senders must not follow redirects, so a redirect to www or to another host means no policy.version: STSv1 mode: testing mx: mail.example.com mx: *.mail.example.net max_age: 86400
One
mxline per host or pattern.*.mail.example.netcoversa.mail.example.netbut nota.b.mail.example.net: the wildcard is one label.2. Publish the _mta-sts TXT record
_mta-sts.example.com. TXT "v=STSv1; id=20261030T1200"
The
idis 1 to 32 letters and digits. Change it every time you change the policy file, and update the file first: RFC 8461 section 8.1 warns that the other order lets senders cache the old policy under the new id.3. Turn on TLS reporting
_smtp._tls.example.com. TXT "v=TLSRPTv1; rua=mailto:[email protected]"
ruatakesmailto:orhttps:addresses, comma separated. Reports are JSON and summarise successful and failed TLS sessions per sending organisation.4. Move from testing to enforce
In
testing, senders that support TLS-RPT report failures and deliver anyway. Inenforce, RFC 8461 says they “MUST NOT deliver the message to hosts that fail MX matching or certificate validation or that do not support STARTTLS.” Switch once the reports are clean, then raisemax_age. The RFC expects “weeks or greater”, and caps it at 31557600 seconds. Change theidagain so senders fetch the new file.
If your mail provider hosts the policy
RFC 8461 section 8.2 allows delegation: point _mta-sts at the provider with a CNAME, and serve mta-sts.example.com from the provider or a reverse proxy. The certificate still has to be valid for mta-sts.example.com, not for the provider's host name.
Turning it off safely
Do not just delete the records. Senders keep a cached policy for up to max_age. Publish mode: none with a short max_age such as one day, change the id, wait until every older policy has expired, and only then remove the TXT record and the file (RFC 8461 section 8.3).
Sources: RFC 8461 (MTA-STS), RFC 8460 (SMTP TLS Reporting). Checked 30 October 2026.
Frequently Asked Questions
MTA-STS, defined in RFC 8461, lets a domain tell other mail servers to deliver to it only over TLS with a valid certificate, and only to the MX hosts it lists. Without it, a sending server that cannot start TLS usually falls back to plain text, and an attacker on the path can force that.
Policy hosts serve mta-sts.txt for mail servers, not web pages, so they do not send the CORS headers a browser needs. This page asks a small function on dmarcplus.com to fetch that one URL for the domain you typed. It follows no redirects, waits at most 5 seconds and reads at most 64 KB.
Testing. In testing mode, senders that also support TLS-RPT send you reports about failures but still deliver the mail. Read those reports for a few weeks, fix any MX host with a bad certificate, then switch to enforce and raise max_age.
SMTP TLS Reporting, RFC 8460. A TXT record at _smtp._tls.yourdomain with v=TLSRPTv1 and a rua address asks sending servers to send daily reports about TLS connections to your mail servers, including failures. It works with or without MTA-STS, but MTA-STS testing mode is of little use without it.
No. Those three prove who sent a message. MTA-STS protects mail coming in to your domain while it travels between servers. They solve different problems and you want both.
MTA-STS covers mail coming in. For mail going out as your domain, check DMARC, SPF and DKIM.
Stop spoofing of your domain, too
DMARC+ reads your DMARC reports and takes your domain from p=none to p=reject in three phases, with SMS and email alerts along the way.
Start Your 14-Day Trial