Skip to content

SPF

SPF is an email authentication standard that lets a domain publish in DNS which servers are authorized to send email on its behalf.

Definition

What it is

SPF (Sender Policy Framework) is an email authentication standard defined in RFC 7208. It lets a domain holder publish in DNS a list of servers and IPs authorized to send email on its behalf [1]. The receiver queries that list and compares the sending server’s IP. If the IP is not authorized, the message may be marked as spam or rejected.

Why it matters

SPF protects the envelope sender (MAIL FROM), not the visible From header. That distinction explains why SPF alone does not stop all spoofing attacks [2]. Still, it is the foundation on which DKIM and DMARC are built: without SPF, DMARC alignment has nothing to evaluate.

How it works in practice

The typical record starts with v=spf1 and chains mechanisms such as ip4, ip6, a, mx, include, and exists, closing with all, ~all, or -all. Evaluation is capped at 10 DNS lookups and 2 void lookups; exceeding either limit produces a PermError that invalidates authentication [2]. Domains with many senders often need flattening to stay within the limit.

Connections

Common mistakes

  • Chaining too many include mechanisms. Each include consumes a DNS lookup; exceeding 10 produces PermError and invalidates all messages from the domain.
  • Using +all. It authorizes any server to send on the domain’s behalf, nullifying protection.
  • Relying on SPF alone. SPF does not protect the From header and does not survive forwarding; DKIM and DMARC are needed.
  • Ignoring forwarding. A mailing list or forwarder changes the originating IP, so SPF fails even for legitimate messages.

Evidence

Etymology

Origin: acronym

Sender Policy Framework — sender policy framework

  • Sender (root): sender
  • Policy (root): policy
  • Framework (root): framework
Cognates
  • es: remitente, política
  • en: sender, policy

Morphology

Variants

Typographical errors

  • SFP
  • spf

Semantic network

SPFemail-authspf-recordDKIMDMARCTXT RecordMX RecordEmail spoo

● broader ● narrower ● related

Broader

  • email-authentication

Narrower

  • spf-record

Related

Antonyms

  • unauthenticated-email

Used in the garden

Sources