Free tools / Email

MTA-STS Checker

Reads the record and fetches the policy, and says which MX it covers.

Answers in about a second. No sign-up, and no email address.

What this tool does

Mail between servers is encrypted opportunistically, which means that if the encryption fails the message is sent in plain text anyway. Anyone on the network path can force that, and nothing warns either end. MTA-STS lets a domain say in advance which mail servers are legitimate and that TLS is required.

This reads the record, fetches the policy file the way a sending server would, and checks that the mx entries match the MX records actually published — the mistake that stops mail once the policy is enforced.

Reading the result

mode: testing
Senders report failures but still deliver insecurely. No protection yet.
mode: enforce
A sender that cannot match the policy refuses to deliver. This is the goal.
mode: none
The policy is switched off.
max_age
How long senders cache the policy, in seconds. A week is common.
mx
Every mail server allowed to receive. Miss one and enforce stops that mail.

The problem MTA-STS solves

When one mail server delivers to another it offers STARTTLS and, if that works, encrypts. If it does not work it sends in plain text anyway. That fallback is the whole weakness: somebody on the network path can strip the STARTTLS offer and the sender downgrades silently, or present any certificate at all, because opportunistic TLS does not verify one.

MTA-STS lets a domain say in advance which mail servers are legitimate and that TLS is required. A sender that has the policy cached will not fall back. Note the direction: SPF, DKIM and DMARC stop people forging mail from you; MTA-STS protects mail coming to you from being read in transit. They do not overlap.

Three things have to line up

Part Where What it does
TXT record _mta-sts.example.com The signal. Without it senders never look for a policy at all.
Policy file https://mta-sts.example.com/.well-known/mta-sts.txt The rules. Must be HTTPS with a certificate valid for that hostname.
A record mta-sts.example.com So the policy host resolves. Plumbing, with no security meaning of its own.
Note. The policy cannot be served from the main domain. The hostname is fixed by the specification, which is why this needs a certificate change and not just a DNS edit.

What the policy says

Field Meaning Advice
mode: none The policy is switched off. For withdrawing MTA-STS, not for starting.
mode: testing Senders report failures and still deliver insecurely. Start here. It protects nothing and risks nothing.
mode: enforce A sender that cannot match refuses to deliver. Only after the reports are clean.
mx Every mail server allowed to receive. Miss one and enforce stops that mail. Check against your live MX.
max_age How long senders cache the policy, in seconds. 604800 is a week. A long cache makes a mistake last.
version: STSv1
mode: testing
mx: mx1.example.com
mx: mx2.example.com
max_age: 604800

The order that avoids losing mail

  1. Publish the A record for the policy host and get a certificate that covers it.
  2. Serve the policy file and fetch it yourself over HTTPS to confirm it works.
  3. Publish TLS-RPT so you will receive the failure reports.
  4. Publish the _mta-sts TXT record last. Until the policy is fetchable, a published record is read as a failure by senders that cache MTA-STS.
  5. Leave it in testing for a week and read the reports.
  6. Move to enforce, and change the policy id in the same edit.
Note. The step people skip is the id. Senders cache by it, so an edited policy with an unchanged id is ignored until max_age expires.

Standards and references

Questions people ask

Why is my policy not being picked up?

A sender reads the TXT record at _mta-sts first and only then fetches the policy, so the record has to exist and its id has to change whenever the policy does. Senders cache by id, so an edited policy with the old id is ignored until max_age expires.

Is testing mode worth publishing?

It protects nothing by itself, but it produces the TLS reports that tell you whether enforce would break delivery. Publishing testing for a week and reading the reports is the safe order.

What breaks when I move to enforce?

Any mail to an MX host the policy does not list. That is why this check compares the mx entries with your live MX records.

Do I need a separate hostname?

Yes. The policy must be served at https://mta-sts.yourdomain/.well-known/mta-sts.txt with a certificate valid for that name. It cannot be served from the main domain.

Related tools

Where this fits

This check reads what is public. These are the engagements that go further, and what each one covers.

Mail security beyond the record? MTA-STS is one control among several. Our posture review covers authentication, transport and the gaps between them. See the posture review →