Table of Contents
Sender Policy Framework (SPF) lets a domain publish which mail servers are authorized to use it in an SMTP sender identity. Receiving servers can compare the connecting server's IP address with that policy. SPF is an email authentication check, not a guarantee that a message is safe.
Its most important limitation is easy to miss: SPF checks the envelope sender domain, not simply the From address a person sees in their inbox.

How an SPF check works
- The domain administrator publishes an SPF policy as a DNS TXT record.
- A receiving mail server obtains the policy for the SMTP MAIL FROM identity, or uses HELO as specified by the protocol.
- The receiver evaluates the connecting IP address against the policy.
- The result becomes one input to delivery and filtering decisions. The recipient's mail system decides how to handle the message.
A passing result means the sending host was authorized for the identity checked. It does not identify the human sender, inspect an attachment for malware, or prove that a request for money is legitimate. The protocol is defined in RFC 7208.
Why SPF alone cannot protect the visible From address
An attacker can use a domain they control, publish a valid SPF policy for it, and still put a different address in the visible From header. This is why “SPF passed” should not be read as “the displayed sender is verified.”
DMARC adds alignment with the visible From domain, using a qualifying SPF or DKIM result. DKIM provides a domain-linked signature over selected message content. These mechanisms complement one another; none makes the content of an authenticated message automatically trustworthy.

Plan an SPF record before publishing it
Inventory every legitimate sending service: employee mail, website forms, support systems, billing tools, and marketing platforms. Obtain each provider's current SPF instructions. A forgotten sender can cause legitimate messages to fail the check.
Publish only one SPF record for each DNS name. Combine the required mechanisms into that record rather than adding a second v=spf1 entry. Separate subdomains may need their own policies.
For a domain that sends only through Google Workspace, Google documents this example:
v=spf1 include:_spf.google.com ~allDo not copy it unchanged if you use another provider or additional senders. Follow your provider's SPF setup guidance and your DNS host's instructions.
Common problems to check
- Too many lookups: SPF evaluation limits DNS-query-causing terms to ten, including nested evaluations. It is not simply a limit of ten IP addresses. Exceeding the limit produces a permanent error.
- Missing providers: a newly added sending service must be accounted for before you rely on its mail.
- Forwarding: the server delivering a forwarded message may differ from the one authorized by the original sender, so legitimate forwarded mail can fail SPF.
- Policy changes: inspect real message authentication results after an update, rather than checking only that a TXT record exists.
Google's SPF troubleshooting guide covers record syntax and sender inventory. Its forwarding guidance explains why DKIM also matters for forwarded mail.

What administrators and readers should do next
Administrators should test all legitimate sending paths, maintain SPF when providers change, and review DKIM and DMARC alongside it. Authentication reports help investigate configuration and unauthorized sending attempts, but should not be presented as instant, complete monitoring.
Readers should still examine the actual address and the action requested. Use our guide to common phishing signals and verify sensitive requests through a trusted channel.
SPF does not encrypt email, stop someone sending a message, guarantee inbox placement, or establish legal compliance. It gives receiving systems a defined way to check sending-host authorization.
Reader Comments 0
Sign in with email or Google to join the discussion.