clement

550 5.7.23: SPF validation failed

The receiving server checked your domain's SPF record and the server that sent your message isn't on it.

Bounce type
Hard bounce (permanent)
What to do
Fix your setup, keep the contact
Returned by
Microsoft (Outlook.com, Microsoft 365); Any mail server

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.

Microsoft
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

  1. Run the sending domain through the SPF/DKIM/DMARC checker to see the current record and which services it covers.
  2. 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.
  3. Paste the headers of a test message into the email header analyzer to confirm spf=pass for the Return-Path domain.
  4. 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.
  5. 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.

FAQ

Is 550 5.7.23 a hard bounce or a soft bounce?

550 5.7.23 is a permanent failure (a hard bounce): the receiving server won't accept this message if you send it again unchanged. But the cause is not the recipient's address, so treat it differently from a 'user unknown' bounce.

Should I remove the contact after a 550 5.7.23 bounce?

No. 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.

What does 5.7.23 mean in the error code?

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".

Related SMTP codes

See all SMTP error codes

Sources

Try Clement free for 14 days

Clement reads the bounces that land in your Gmail and SMTP inboxes and tells dead addresses apart from policy blocks: it suppresses the first across every campaign and keeps the contact on the second, so you don't have to decode bounces by hand.

Start free trial