# 5.4.8 Bounce: MX Hosts Failed MTA-STS Validation

URL: https://email-validation.org/bounce-codes/5-4-8/
Updated: 2026-11-26

> Documentation index: https://email-validation.org/llms.txt

**Short answer:** The recipient's domain publishes an MTA-STS policy, and the mail servers in its MX records are not the ones that policy names. As 5.4.8 it is permanent: your server does not retry. Tell the recipient's admin, who must fix the policy or the MX records, unless you send through a smart host (then check that connector).

**At a glance**

- **Type:** permanent failure (class 5, RFC 3463 §2). The sending server does not retry it and reports the failure to the sender: a bounce message, or an error in the mail app.
- **Basic code:** varies; the enhanced code is the part that identifies the problem.
- **Enhanced code 5.4.8:** not in the IANA registry; the group is network and routing status (RFC 3463 §3.5).
- **Who uses it:** Microsoft (Exchange Online): the MX hosts of the recipient domain failed MTA-STS validation.

A 5.4.8 bounce from Microsoft 365 means the recipient's domain asked senders to check its mail servers, and the check failed. Microsoft would not deliver to a server the domain itself had not listed.

## What it means

This is Microsoft's own code. The IANA registry ends its X.4 list at X.4.7. Microsoft's [Exchange Online NDR reference](https://learn.microsoft.com/en-us/troubleshoot/exchange/email-delivery/ndr/non-delivery-reports-in-exchange-online) gives the text `MX hosts of <domain> failed MTA-STS validation`. The MX host was not the host the domain's policy expected.

MTA-STS lets a domain publish a policy over HTTPS. The policy names the hosts allowed to receive its mail and tells senders to insist on TLS with a valid certificate. Our [MTA-STS and TLS-RPT guide](https://email-validation.org/guides/mta-sts-tls-rpt/) explains the setup.

Microsoft's page on [MTA-STS in Exchange Online](https://learn.microsoft.com/en-us/exchange/security-and-compliance/enhance-mail-flow-using-strict-transport-security) says these checks run on every outbound message to a domain with a policy, and are always on. When the policy is in enforce mode and the check fails, the sender can get this bounce. Microsoft says it usually means the domain's policy does not contain the MX host. A certificate that fails the same policy gives [5.7.5](https://email-validation.org/bounce-codes/5-7-5/) instead.

**4.4.8** has the same text and meaning, reported as a temporary failure. The message has not been given up yet. If nothing changes on the recipient's side, later attempts fail the same way.

## Common causes

- The domain moved its mail to a new provider and changed its MX records, but not its policy.
- A new MX host was added to DNS but not to the policy.
- The policy lists an old host name, or one with a typo.
- The policy was fixed, but its id in the `_mta-sts` TXT record was not changed. Microsoft notes that senders then keep using the cached old policy until it expires.
- Your organization sends through an outbound connector to a smart host. Microsoft then checks the smart host's domain, not the recipient's.

## How to fix it

If you are the sender:
1. Note the domain named in the bounce.
2. Tell the recipient's admin by another channel and pass on the error text. Only they can fix the policy, unless the failure comes from your smart host (step 3).
3. If you send through a smart host, check that its domain is the one that failed.
4. Send again once they confirm the fix.

If you run the recipient's domain:
1. Open your policy at `https://mta-sts.<your-domain>/.well-known/mta-sts.txt`. Compare each `mx:` line with your live MX records, using the [MX lookup](https://email-validation.org/tools/mx-lookup/).
2. If a live MX host is missing from the policy and it is a host of your mail provider that you have confirmed, add it. If the live MX is unexpected, fix the MX record instead of adding it to the policy. Then change the id in the `_mta-sts` TXT record so senders fetch the new policy.
3. While you work on it, Microsoft suggests switching the policy to testing mode, and changing the id. Senders then fetch the policy but do not enforce it; those that cached the enforce policy keep enforcing it until they fetch the new one or its `max_age` ends.
4. Turn on TLS-RPT reports to see failures like this from the senders' side.

## What to do with the address

Keep it. The recipient address is not the problem. The domain's security setup blocked delivery, or, if you send through a smart host, the check of that host did. Hold further sends until the policy or your connector is fixed.

## Related codes

- [5.7.321](https://email-validation.org/bounce-codes/5-7-321/): The recipient's server failed a TLS check (Microsoft 365)
- [5.7.5](https://email-validation.org/bounce-codes/5-7-5/): A key to check or decrypt the message is missing or invalid
- [5.4.4](https://email-validation.org/bounce-codes/5-4-4/): Unable to route: usually no usable mail server in DNS

See [every bounce code](https://email-validation.org/bounce-codes/) in the dictionary.

The address on your list is not what failed here. For the bounces your list does cause, [clean the list before you send](https://email-validation.org/bulk-email-verification/).

_How we wrote this: drafted by the email-validation.org team with the help of AI writing tools, from our product documentation and the sources linked in the text._
