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 record | v=STSv1; id=… tells senders you have a policy. The id is a version label: change it whenever the policy changes. |
|---|---|
| The policy file | A 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.