Technical details
An SPF record is a DNS TXT record that starts with v=spf1 and lists authorized sending sources using mechanisms defined in RFC 7208.
Each mechanism is evaluated left to right during the SMTP MAIL FROM handshake, and the first match determines the authorization result.
The record must be published as a single TXT record at the root of the domain, with a maximum of 10 DNS-querying mechanisms.
Frequently asked questions
Can I combine multiple email providers in one SPF record?+
Yes. Add each provider's include: mechanism to the same v=spf1 record. Watch the 10-DNS-lookup limit when combining multiple providers.
Should I use ~all or -all at the end?+
~all (softfail) is safer while setting up. Switch to -all (hardfail) once you are confident every legitimate sender is listed.
What if my provider is not in these examples?+
Check your provider's documentation for their include: domain. Add it as an include: mechanism in your existing v=spf1 record.
Check your domain with our free tools: SPF checker, DMARC checker, DKIM checker.