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
- Confirm your mail provider supports TLS with a valid certificate on its mail servers.
- Host the policy file at the mta-sts subdomain over HTTPS.
- Publish the TXT record and start in testing mode alongside a TLS-RPT record.
- 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
Related terms
- TLS-RPTTLS-RPT (SMTP TLS Reporting) is a DNS record that asks other mail servers to send your domain a daily summary of any trouble they had delivering email to you securely.
- DMARCDMARC (Domain-based Message Authentication, Reporting and Conformance) is a DNS record that tells receiving mail servers what to do with email that claims to come from your domain but fails authentication.
- SPFSPF (Sender Policy Framework) is a DNS record that lists the servers allowed to send email for your domain.
- External attack surfaceAn external attack surface is everything about your business that a stranger can see and test from the internet: your domain names, DNS records, mail authentication settings, web servers, login pages, exposed services and the certificates that protect them.
Tools, guides and articles
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 checkThis page is general information for Australian small businesses, not legal, tax or financial advice. Check the linked primary source and ask a qualified adviser about your own situation.
Source
See this term in the full glossary (35 terms).
