[Articles](https://mailglo.com/articles/)

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

# SPF include and redirect in RFC 7208

`include:` matches if the other domain's record returns "pass". If it returns fail, softfail or neutral, your record moves to the next entry. An error or a missing SPF record stops the check. `redirect=` makes the other record's result your result, and only when nothing in your record matched.

Which one to use for your domain is answered in [Should my SPF record use include or redirect?](https://mailglo.com/articles/spf-include-or-redirect/). Both count toward the [10-lookup limit](https://mailglo.com/articles/spf-lookup-limit/).

## What does the standard say about include?

[Section 5.2](https://www.rfc-editor.org/rfc/rfc7208#section-5.2) runs the whole check again on the other domain, with the same sending server, and uses only one part of the answer:

| Result of the other record | What `include` does |
|---|---|
| pass | matches, so the `include` entry's own result applies: pass for `include`, fail for `-include` |
| fail, softfail or neutral | doesn't match; your record moves to its next entry |
| temperror | ends the check with temperror |
| permerror | ends the check with permerror |
| none (no SPF record) | ends the check with permerror |

The other record's entries are not copied into yours. A `-all` there "does not terminate the overall processing".

`include` is meant for other people's domains: "The "include" mechanism is intended for crossing administrative boundaries." For domains you run yourself, "it would be preferable" to use `redirect=` or list the servers directly.

## What does the standard say about redirect?

[Section 6.1](https://www.rfc-editor.org/rfc/rfc7208#section-6.1) applies `redirect=` only "If all mechanisms fail to match". Then the other record is checked, and "The result of this new evaluation of check_host() is then considered the result of the current evaluation". If the other name has no SPF record, or isn't a valid name, the result is "permerror" rather than "none".

- Required: "Any "redirect" modifier MUST be ignored if there is an "all" mechanism anywhere in the record." A record with both never redirects.
- Recommended: "For clarity, any "redirect" modifier SHOULD appear as the very last term in a record."

It is for domains one company runs: "for consolidating both authorizations and policy into a common set to be shared within a single ADMD". The standard warns against pointing it at someone else's domain: "the domain "A" cannot reliably use a redirect to another domain "B" not under the same administrative control."

## How deep can records nest?

The standard sets no depth for records that include other records. The [10-lookup limit](https://mailglo.com/articles/spf-lookup-limit/) is the only cap, and it also stops a loop of records that include each other.

A service can change its SPF record without telling you, and that can put your record over the limit.

## Check your record

The free [SPF checker](https://mailglo.com/tools/spf-checker/) flags an include that [points to a name receivers can't follow](https://mailglo.com/docs/findings/spf-include-broken/). What its lookup count can tell you is on [the 10-lookup limit](https://mailglo.com/articles/spf-lookup-limit/#check-your-record).

## Sources

- [RFC 7208, section 5.2](https://www.rfc-editor.org/rfc/rfc7208#section-5.2), `include`, its results table and its intended use.
- [RFC 7208, section 6.1](https://www.rfc-editor.org/rfc/rfc7208#section-6.1), `redirect`, where it goes and when it is ignored.

Last updated 3 Dec 2026: New article: what RFC 7208 says about include and redirect.

Found an error, or a question this page does not answer? Email support@mailglo.com.
