550 5.7.23 bounce: rejected for an SPF violation (Microsoft 365)
What to do
Stop the campaign and fix SPF, DKIM or DMARC. The address is fine; the mail is not trusted.
How the bounce reads
- Microsoft 365The message was rejected because of Sender Policy Framework violation
Message text quoted from Microsoft Learn: email non-delivery reports and SMTP errors in Exchange Online, read on 11 November 2026. Providers change their wording; the code is what stays stable.
Why it happens
- The server that sent the message is not in the sending domain's SPF record.
- The record ends in -all and a new sending tool was added without updating it.
- The message was forwarded, so it arrived from a server your SPF record does not list.
How to fix it
- Check the SPF record for the envelope sender's domain and add the missing sender.
- Make sure DKIM is signing as your domain. DKIM survives forwarding; SPF does not.
Should you resend?
After the record is corrected.
Would verifying the address have prevented it?
No.
Other codes of this kind
Decode another bounce
Paste the bounce message. It is read in your browser and not sent anywhere.
Related
- SPF checker: validate an SPF record and count its DNS lookups
Check a domain's SPF record: one record or two, how it ends, and how many of the ten DNS lookups it uses.
- 550 5.7.27 bounce: SPF did not pass (Gmail)
550 5.7.27 means Gmail checked SPF for the message and it failed: the server that sent it is not listed in the sending domain's SPF record. Gmail applies this to bulk senders, who must pass both SPF and DKIM.
- Microsoft 365 SPF record: setup steps and live check
How to add a SPF record at Microsoft 365: the exact host, value and menu path, then a free live lookup to confirm it published.
- Email bounce codes explained: SMTP errors by code and provider
What 28 SMTP bounce codes mean, what to do about each, and which ones a verified list would have prevented. Gmail, Microsoft 365, Yahoo, Mimecast and Proofpoint.