Sovra Recon·Glossary · SPF

SPF: Definition, Syntax, and Common Errors

By Solan Barlet, co-founder of Sovra Recon
Updated October 29, 2026

In short

SPF (Sender Policy Framework) is a TXT-type DNS record that lists the servers authorized to send emails on behalf of a domain. The server receiving a message verifies that the sender’s IP address is included in this list. A domain must have only one SPF record, limited to 10 DNS lookups, and ending with -all (reject) or ~all (soft fail). SPF alone is not enough: it must be supplemented by DKIM and DMARC.

The syntax

Example: v=spf1 include:_spf.google.com include:servers.mcsv.net ip4:203.0.113.10 -all

  • v=spf1: version, required at the beginning.
  • include: authorizes servers from a third-party service (messaging, email marketing).
  • ip4 / ip6: authorizes a specific address or range.
  • a / mx: authorizes the servers designated by the domain’s A or MX records.
  • -all: everything else fails; ~all: soft failure;?all: neutral (to be avoided).

Common errors

  • Two SPF records on the same domain.
  • More than 10 DNS lookups (each `include` counts as at least one).
  • A forgotten email service, whose messages fail to deliver.
  • +all, which allows anyone in the world to send on your behalf.

Frequently asked questions

-all or ~all?

-all is stricter. With DMARC in place, ~all is common because DMARC determines the message’s fate; without DMARC, use -all once all sources have been listed.

Sources

Find out where an attacker would get in.

Our AI agents actually attack your scope, fully automated, and hand you the proof of every vulnerability.