How to Check MTA-STS
Learn how to validate MTA-STS using both the DNS TXT record and the hosted HTTPS policy file, including common issues and troubleshooting steps.
Tools For This Topic
Understand how MTA-STS works
MTA-STS (Mail Transfer Agent Strict Transport Security) allows domains to enforce TLS encryption for inbound email delivery.
It works by combining a DNS TXT record with a policy file hosted over HTTPS.
Sending mail servers retrieve the policy via HTTPS and use it to validate TLS connections and MX hostnames.
MTA-STS is defined in RFC 8461.
Check the DNS TXT record
The MTA-STS DNS record is published at _mta-sts.example.com as a TXT record.
A typical record looks like v=STSv1; id=2024040301.
The id value is used to signal policy updates. When it changes, sending servers know to re-fetch the policy file.
You can check this record to confirm it exists and is correctly formatted.
Check the HTTPS policy file
The MTA-STS policy file must be hosted at https://mta-sts.example.com/.well-known/mta-sts.txt.
This file must be accessible over HTTPS with a valid certificate.
A typical policy file includes version, mode, mx, and max_age fields.
If the file is unreachable, invalid, or served over HTTP instead of HTTPS, MTA-STS will not function correctly.
Ensure DNS and policy are consistent
Both the DNS TXT record and the HTTPS policy file must align.
If the id value in DNS changes but the policy file is not updated, sending servers may cache outdated information.
If the MX patterns defined in the policy do not match your actual MX records, mail delivery may fail.
You should always verify MX records alongside the policy.
What to check during validation
- TXT record exists at _mta-sts.example.com
- TXT record contains v=STSv1 and a valid id value
- Policy file is reachable over HTTPS
- TLS certificate for mta-sts subdomain is valid
- Policy file contains valid syntax and required fields
- MX patterns in the policy match actual MX records
- Policy mode is set appropriately to none, testing, or enforce
Common MTA-STS problems
- Missing or incorrectly formatted TXT record
- Policy file not accessible over HTTPS
- Invalid TLS certificate on mta-sts subdomain
- MX records do not match policy definitions
- Policy file syntax errors
- DNS id updated but policy file not refreshed
- Forgetting to configure TLS-RPT for visibility
Why TLS-RPT should also be configured
TLS-RPT (SMTP TLS Reporting) provides visibility into mail delivery issues related to TLS and MTA-STS.
Without TLS-RPT, you may not be aware of failures or misconfigurations.
A TLS-RPT record is published as a TXT record at _smtp._tls.example.com.
Configuring TLS-RPT alongside MTA-STS is strongly recommended for monitoring and troubleshooting.
A practical MTA-STS troubleshooting workflow
- Check the _mta-sts TXT record for correct format and id value
- Fetch the HTTPS policy file and confirm accessibility
- Validate TLS certificate on mta-sts subdomain
- Compare MX records with policy mx entries
- Confirm policy syntax and mode
- Check for TLS-RPT configuration
- Re-test mail delivery and monitor reports
Related checks
MTA-STS is part of a broader email security setup.
You should verify SPF, DKIM, and DMARC to ensure complete email authentication. If issues persist, consider whether DNS behaviour such as propagation may also be contributing.
Use These DNS Pro Tools
If you want to validate this topic in practice, these DNS Pro tools are the fastest next step.
Related Tools
Related Articles
Common Glue Record Problems: DNS Delegation Issues Explained
A troubleshooting guide to glue record issues, including in-bailiwick nameservers, missing glue, delegation mismatches, and how to fix DNS resolution failures.
What Is MTA-STS? SMTP TLS Policy Explained
Learn what MTA-STS is, how it enforces TLS for email delivery, what the policy looks like, and how it works with DNS and HTTPS.
Common PTR Record Problems: Reverse DNS Issues Explained
A practical guide to PTR record problems, including missing reverse DNS, forward-confirmed reverse DNS, hostname issues, and how PTR impacts email deliverability.
