What this code means
The receiving system permanently rejected the message because its SPF check produced a fail result contrary to local policy. Do not retry the same unchanged attempt.
Technical meaning
The standard X.7.23 pattern means that a message completed an SPF check that produced a fail result contrary to local policy requirements. Under Section 8.4 of RFC 7208, this code is used instead of 5.7.1. Code 5.7.23 applies this detail in the permanent-failure class.
Delivery status
The leading digit 5 denotes a permanent failure of the current attempt. The code confirms the SPF fail result and conflict with local policy, but it does not by itself identify the cause of that result, the layer responsible, or any particular provider's policy.
- Class
- Permanent failure
- Retry
- Do not retry unchanged
- Suppression
- Check the full context
Retry decision
Operational guidance: stop automatic and manual retries of the same unchanged attempt. Consider a new, controlled attempt only after a confirmed correction or confirmed change in policy conditions and verification that SPF no longer produces a fail result; check suppression again first.
Suppression decision
Operational guidance: do not automatically suppress the recipient address or domain based on 5.7.23 alone. Inspect the complete response, SPF result, event scope, configuration of the systems involved, and delivery history, then make the suppression decision according to the confirmed cause and applicable policy.
Common causes
- The message's SPF check produced a fail result that was contrary to the receiving system's local policy requirements.
Diagnostic steps
- Inspect the raw SMTP response or nondelivery report and confirm the exact 5.7.23 code and a basic reply in the 5xx class; retain the complete response text.
- Correlate the response with the intended message, attempt time and stage, evaluated sender identity, and system that returned the code.
- Use available authentication results, logs, and configuration to confirm the SPF fail result and establish its actual cause; do not assign responsibility or provider practice from the code alone.
- Stop unchanged retries. After a confirmed correction or change in conditions, verify that SPF no longer produces a fail result, check suppression again, and make one controlled attempt.
Actions by owner
Sender
- Confirm that the message and sender identity used are intended, then give the sender administrator the complete response and attempt time without repeatedly retrying it manually.
Sender administrator
- Retain the complete response, correlate it with the message, sender identity, and sending system, and inspect available SPF results, logs, and configuration to establish the confirmed cause of the fail result.
- After correction, confirm that SPF no longer produces a fail result, check suppression again, and make one controlled attempt instead of retrying the unchanged message.
Recipient administrator
- If you manage the system that returned the code, inspect its SPF-evaluation logs and local policy for the specified attempt; correct a confirmed receiving-side problem or safely give the sender the result needed for remediation.
Provider
- If you operate a managed sending, SPF-configuration, or SPF-evaluation layer, inspect its logs and configuration for the attempt, correct a confirmed problem in that layer, and do not trigger suppression from the code alone.
Verified provider examples
A verified provider example for 5.7.23 appears below, from Rackspace Email. It shows real provider practice for this response and does not redefine the standard 5.7.23 meaning or cover every occurrence.
Exact SMTP response
550 5.7.23 The message was rejected because of Sender Policy Framework violationSources and verification
The canonical Tier-0 meaning of X.7.23, its use instead of 5.7.1 under Section 8.4 of RFC 7208, and its class-5 application were verified against the IANA registry and RFC 2034, RFC 5248, RFC 7208, and RFC 7372 as of July 17, 2026. Diagnostic, remediation, retry, and suppression recommendations are separate operational guidance; this record contains no provider-specific practice.
- iana-smtp-enhanced-status-codesT0 source
Enumerated Status Codes / X.7.23
- rfc5248T0 source
Section 2.1: registry fields and non-exclusive Associated Basic Status Code
- rfc2034T0 source
Section 4: enhanced status class agrees with SMTP reply class
- rfc7372T0 source
IANA registry reference for X.7.23
- rfc7208T0 source
IANA registry reference for X.7.23
- ext-src-rackspace-5-7-23-01T1 source
docs.rackspace.com/docs/common-email-bounces > 'SMTP error' table, row SPF-violation
Last verified:

