550 5.7.23: Rejected because of Sender Policy Framework violation
550 5.7.23, “The message was rejected because of Sender Policy Framework violation,” means the receiving server checked your domain’s SPF record, didn’t find the server your email left from, and refused the email. In the standard’s words, the SPF check produced a “fail.” The person’s address is fine. The fix is your domain’s SPF record, which has to list every server that sends email for it.
Microsoft 365 and any server that checks SPF
550 5.7.23 The message was rejected because of Sender Policy Framework violation
- 550 5.7.23 <emily.carter@example.com>: Recipient address rejected: Message rejected due to: SPF fail - not authorized
- 550 5.7.1 SPF check failed
Why it happens in a mail merge
SPF is a TXT record in your domain’s DNS that lists the servers allowed to send its email. The receiving server takes the domain of the sender address used in transmission, Microsoft explains, and checks the server the email came from against that record. A record ending in -all, a hard fail, says email from anywhere else should be refused, and a server that enforces SPF refuses it.
A mail merge meets it when it goes out through a server the record doesn’t name: a new mail provider or web host, or an email service added for sending. A broken record fails too: Microsoft says a domain may have only one SPF record, and that more than 10 DNS lookups in it fail the check. For Microsoft 365 senders, Microsoft adds one more cause: email it judged to be spam leaves through its high-risk delivery pool, which won’t pass SPF. Gmail refuses email that fails SPF and DKIM in its own words, as Gmail’s unauthenticated sender error.
How to fix it
- Find your SPF record
Look up your domain’s TXT records where its DNS is managed, at your registrar or DNS host. The SPF record starts with v=spf1, and there must be only one: Microsoft says two make the check fail.
- Add every service that sends for it
Each one says what to add, usually an include: value; Microsoft 365’s is include:spf.protection.outlook.com. A server of your own goes in as ip4: with its address. Keep -all at the end, as Microsoft recommends.
- Stay under 10 DNS lookups
Each include: costs at least one lookup, and the record it points to can cost more. Past 10, Microsoft says, the check fails with a permanent error, whatever the record lists.
- Microsoft 365: ask your email admin
Microsoft says only an email admin in your organization can fix 5.7.23. Besides the record, the admin checks whether your email went out through the high-risk delivery pool for looking like spam.
What DearByDear does
A Gmail, Outlook.com, Yahoo or iCloud address in DearByDear sends through its own provider’s server and needs nothing set up. A mailbox on your own domain, added with its mail server, sends with your address as the sender SPF checks, so your domain’s record is the one that counts. Is the domain ready to send?, among the account’s Actions in the Accounts window, looks it up: whether the domain has an SPF record, and, when your mailbox is at Microsoft 365, Google Workspace or Zoho, whether the record names it, with the line to add if not. Check and send warns from the last check. It reads the record, not each email: it doesn’t count lookups or know your other senders.
With DearByDear Pro and your own email service, DearByDear lists the DNS records your domain still lacks for most services. When a 5.7.23 bounce comes back, DearByDear reads it from your mailbox (with Pro, from the service’s reports) while it, or Claude Desktop with its extension, is running, and counts it against the sending domain’s authentication, not the person: they’re marked as not delivered, with SPF, DKIM and DMARC named as what to check, and their address stays on your mailing list and off the Do-Not-Disturb list. The other two wordings are read the same way. If three of a merge’s emails are refused on the sending side while it’s still sending, DearByDear pauses it and points you to the domain check. Once the record is fixed, resume the merge and send the failed ones again from the send log.
Questions about 550 5.7.23
What does “rejected because of Sender Policy Framework violation” mean?
That your domain’s SPF record doesn’t list the server your email was sent from, and the receiving server refuses email that fails SPF. Add that server, or the service it belongs to, to the record.
What does “SPF fail - not authorized” mean?
The same failure in another server’s words: it checked the SPF record of the domain your email came from, and the server that sent it wasn’t authorized there. “550 5.7.1 SPF check failed” is a third wording of it.
Is 550 5.7.23 the same as 550 5.7.233?
No. 5.7.23 is an SPF failure at the receiving end. Microsoft 365’s 550 5.7.233, the tenant external recipient limit, means your organization reached its daily limit of external recipients: a sending limit, with a fix of its own.
How do I check my SPF record?
Look up your domain’s TXT records: the one that starts with v=spf1 is it. Microsoft suggests a public SPF or DNS record checker on the web, and some of them count the DNS lookups the record takes.
Sources
Each provider’s own pages, read on November 5, 2026. The error texts and the fixes are the providers’ own: if they change their wording, theirs is right.
- Microsoft: fix NDR error 550 5.7.23 in Exchange Online · updated August 11, 2026
- Microsoft: set up SPF to identify valid email sources for your Microsoft 365 domain · updated July 3, 2026
- IANA: SMTP enhanced status codes