550 5.7.23SPF validation failed

The server that sent the message is not listed in your domain's SPF record, and the record ends in -all.

Updated · Fyzno

What the bounce looks like

The bounce message carries a line that starts with the code. The words after it differ per provider; the code is what to match on.

550 5.7.23 SPF validation failed

Sent by: Any receiver that checks SPF strictly

What it means

The server that sent the message is not listed in your domain's SPF record, and the record ends in -all.

It belongs with the bounces under “SPF, DKIM and DMARC failed”. The receiver could not confirm the message came from your domain. These are the most common bounces since Gmail, Yahoo and Microsoft started requiring authentication in 2024 and 2025.

How to fix it

  1. Add the sending server or service to your SPF record with include: or ip4:.
  2. Check that you have one SPF record, not two.
  3. Keep the record under 10 DNS lookups.

Check yours in twenty seconds.

Free, no account, nothing stored. It says in plain words what to fix.

Check your domain's mail setup

Related codes: SPF, DKIM and DMARC failed

All bounce codes