Documentation Questions and answers
Should my SPF record use include or redirect?
Your SPF record lists the servers allowed to send your mail. Use include: to add a sending service's servers to that list. Use redirect= only to share one whole record, its all entry too, across domains you control. Don't put redirect= and all in one record. Receivers then ignore the redirect=.
How they differ
include: asks one question of the other record: does this server pass there? If it does, the message passes your record. If the other record says fail, soft fail or neutral, your record carries on to its next entry. Its all entry doesn't end yours. If the other name has no SPF record, or its lookup fails, the whole check ends in an error.
redirect= hands over the whole answer. When nothing in your record matched, the other record's result becomes yours, its all entry included. If the other name has no SPF record, the result is an error, not "no policy".
Both count toward SPF's limit: at most ten entries that need a DNS lookup. Entries in the records it follows count too.
Check it on a real domain
Google uses both. We looked up three of its records on 27 November 2026:
$ dig +short TXT google.com | grep spf1
"v=spf1 include:_spf.google.com ~all"
$ dig +short TXT gmail.com | grep spf1
"v=spf1 redirect=_spf.google.com"
$ dig +short TXT _spf.google.com
"v=spf1 ip4:74.125.0.0/16 ip4:192.178.47.0/24 ip4:192.179.92.0/22 ip4:209.85.128.0/17 ip6:2001:4860:4864::/56 ip6:2404:6800:4864::/56 ip6:2607:f8b0:4864::/56 ip6:2800:3f0:4864::/56 ip6:2a00:1450:4864::/56 ip6:2c0f:fb50:4864::/56 ~all"
google.com includes Google's list of servers and keeps its own ~all. gmail.com hands its whole record to _spf.google.com, so its all entry is whatever that record says. If Google changed _spf.google.com to end in -all, a server not on the list would fail SPF for gmail.com. For google.com it would only be marked suspicious, by its own ~all.
Which to use
- Adding a service, such as Microsoft 365 or your newsletter tool:
include:with the name the service gives you, such asinclude:spf.protection.outlook.com. Don'tredirect=to a service's record. You'd lose your other services and your ownallentry. The service could also change your result without telling you. - Several domains of yours with the same senders: keep one record, such as
_spf.example.com, and give each domainv=spf1 redirect=_spf.example.com. You then change the list in one place. - A record with both:
v=spf1 include:_spf.example.net redirect=_spf.example.comis valid. The redirect applies when the include says fail, soft fail or neutral. Add~allto it and the redirect stops working.
Sources
- RFC 7208, section 5.2:
include. April 2014. - RFC 7208, section 6.1:
redirect, and "Any "redirect" modifier MUST be ignored if there is an "all" mechanism anywhere in the record." April 2014. - RFC 7208, section 4.6.4: the ten-lookup limit. April 2014.
Check your domain
See your SPF, DMARC and DKIM records and what to fix. Free, no account. Don't see your signing key? On the results page, enter the name your email service gives you under Signing keys.
Last updated : First version.
For AI agents: this page in Markdown, llms.txt, the index of guides and public pages