DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
Skip to content
World desk3 min

Why Is My SPF Redirect Ignored When I Have -all?

SPF ignores redirect= whenever its record contains an all mechanism, regardless of term order. Here’s how to choose between redirect and include.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If an SPF record contains both -all and redirect=, the redirect is ignored—no matter where either term appears. RFC 7208 requires this because the all mechanism always matches. When evaluation reaches -all, the result is SPF fail; the redirect target is not checked.

Why an SPF record ignores redirect when it contains all

SPF checks mechanisms in sequence. When a mechanism matches, its qualifier determines the result. The all mechanism is special: it always matches, and its qualifier supplies the result. Thus -all, if reached, returns fail.

As an Amazon Associate I earn from qualifying purchases.

The rule for redirect= is separate from ordinary term order. RFC 7208 says a redirect modifier must be ignored whenever an all mechanism occurs anywhere in the record. Moving redirect= before or after -all does not change that rule. RFC 7208, Section 5.1

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What happens in a record with both terms

Consider:

v=spf1 include:_spf.vendor.example -all redirect=_spf.example.com

  1. SPF checks include:_spf.vendor.example. If that mechanism matches the connecting IP, evaluation ends with the result from the include.
  2. If the include does not match, evaluation proceeds to -all.
  3. Because all always matches, -all returns fail. The redirect is ignored because an all mechanism exists in the record.

Putting the redirect earlier does not restore it. RFC 7208 requires it to be ignored regardless of the relative ordering of the terms.

When redirect is evaluated—and what can go wrong

A redirect is considered only after all mechanisms in the source record fail to match, and only when the record has no all mechanism. The target domain is then evaluated using the same connecting IP and sender. If the target has no SPF record, or its name is malformed, the result is permerror, not a neutral result. RFC 7208, Section 6.1

A redirect-based record might have this general form:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

v=spf1 include:_spf.vendor.example redirect=_spf.example.com

Without an all mechanism, the redirect can be used if the include and any other mechanisms do not match. This is an illustration of how the terms interact, not a copy-ready policy: the target must have a valid SPF policy, and the source record must reflect the senders the domain intends to authorize.

Choose between redirect and include

These terms solve different policy problems; redirect= is not another spelling of include:.

Need SPF construct What it does
Share the complete SPF policy among domains under the same administration redirect=target If no mechanism in the source record matches, evaluate the target domain’s policy. Do not put an all mechanism in the source record.
Authorize a provider’s sending infrastructure while keeping the domain’s own policy in control include:provider Check whether the referenced domain’s policy returns pass for the connecting IP. The source record continues to determine its own result.
End evaluation with an explicit default result all, such as -all Always matches when reached. Any record containing it must ignore redirect=.

RFC 7208 describes redirect as a way to consolidate authorization and policy, particularly for domains within one administrative domain. It cautions that redirecting to a domain outside that control may not work reliably, especially if the target policy depends on sender local-parts; an include is generally more suitable for that situation. RFC 7208, Section 5 RFC 7208, Section 6.1

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Redirect still counts toward the SPF DNS lookup limit

RFC 7208 requires SPF implementations to limit DNS-querying terms to 10 during one evaluation. redirect counts toward that limit; exceeding it produces permerror. By contrast, all, ip4, and ip6 do not cause DNS queries during SPF evaluation. Redirect is therefore not a way to bypass the lookup budget. RFC 7208, Section 4.6.4

How to troubleshoot an ignored SPF redirect

  1. Read the complete SPF record, including every occurrence of all. Do not infer behavior from the position of redirect=.
  2. If any all mechanism is present, treat the redirect as ignored under RFC 7208.
  3. Choose the intended policy structure: use all to provide an explicit ending result, or use redirect= to delegate the shared policy when mechanisms do not match. Do not combine them expecting the redirect to run.
  4. Check that the resulting policy authorizes the domain’s intended senders and remains within the 10-term DNS-query limit.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.