Foxcolab

Glossary

SPF (Sender Policy Framework)

Definition

SPF (Sender Policy Framework): An email authentication standard (RFC 7208) in which a domain publishes a DNS TXT record listing the servers allowed to send mail for it, so receiving servers can check each message's sending server against that list.

Also known asSender Policy FrameworkSPF record

In short

SPF (Sender Policy Framework, RFC 7208) is an email authentication standard. A domain publishes a DNS TXT record listing the servers allowed to send mail for it, and receiving servers check each incoming message's sending server against that list. SPF checks the hidden envelope sender, not the visible From address, so it works best combined with DKIM and DMARC.

Key takeaways

  • SPF is a single TXT record at the root of your domain that starts with v=spf1.
  • It checks the envelope sender (Return-Path), not the From address people see.
  • A domain may have only one SPF record, and evaluating it may take at most 10 DNS lookups.
  • Forwarded mail usually fails SPF, which is why DMARC also accepts DKIM.

Last reviewed 30 November 2026 by Foxcolab Team

SPF, the Sender Policy Framework, is an email authentication standard defined in RFC 7208. A domain owner publishes a DNS TXT record listing the servers allowed to send email for the domain. When a message arrives, the receiving server compares the sending server's IP address with that list and records whether the check passed.

How an SPF record looks#

Text
v=spf1 include:_spf.mail-provider.example ip4:192.0.2.10 ~all

The record starts with v=spf1, lists who may send (include: another domain's list, ip4:/ip6: addresses, a, mx), and ends with an all rule for everyone else: -all (fail), ~all (softfail) or ?all (neutral). Never use +all, which lets anyone pass.

What SPF checks, and what it doesn't#

SPF checks the envelope sender, the address servers use for bounces (RFC 5321), also called the Return-Path. It doesn't look at the From address your recipients see. On its own, SPF doesn't stop a spoofer who uses your domain in the visible From line. DMARC closes that gap by requiring the checked domain to match the From domain.

SPF also breaks when mail is forwarded, because the forwarding server isn't on your list. DKIM signatures usually survive forwarding, so DMARC accepts either one.

Rules that catch people out#

  • One record per domain. Two SPF records cause a permanent error (PermError) on every check, which DMARC treats as a failure. Merge them instead.
  • At most 10 DNS lookups. Every include, a, mx, ptr, exists and redirect counts, including those nested inside included records. Going over is also a permanent error.
  • Keep it current. Remove services you've stopped using; stale includes waste lookups.

In Foxcolab#

When you connect a domain to Foxcolab, the Domains tab lists an SPF Policy record that authorizes Foxcolab's servers to send for you. If your domain already has an SPF record, add Foxcolab's include: to it rather than creating a second record.

The guide SPF, DKIM and DMARC explained walks through the setup.

Keep exploring

All terms

Foxcolab

Private work tools, without the ads.

Mail, files, documents, spreadsheets and meetings in one account. Files, documents and spreadsheets are end-to-end encrypted.

Jump to