[Documentation](https://mailglo.com/docs/) / Questions and answers

For AI agents: [llms.txt, the index of guides and public pages](https://mailglo.com/llms.txt)

# 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

1. Adding a service, such as Microsoft 365 or your newsletter tool: `include:` with the name the service gives you, such as `include:spf.protection.outlook.com`. Don't `redirect=` to a service's record. You'd lose your other services and your own `all` entry. The service could also change your result without telling you.
2. Several domains of yours with the same senders: keep one record, such as `_spf.example.com`, and give each domain `v=spf1 redirect=_spf.example.com`. You then change the list in one place.
3. A record with both: `v=spf1 include:_spf.example.net redirect=_spf.example.com` is valid. The redirect applies when the include says fail, soft fail or neutral. Add `~all` to it and the redirect stops working.

## Sources

- [RFC 7208, section 5.2](https://www.rfc-editor.org/rfc/rfc7208#section-5.2): `include`. April 2014.
- [RFC 7208, section 6.1](https://www.rfc-editor.org/rfc/rfc7208#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](https://www.rfc-editor.org/rfc/rfc7208#section-4.6.4): the ten-lookup limit. April 2014.

Last updated 28 Nov 2026: First version.
