What 550 5.7.23 means
5.7.23 is registered with IANA as 'SPF validation failed'. The receiving server looked up the SPF record of the domain in your envelope sender (Return-Path), compared it with the IP address that delivered the message, and found no match. Microsoft's text is 'The message was rejected because of Sender Policy Framework violation'.
For cold email this almost always means a sending service was added without updating SPF: a new SMTP provider, a new Microsoft 365 tenant, or a sending tool that uses its own servers. It can also happen when Microsoft 365 routes your outbound mail through its High Risk Delivery Pool after flagging it as spam, because mail from that pool doesn't pass SPF.
What the bounce looks like
The wording providers document for this code. Your bounce may add an IP address, a session ID or a help link after it.
550 5.7.23 The message was rejected because of Sender Policy Framework violation Why cold emailers see 550 5.7.23
- The SPF record doesn't include your current sending service (for Microsoft 365, include:spf.protection.outlook.com; for Google Workspace, include:_spf.google.com).
- You send from a domain or subdomain that has no SPF record of its own.
- The SPF record ends in -all and a forgotten source (a CRM, a helpdesk, an on-premises server) still sends as your domain.
- Microsoft 365 flagged your outbound mail as spam and sent it through the High Risk Delivery Pool, which doesn't pass SPF.
- Your domain isn't added and verified in your Microsoft 365 tenant, so Microsoft limits and filters mail from it.
How to fix 550 5.7.23
- Run the sending domain through the SPF/DKIM/DMARC checker to see the current record and which services it covers.
- Add the missing include for the service that sent this message, and keep the record to one v=spf1 TXT record under 10 DNS lookups.
- Paste the headers of a test message into the email header analyzer to confirm spf=pass for the Return-Path domain.
- If you send through Microsoft 365, add and verify every domain you send from in the tenant, and add any on-premises IPs you relay from to the SPF record.
- If SPF looks right, ask your admin to check whether outbound mail was flagged as spam and routed through the High Risk Delivery Pool, and fix the volume or content that caused it.
Retry or suppress?
Don't suppress the contact. The address is fine; your domain's authentication isn't. Fix the SPF record, send yourself a test, then resend.
Reading the code
The basic code 550
means "Mailbox unavailable or message refused (permanent)" under RFC 5321. In 5.7.23, the 5 is the class (permanent failure) and the 7 is the subject (security or policy). The detail number 23 is registered in RFC 3463 / the IANA registry as "SPF validation failed".
- Class 5
- Permanent failure
- Resending the same message won't work. Something about the message, the recipient or the sender has to change first.
- Subject 7
- Security or policy
- A security or policy decision: spam filtering, authentication, blocklists, permissions.
- Detail 5.7.23
- SPF validation failed
Check the rest of your setup
Run your sending domain through the SPF, DKIM & DMARC checker to see which record fails, then follow how to set up SPF, DKIM and DMARC. Paste the headers of a test message into the email header analyzer to confirm all three pass.
Got a different bounce? Paste it into the SMTP error code lookup to decode it.