Exchange Online mail delivery (NDR)

Exchange Online NDR 550 5.7.23: rejected because of SPF violation

NDR 550 5.7.23 means the destination rejected your message because of a Sender Policy Framework (SPF) problem in your domain. The admin fixes for Microsoft 365.

By EpiFive Editorial TeamSources checked How we check our guides

What the error means

550 5.7.23 comes back when the destination email system validates inbound mail with Sender Policy Framework (SPF) and your message fails. Microsoft's NDR reference table describes the error as "The message was rejected because of Sender Policy Framework violation," with the cause that the destination system uses SPF and an issue affects your SPF configuration.

Microsoft's dedicated article says the bounce most likely indicates an SPF configuration issue in your Microsoft 365 organization, and that only an email admin there can fix it. The NDR's Diagnostic information for administrators section contains the original error that the external server returned, which helps you see exactly which SPF check failed.

Common causes

From Microsoft's article:

  • The SPF TXT record for your domain is missing, malformed or incomplete.
  • You send from domains that are not provisioned (added and verified) in Microsoft 365. Microsoft limits how much mail a tenant can send with unprovisioned domains.
  • On-premises servers or other systems send mail for your domains, but their IP addresses are not in the SPF record, including unprovisioned domains you relay through Microsoft 365.
  • Microsoft 365 classified the outbound message as spam and sent it through the High Risk Delivery Pool, whose messages do not pass SPF checks.

How to fix it

1. Users: send the NDR to your admin

Microsoft says only an email admin can fix this. Forward the complete NDR, including the diagnostic section, to your IT team.

2. Admins: check the SPF record

Look up the SPF TXT record for the sending domain. Microsoft recommends a publicly available SPF or DNS record checker. Confirm there is one SPF record, that it includes Microsoft 365, and that it lists every service that sends as the domain. A typical Microsoft 365 record looks like this; add your own sources before the -all or ~all term:

v=spf1 include:spf.protection.outlook.com -all

3. Admins: provision every domain you send from

Add and verify in Microsoft 365 each domain your users and applications send from. Microsoft says it limits the number of messages a tenant can send with unprovisioned domains.

4. Admins: add on-premises IP addresses

If on-premises servers send mail for your domains, directly or relayed through Microsoft 365, add their public IP addresses to the SPF record of every domain they send for, including unprovisioned domains.

5. Admins: check whether the message was treated as outbound spam

Microsoft says messages in the High Risk Delivery Pool will not pass SPF checks. Configure outbound spam policy notifications to receive Bcc copies of outbound messages that are determined to be spam. If a legitimate message was wrongly detected, contact Microsoft support.

If nothing works

Recheck after the DNS change has propagated, then ask the recipient's admin for the exact SPF result their server logged. For a full SPF, DKIM and DMARC setup, see the SPF, DKIM and DMARC guide; if the record has grown too long, see SPF record too long.

What we checked

Three Microsoft Learn pages were read on 2026-11-21. Microsoft's article Fix NDR error "550 5.7.23" in Exchange Online says only an admin can fix the issue and lists the SPF record check, provisioning domains, adding on-premises IP addresses and the High Risk Delivery Pool check. The Exchange Online NDR reference table gives the error text and cause. The SPF record example is taken from Microsoft's article on setting up SPF for Microsoft 365 domains. The error was not reproduced for this page.

Last checked: 2026-11-21.

Official sources

Questions people ask

What does 550 5.7.23 mean?

The receiving system checks SPF on inbound mail and your message failed. Microsoft says the bounce most likely indicates an SPF configuration issue in your Microsoft 365 organization.

Can a user fix 5.7.23?

No. Microsoft says only an email admin in your Microsoft 365 organization can fix it, so forward the NDR to your admin.

Can outbound spam filtering cause 5.7.23?

Yes. Microsoft says messages routed through the High Risk Delivery Pool will not pass SPF checks. If your message was wrongly detected as outbound spam, contact Microsoft support.

Not your code?

Search the error code library, or report a code we don't cover. Spotted something out of date on this page? Report a correction.