Valid HTTPS
The certificate must be valid for mta-sts.yourdomain, unexpired and chain to a trusted root.
Monitor
Protect
Manage
By role
Security
Renewals
Monitoring
MTA-STS (RFC 8461) lets a domain tell sending mail servers to deliver only over TLS to the MX hosts it names, with a valid certificate. TLS-RPT (RFC 8460) adds daily JSON reports on TLS failures. Together they need two DNS TXT records and one HTTPS policy file.
Each MX host needs STARTTLS and a certificate that is valid, not expired, trusted and matching its name. Use the MX lookup to list the hosts.
TXT at _smtp._tls.yourdomain so you receive reports from the start.
HTTPS at mta-sts.yourdomain/.well-known/mta-sts.txt with a valid certificate. No redirects.
v=STSv1; id=something unique. Change id whenever the policy changes.
Delivery continues on failures, and you see them in reports.
After clean reports, set mode: enforce and update the id.
_mta-sts.example.com. IN TXT "v=STSv1; id=20261121T000000"
_smtp._tls.example.com. IN TXT "v=TLSRPTv1; rua=mailto:tlsrpt@example.com"
version: STSv1
mode: testing
mx: mail.example.com
max_age: 86400| Mode | Sending server behavior | When to use |
|---|---|---|
| testing | Delivers anyway; implementations with TLS-RPT should report failures | First weeks |
| enforce | Must not deliver to MX hosts that fail MX matching, certificate or STARTTLS checks | After clean reports |
| none | Policy treated as removed | Opting out |
max_age is in seconds, maximum 31557600. RFC 8461 expects values of weeks or longer for real deployments.
In enforce mode an expired MX or policy-host certificate can make senders refuse to deliver. SSL monitoring catches expiry on the mta-sts host before senders do.
The certificate must be valid for mta-sts.yourdomain, unexpired and chain to a trusted root.
Senders accept only 200 responses, follow no redirects and do not use HTTP caching.
Each mx line is a hostname or a wildcard covering only the leftmost label.
| Item | MTA-STS | DANE |
|---|---|---|
| Trust anchor | Web PKI certificate authorities | DNSSEC and TLSA records |
| Needs DNSSEC | No | Yes |
| Publication | DNS TXT plus HTTPS policy file | TLSA records in DNS |
| Both together | RFC 8461 says MTA-STS must not override a failing DANE validation | Not applicable |
SMTP MTA Strict Transport Security, defined in RFC 8461. A domain publishes a policy naming its MX hosts and requiring TLS with valid certificates, so sending servers cannot be tricked into plain-text delivery.
SMTP TLS Reporting, RFC 8460. A TXT record at _smtp._tls.yourdomain asks senders to deliver daily JSON reports of TLS successes and failures, including result types such as certificate-expired and starttls-not-supported.
They address different things. DMARC authenticates who sent a message. MTA-STS protects the connection used to deliver mail to you. Neither replaces the other.
Edit the policy file and change the id in the _mta-sts TXT record. Senders cache the policy for max_age seconds and only refetch when the id changes.
Aepto monitors expiry, DNS, SSL and uptime for every domain you own and alerts you when something changes. Free for 3 domains.