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 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 explains the setup.
Microsoft's page on MTA-STS in Exchange Online 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 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-stsTXT 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:
- Note the domain named in the bounce.
- 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).
- If you send through a smart host, check that its domain is the one that failed.
- Send again once they confirm the fix.
If you run the recipient's domain:
- Open your policy at
https://mta-sts.<your-domain>/.well-known/mta-sts.txt. Compare eachmx:line with your live MX records, using the MX lookup. - 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-stsTXT record so senders fetch the new policy. - 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_ageends. - 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.
The address on your list is not what failed here. For the bounces your list does cause, clean the list before you send.