How to Create an SPF Record

How to create an SPF record: step-by-step for Cloudflare, Namecheap, GoDaddy and any DNS provider. Build correct v=spf1 TXT records.

StepAction
1Identify all services that send email as your domain (Google Workspace, SendGrid, CRM, etc.)
2Find each provider's include: mechanism from their documentation
3Build the record: v=spf1 include:provider1.com include:provider2.com ~all
4Add as a TXT record at your DNS provider with name @ (root)
5Validate with our free SPF checker and monitor for changes

Technical details

An SPF record is created by adding a TXT record at the root of your domain that starts with v=spf1 and lists all authorized sending sources using mechanisms from RFC 7208.

The record is evaluated by receiving mail transfer agents during the SMTP handshake to verify that the connecting IP is authorized.

The total number of DNS-querying mechanisms is capped at 10, so combining multiple email services requires careful include: management.

Frequently asked questions

How long does it take for an SPF record to take effect?+

The DNS record propagates within minutes on Cloudflare (TTL Auto). Full propagation across all resolvers can take up to 24-48 hours depending on the TTL.

Can I have multiple SPF records?+

No. RFC 7208 requires exactly one v=spf1 record. Multiple records cause a permerror. Merge all senders into a single record.

What if I exceed the 10-lookup limit?+

Receivers will return a permerror and ignore your SPF policy entirely. Remove unused include: mechanisms or use our SPF flattener.

Check your domain with our free tools: SPF checker, DMARC checker, DKIM checker.

Last verified: 2026-10-28