1. Home
  2. SMTP codes
  3. 550 5.7.23
Permanent failure — do not retry

SMTP 550 5.7.23

SPF violation (Microsoft 365)

SMTP 550 5.7.23 is Microsoft 365 rejecting a message because of an SPF failure. The text reads "The message was rejected because of Sender Policy Framework violation." The recipient's tenant enforces SPF, and the IP that sent your mail is not authorised by your domain's SPF record.

How it appears

550 5.7.23 The message was rejected because of Sender Policy Framework violation

What causes it

  • A sending service is missing from your SPF record.
  • The SPF record ends in -all and mail went out from an IP it does not list.
  • The message was forwarded by a server that is not in your SPF record.
  • The SPF record has a syntax error or too many DNS lookups.

How to fix it

In order — try the first one first.

  1. Add every service that sends as your domain to the SPF record.
  2. Check the record for syntax errors and keep it under 10 lookups.
  3. Set up DKIM so DMARC can pass even when forwarding breaks SPF.

Common questions

What does SMTP 550 5.7.23 mean?
SMTP 550 5.7.23 is Microsoft 365 rejecting a message because of an SPF failure. The text reads "The message was rejected because of Sender Policy Framework violation." The recipient's tenant enforces SPF, and the IP that sent your mail is not authorised by your domain's SPF record.
Should I retry a 550 5.7.23 error?
No. 550 is a permanent failure, so the message will never be delivered no matter how many times you try. Remove the address — repeated sends to permanent failures are one of the main signals mailbox providers use to throttle a sender.
How do I fix SMTP 550 5.7.23?
Add every service that sends as your domain to the SPF record.

Other 550 replies

Last reviewed 2026-09-11

Ready to clean your email and phone lists?

Start verifying emails and phone numbers today and boost your deliverability.

Get Started

Cancel anytime • No setup required