MTA-STS Email / SMTP Origin: Network OSI layer 6 · Presentation Last updated 18 Nov 2026

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).

Exact message you may see MTA-STS policy fetch failedMTA-STS policy not foundSTSv1 mta-sts.txtTLS-RPT report MTA-STS validation failurecertificate-host-mismatch MTA-STS
Seen on: SMTP DNS Email

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

  1. Serve the policy over HTTPS with a valid certificate
  2. Match mx: lines to the MX records
  3. Start in testing mode and use TLS-RPT

Detailed fix by platform

Text

  1. bash
    version: STSv1
    mode: testing
    mx: mail.example.com
    max_age: 86400

How to diagnose

  1. Policy URL — Reachable?
  2. MX list — Matches?
  3. 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:

Where this error sits

Origin: Network. Errors that are often confused with or caused by this one (click to open):

5.4.310 — Exchange Online: 550 5.4.310 DNS domain does not exist (DNS domain name could not be resolved) (Email / SMTP)5.4.310530 — 530 5.7.0 Must issue a STARTTLS command first (TLS required before AUTH or sending) (Email / SMTP)530530 5.7.0 Authentication Required — SMTP: 530 5.7.0 Must issue a STARTTLS command first / 530 5.7.1 Authentication required (Email / SMTP)530 5.7.0 Authenticat…550 5.1.8 — 550 5.1.8 Sender address rejected: Domain not found (sender domain has no DNS A/MX) (Email / SMTP)550 5.1.8bad record mac — SSL error: bad record mac (decryption failed or corrupted TLS record) (SSL / TLS)bad record maccert mismatch — SMTP TLS certificate verification failed: hostname mismatch / unable to get local issuer (mail client or library) (Email / SMTP)cert mismatchcurl 56 — curl: (56) OpenSSL SSL_read: Connection reset by peer, errno 104 (TLS connection dropped mid-transfer) (SSL / TLS)curl 56HELO — 504 5.5.2 Helo command rejected: need fully-qualified hostname (invalid EHLO name) (Email / SMTP)HELOMTA-STS

Explore the map of this error Full error map →

🧠 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.