MTA-STS policy fetch failed / no valid TLS (mta-sts.txt not reachable or certificate invalid)
Senders can't retrieve or trust your MTA-STS policy, so TLS enforcement isn't applied (or mail is deferred in enforce mode).
MTA-STS policy fetch failedMTA-STS policy not foundSTSv1 mta-sts.txtTLS-RPT report MTA-STS validation failurecertificate-host-mismatch MTA-STS Meaning
Publish _mta-sts.example.com TXT "v=STSv1; id=..." and serve https://mta-sts.example.com/.well-known/mta-sts.txt with a valid certificate, correct mx: entries matching your MX hosts, mode (testing/enforce) and max_age. Add _smtp._tls TLS-RPT for reports. In enforce mode, an invalid MX certificate causes deferrals.
Common causes
- Policy file not reachable or wrong host
- Invalid/expired certificate on mta-sts host
mx:entries don't match real MX hosts- id not updated after changes
- MX certificates invalid in enforce mode
⚡ Quick fix
- Serve the policy over HTTPS with a valid certificate
- Match
mx:lines to the MX records - Start in
testingmode and use TLS-RPT
Detailed fix by platform
Text
- bash
version: STSv1 mode: testing mx: mail.example.com max_age: 86400
How to diagnose
- Policy URL — Reachable?
- MX list — Matches?
- Mode — Testing first?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- 5.4.310 Exchange Online: 550 5.4.310 DNS domain does not exist (DNS domain name could not be resolved)
- 530 530 5.7.0 Must issue a STARTTLS command first (TLS required before AUTH or sending)
- 530 5.7.0 Authentication Required SMTP: 530 5.7.0 Must issue a STARTTLS command first / 530 5.7.1 Authentication required
Most viewed in Email / SMTP
- 550 5.7.1 550 5.7.1 Relaying denied / Message rejected as spam / Unauthenticated email not accepted
- Laravel: Connection could not be established with host Laravel: Symfony\Component\Mailer\Exception\TransportException: Connection could not be established with host "smtp.mailtrap.io:2525": stream_socket_client(): Unable to connect
- 550 5.1.1 550 5.1.1 The email account that you tried to reach does not exist (User unknown)
Other ways to find it
Where this error sits
Origin: Network. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 18 Nov 2026