# MTA-STS Checker

Check a domain's MTA-STS setup, which tells sending mail servers to use TLS with a valid certificate. The tool reads the _mta-sts TXT record, fetches the policy from https://mta-sts.<domain>/.well-known/mta-sts.txt without following redirects, validates its version, mode, max_age and mx lines against RFC 8461 and checks that every MX host of the domain matches a policy pattern.

## Frequently asked questions

### What is MTA-STS?

SMTP MTA Strict Transport Security (RFC 8461) lets a domain publish that mail to it must be delivered over TLS with a valid certificate. Without it, a sending server falls back to unencrypted delivery when TLS fails, which an attacker on the path can force.

### Which parts does the tool check?

The TXT record at _mta-sts.<domain> must exist once and start with v=STSv1 with an id of 1 to 32 letters and digits. The policy file must be served with status 200 over HTTPS without a redirect, and should be text/plain. It needs version: STSv1, a mode, a max_age and, unless the mode is none, at least one mx line.

### What do the modes mean?

enforce tells senders to refuse delivery when TLS or the certificate fails. testing asks them to deliver anyway but report failures through TLS-RPT. none withdraws the policy. Start with testing, watch the reports, then switch to enforce.

### Why must every MX host match the policy?

In enforce mode a sender only delivers to MX hosts whose name matches an mx line of the policy, such as mx1.example.com or *.example.com, where the wildcard covers exactly one label. An MX host that matches no pattern will not receive mail from senders that enforce the policy.

### What max_age should I use?

max_age is how long in seconds senders cache the policy, up to 31557600 (one year). Short values such as a day are fine while testing. For enforce, values of one or several weeks are common, so a temporary outage of the policy host does not weaken protection.

### I changed the policy. Why do senders still use the old one?

Senders only fetch the policy again when the id in the TXT record changes or their cached copy expires. Change the id, for example to a new date and time stamp, every time you change the policy file.

Your ad here?

[Email us](mailto:hi@dennn.is?subject=Advertising%20on%20OneClick%20Pro)

[Ad 433 tools for your AI agents through one MCP server.](https://multitaskai.com/?ref=oneclickpro)
