SMTP MTA Strict Transport Security (MTA-STS)

Security Glossary - Email Authentication

Definition: MTA-STS is a security standard that enables mail servers to declare that they support TLS for email delivery and that sending servers should refuse to deliver email if a secure connection cannot be established. It works through a DNS TXT record and a policy file hosted at https://mta-sts.yourdomain.com/.well-known/mta-sts.txt.

Why You Should Care About MTA-STS

Without MTA-STS, email delivery between servers falls back to plaintext if the TLS connection fails. This is called opportunistic TLS - servers try to use encryption but do not require it. An attacker performing a man-in-the-middle attack can strip TLS from the connection, forcing email to be sent in plaintext where it can be read.

MTA-STS closes this gap by telling sending servers that your mail server requires TLS and has a valid certificate. If a sending server cannot establish a secure TLS connection, it should not deliver the email rather than falling back to plaintext. This prevents TLS stripping attacks.

The protocol requires hosting a policy file on a web server (HTTPS is required), which adds complexity compared to DNS-only solutions. However, it provides genuine protection against email interception that STARTTLS alone cannot. Combined with TLS-RPT for reporting, MTA-STS provides visibility into TLS failures in email delivery.

Settings Overview

ComponentValue
DNS record_mta-sts.example.com TXT "v=STSv1; id=20260215"
Policy URLhttps://mta-sts.example.com/.well-known/mta-sts.txt
Mode: testingReports failures without enforcing
Mode: enforceRequires valid TLS for mail delivery
max_age604800 (1 week) to 31557600 (1 year)

How to Check

A DNS health checker verifies the _mta-sts TXT record and fetches the policy file from your web server. Verify the policy mode is set to enforce (not testing) and that the mx field lists all your mail servers.

Check DNS Health

Questions and Answers

How do I set up MTA-STS?
Create a DNS TXT record at _mta-sts.yourdomain.com with v=STSv1; id=20260215. Host a policy file at https://mta-sts.yourdomain.com/.well-known/mta-sts.txt containing your MX hostnames and policy mode. Start with mode: testing before switching to mode: enforce.
What is the difference between MTA-STS and DANE?
Both prevent TLS stripping for email, but they work differently. MTA-STS uses HTTPS to host a policy file. DANE uses DNSSEC to publish TLS certificate information in DNS. MTA-STS is easier to deploy because it does not require DNSSEC.
Disclaimer: DomainOptic provides automated informational scans only. Results do not constitute professional security advice, compliance certification, or a guarantee of security. Always verify findings independently.