1. Home
  2. SMTP codes
  3. Enhanced status codes
  4. 5.7.23

X.7.23 · Security or policy

SMTP enhanced status code 5.7.23

SPF validation failed

X.7.23 means the message failed an SPF check, and the receiver's policy rejects SPF failures. It names SPF specifically where older servers used 5.7.1.

Registry codeX.7.23
Forms in use5.7.23
Registry nameSPF validation failed
Subject7: Security or policy
Permanent or temporary5.x.x permanent failure: resending unchanged will not succeed
Associated basic codes550
Defined in[RFC 7372]; [RFC 7208]

What the registry says

This status code is returned when a message completed an SPF check that produced a "fail" result, contrary to local policy requirements. Used in place of 5.7.1 as described in [Section 8.4 of RFC 7208].

IANA SMTP Enhanced Status Codes registry, X.7.23

The basic codes it travels with

  • 550 Requested action not taken: mailbox unavailable (e.g., mailbox not found, no access, or command rejected for policy reasons)

In practice

X.7.23 names an SPF fail directly. Microsoft uses 5.7.23 when the destination uses SPF and your configuration fails, and Gmail uses 451 4.7.23 for a missing PTR record. For SPF, check that every service sending as your domain is included, and that the record stays within the 10-lookup limit.

What the sender should do

Add the sending service's IPs or include mechanism to your SPF record, and make sure the record has no syntax errors.

Would verifying the list have prevented 5.7.23?

No

This reply is about your sending setup, the message or the receiving system, not about whether the address exists, so verifying the list will not prevent it.

How providers use X.7.23

Quoted from each provider’s own error reference.

  • Gmail 451 4.7.23

    ip-address The sending IP address for this message doesn't have a PTR record, or the PTR record's forward DNS entry doesn't match the sending IP address. To protect users from spam, your email has been temporarily rate limited. To learn more about IP address requirements for sending to Gmail, visit the IP addresses section of our sender guidelines. To learn more about Gmail requirements for bulk email senders, visit Email sender guidelines.

  • Microsoft 365 5.7.23

    The message was rejected because of Sender Policy Framework violation

Common questions

What does 5.7.23 mean?
X.7.23 means the message failed an SPF check, and the receiver's policy rejects SPF failures. It names SPF specifically where older servers used 5.7.1.
What should I do about 5.7.23?
Add the sending service's IPs or include mechanism to your SPF record, and make sure the record has no syntax errors.
Would an email verifier have caught 5.7.23?
No. This reply is about your sending setup, the message or the receiving system, not about whether the address exists, so verifying the list will not prevent it.

Full guides for this code

Sources

Registry and provider wording is quoted exactly; guidance is written by the SimpleVerifier Team.

SimpleVerifier Team · Last checked against the sources 2026-11-05

Clean your next list before it bounces

100 free email checks when you sign in with Google, no card. Then monthly plans from $9, or one flat price with fair use, never cut off.

100 free checks, no card Cancel anytime Secure payment by Stripe