dotvitals

Loading the list of pages…

↑↓ to moveEnter to openEsc to close

Failed MTA-STS validation: Microsoft 365's 4.4.8 and 4.7.5 bounces

Updated · 3 min read

Microsoft 365:5.4.84.4.85.7.54.7.5

In short

  • The recipient's domain publishes an MTA-STS policy, and the mail server Microsoft 365 tried to deliver to did not match it, so Microsoft would not deliver.
  • Usually an MX host missing from the policy after a mail migration, or a mail server certificate that is not valid for the MX host's name.
  • The recipient domain fixes its policy or certificate and changes the policy id. Setting the policy to mode: testing stops the bounces while it does.

Check the recipient domain now

Type the domain named in the bounce, after MX hosts of.

On this page
  1. The bounce, as Microsoft documents it
  2. Most likely causes
  3. Why only some senders bounce
  4. How to fix it
  5. How to confirm the fix worked

The bounce, as Microsoft documents it

5.4.8The mail server is not in the policy

MX hosts of 'domain' failed MTA-STS validation

5.7.5The mail server's certificate failed the check

Remote certificate failed MTA-STS validation. Reason: validityStatus

4.4.8The same, while Microsoft is still retrying (4.7.5 for the certificate)

MX hosts of <domain> failed MTA-STS validation

Read on . Providers reword these messages without notice, so treat the text as a dated snapshot and check the source before acting on anything consequential.

Microsoft 365 would not hand the message to the recipient's mail server, because the recipient's domain publishes an MTA-STS policy and that server did not satisfy it. MTA-STS is a promise a domain makes about its own mail: deliver it only over an encrypted connection, to these servers, with a valid certificate. Microsoft checks that promise on everything it sends, and when it does not hold, it does not deliver.

So the fault is on the receiving side. The domain named in the bounce has to fix its policy, its MX records or a mail server certificate. If that domain is yours, this page is for you; if it belongs to a customer or a supplier, they are the ones who can fix it.

The 4.x.x codes are deferrals while Microsoft keeps retrying; the 5.x.x codes are the final non-delivery report.

Most likely causes

  1. The MX records changed and the policy did not. After a move to a new mail provider, the policy file still lists the old mail servers.
  2. The policy's mx lines do not match the MX hostnames. A pattern such as *.mail.example.com matches one label only, so a typo or a missing level means no match.
  3. A mail server's certificate fails the check. Microsoft requires it to chain to a trusted root and to name the MX host in its Common Name or Subject Alternative Name; a self-signed, expired or wrongly named certificate fails.
  4. Senders still hold the old policy. Microsoft notes that after any policy change the id in the TXT record must change too, or senders keep using the cached policy until its max_age runs out.
  5. An outbound connector uses a smart host. For those connectors, Microsoft validates MTA-STS against the smart host's domain, not the recipient's.

Why only some senders bounce

MTA-STS binds only the senders that implement it. Microsoft's page says a sender that does not support MTA-STS still delivers, without the extra protection, and that messages go undelivered only when both sides use MTA-STS and validation fails. A domain can therefore receive mail normally from some senders while Microsoft 365's bounces.

That is also why the problem can go unnoticed for weeks: nothing breaks for the senders that never read the policy.

How to fix it

Open the policy at https://mta-sts.example.com/.well-known/mta-sts.txt, with your domain in place of example.com, and compare its mx lines with the domain's MX records. Every MX host must match one line.

Fix each mail server certificate so that it is valid, chains to a trusted root and names the MX hostname.

After changing the policy file, change the id in the _mta-sts TXT record, so senders fetch the new version.

To stop the bounces at once while you fix it, switch the policy to mode: testing and change the id. Microsoft documents this: senders still fetch the policy and send TLS reports, but stop enforcing it.

Publish a TLS-RPT record if you have none, so failures reach you as reports rather than as bounces at other people's senders.

How to confirm the fix worked

Run the MTA-STS check: the policy should load over HTTPS, cover every MX host, and show the mode you intend.

Check the certificates of the domain's mail servers with the SMTP TLS checker.

Once TLS-RPT reports show successful sessions, return the policy to mode: enforce and change the id again.

Check your domain with the MTA-STS checker

Read next