Tools MTA-STS checker

MTA-STS and TLS reporting checker

Check that email sent to you must travel encrypted: your MTA-STS record and policy file, the mail servers it lists, and TLS reporting, with the safe steps from testing to enforce.

What MTA-STS does

Email between mail servers is usually encrypted, but by default encryption is optional: if it fails, or someone in the middle strips it out, the sender delivers your email unencrypted anyway.

MTA-STS lets you tell senders such as Gmail and Outlook: always encrypt when you deliver to me, and only to these mail servers. If they can't, they hold the email back instead of sending it in the clear.

The three parts

The _mta-sts TXT recordv=STSv1; id=… tells senders you have a policy. The id is a version label: change it whenever the policy changes.
The policy fileA small text file at https://mta-sts.yourbusiness.com/.well-known/mta-sts.txt with the mode, your mail servers and how long senders may remember it (max_age, in seconds). It needs a web address with a valid HTTPS certificate.
TLS reporting (_smtp._tls)Optional, but wise: big senders such as Google email you a daily summary of any encryption problems, so you know before you enforce.

The safe path

  • Start in mode: testing, with TLS reporting on. Nothing is refused; problems are only reported.
  • Read the reports for two to four weeks. Failures usually mean a mail server is missing from the policy, or has an expired certificate.
  • Switch to mode: enforce and change the id. Raise max_age to a week (604800) or more.
  • To retire MTA-STS later, publish mode: none and change the id, wait for the old max_age to pass, then remove the records.

The id rule

Senders keep their copy of your policy for max_age seconds, and only fetch the file again early when the id in the _mta-sts record changes. So change the file first, then the id, for example to the date and a number: 2026112501.

Change the id without changing the file and nothing happens. Change the file without the id, and senders that already have a copy keep using the old one until it runs out.

What we check, and what we don't

We read the records, fetch the policy file once (without following redirects, as senders don't either) and compare it with your mail servers. In enforce mode, senders also insist that each mail server's certificate is valid for its name. This tool doesn't connect to your mail servers; the email setup check does.

Questions people ask

Where do I put the policy file?
Anywhere that can serve one small text file at mta-sts.yourbusiness.com over HTTPS: your web host (as a subdomain), a free static site host, or a small Cloudflare Worker. Add the DNS record that host asks for (usually a CNAME named mta-sts), then upload the file to /.well-known/mta-sts.txt.
Can MTA-STS stop me receiving email?
In enforce mode it can, if the policy leaves out one of your mail servers or a mail server's certificate expires. That's why you start in testing, read the TLS reports, and check here again whenever you change email provider.
Is it the same as DANE?
It does the same job a different way. DANE uses DNSSEC instead of a web file; it's stronger, but needs DNSSEC and a DNS host that supports it. MTA-STS works with any DNS host, and you can use both.