Email DNS Check

Guides › SPF

What is an SPF record? A plain-English guide

SPF (Sender Policy Framework, RFC 7208) is a TXT record at your domain that lists which servers may send mail for it. Receivers check the connecting server's IP against the list. Strictly, SPF checks the envelope sender (Return-Path), not the visible From address. That's why DMARC's alignment check matters.

v=spf1 ip4:203.0.113.10 include:_spf.google.com include:sendgrid.net ~all
PartMeaning
v=spf1Version. It must be first.
ip4: / ip6:Authorise an IP or range. Costs no DNS lookup.
include:Also authorise whatever that domain's SPF allows. Costs 1+ lookups.
a / mxAuthorise your domain's A or MX hosts. Costs 1 lookup each.
~allSoft-fail everything else (recommended with DMARC).
-allHard-fail everything else.

Rules: exactly one SPF record per domain, and at most 10 DNS lookups.

Check your domain now

Related

SPF 10 DNS lookup limit: how to fix 'too many lookups'Multiple SPF records: how to merge them into oneSPF ~all vs -all: softfail or hardfail?

More free tools from Swift Labs

Robots & Sitemap Checker
Validate robots.txt and XML sitemaps, test any path, see which AI crawlers you block.
OG Preview Tool
Preview links on Facebook, LinkedIn, X and Slack, and audit Open Graph tags.
DeadLinkPatrol
Find broken links across your whole site.