Skip to main content
Enter TitanOS

Glossary

What is MTA-STS?

By Kyle Deligny, Brisbane. Last reviewed 28 November 2026. General information, not legal advice.

MTA-STS. MTA-STS (Mail Transfer Agent Strict Transport Security) is a standard that lets a domain tell other mail servers to deliver its email only over an encrypted, correctly certified connection. Without it, server-to-server email encryption is opportunistic: if a secure connection cannot be set up, the sending server usually falls back to plain text, and an attacker on the network path can force that fallback. MTA-STS closes the gap with two parts, a TXT record at _mta-sts.yourdomain and a short policy file served over HTTPS that names the mail servers allowed to receive your mail and whether to enforce the rule. It protects mail arriving at your domain from being read or altered in transit. It does not stop forged email, which is the job of SPF, DKIM and DMARC.

How it works

Email between servers is encrypted with STARTTLS only if both sides agree, and by default a failure to negotiate quietly falls back to plain text. An attacker positioned on the network path can strip the encryption offer or present a fake certificate, and the sending server will usually carry on regardless. MTA-STS, defined in RFC 8461, lets a receiving domain declare that its mail servers support TLS and that senders should refuse to deliver if a secure connection cannot be made.

It has two pieces. A TXT record at _mta-sts.yourdomain contains v=STSv1 and an id that changes whenever the policy changes. The policy itself is a text file served over HTTPS at https://mta-sts.yourdomain/.well-known/mta-sts.txt, so it needs a web host with a valid certificate. The file lists version: STSv1, a mode (none, testing or enforce), the mx hostnames that are allowed to receive your mail, and max_age, the number of seconds a sender may cache the policy.

Start in testing mode, where senders that support it deliver as normal but report problems, then move to enforce once the reports are clean. MTA-STS protects mail coming in to you. It does not stop forged mail, which is DMARC's job, and it only helps when the sender's server supports it, which the large providers do.

A policy file

For the illustrative domain example.com.au on a hosted mail service, the file lists version: STSv1, mode: testing, one mx line with the provider's mail hostname, and max_age: 86400. After a few weeks of clean TLS reports the mode changes to enforce, the max_age is raised to something longer, and the id in the TXT record is changed so senders fetch the new file.

What to do about it

  1. Confirm your mail provider supports TLS with a valid certificate on its mail servers.
  2. Host the policy file at the mta-sts subdomain over HTTPS.
  3. Publish the TXT record and start in testing mode alongside a TLS-RPT record.
  4. Move to enforce after reading the reports, and update the id each time the policy changes.

Common mistakes

  • Listing the wrong mx names, which blocks real mail once in enforce mode.
  • Forgetting to change the id after editing the policy, so senders keep the old copy.
  • Letting the policy host's certificate expire.

Related terms and tools

See where your own domain stands. Titanos runs a free external check from public records only, and nothing on your systems is touched.

Run the free domain check

Source

  1. RFC 8461, SMTP MTA Strict Transport Security

See this term in the full glossary (35 terms).

Book a free call