skip to content

An SPF check returns temperror for one sender and permerror for another; what does each mean, and how should the receiving mail server respond?

level: seniorimportance: should knowfreq 20%

answer

  1. who has to act to clear it?
  2. a retry may succeed
  3. the record cannot be interpreted
  4. 451 against 550
  5. neither one is a pass

basics

~20 s

Temperror is a transient, usually DNS, failure a retry may clear: accept, or defer with 451. Permerror is a record that cannot be interpreted until its DNS operator fixes it: reject with 550, or accept and annotate.

solid answer

~50 s

`temperror` means the verifier hit a transient error, typically a DNS server failure or timeout, or ran past its own evaluation time limit; RFC 7208 says a later retry may succeed without anyone changing DNS. A receiver can accept the message or defer it with `451` and enhanced code `4.4.3`, so the sending MTA retries; RFC 7372 later registered `4.7.24` for that case. `permerror` means the domain's records could not be interpreted, for example a syntax error, two `v=spf1` records or an exceeded lookup limit, and nothing changes until the domain's DNS operator edits the record; a receiver may reject with `550 5.5.2` (or `5.7.24`) or deliver with an annotation. Neither result is a pass, so a DMARC evaluator gets no SPF-authenticated identifier and the message can pass DMARC only on an aligned DKIM signature.

go deeper

for a junior

Recall the split: temperror is a temporary DNS problem that a retry may fix, permerror is a broken record that someone must edit.

for a middle

Explain the causes of each, the reply codes RFC 7208 suggests when rejecting, and why a name that does not exist gives none rather than an error.

for a senior

Show how you would diagnose each from the receiver's side, what deferring and rejecting cost when the verifier itself is wrong, and why neither result helps DMARC.

for a principal

Set the receiving policy deliberately: whether errors fail open or closed, how long temperror deferrals may last, and how your own domains are monitored for permerror.

## Two errors, two different owners RFC 7208 (April 2014) has two error results, and the quickest way to tell them apart is to ask **who has to act** before the result changes. | | `temperror` | `permerror` | |---|---|---| | Definition (section 2.6) | A transient, generally DNS, error while performing the check | The domain's published records could not be correctly interpreted | | Will a retry help? | It may, without any DNS operator action | No; it needs DNS operator intervention | | Typical causes | The TXT lookup returns a server failure or another error code, or times out; the evaluation runs past the verifier's time limit | Unparseable syntax; more than one `v=spf1` record; more than 10 DNS-querying terms; more than two void lookups where the verifier applies that limit; macros fed unexpected input | | Whose DNS? | Either side: the sender's or the receiver's DNS software | The sending domain's records | | Reply if rejecting (section 8) | `451` with `4.4.3` | `550` with `5.5.2` | | RFC 7372 code (September 2014) | `4.7.24` "SPF validation error" | `5.7.24` "SPF validation error" | The detailed rules behind the permerror causes, one record per name and the lookup budget, are covered with SPF record syntax and the 10-lookup limit. What matters here is what the receiver does once the result exists. ## Where temperror comes from Section 4.4: if the DNS lookup for the record returns a server failure (RCODE 2) or any error other than success or "name error", or if it times out, `check_host()` stops immediately with `temperror`. Section 4.6.4 adds that an MTA SHOULD limit the elapsed time of the whole evaluation, that the limit SHOULD allow at least 20 seconds, and that exceeding it SHOULD give `temperror`. A name that does not exist is not a temperror: section 4.3 returns `none` for it. ## The receiver's choices Appendix G discusses both errors in the same terms: each gives no real indication of whether the envelope is authorized, and SMTP offers only a few responses. **For `temperror`** 1. **Defer** with a `4xx` reply. This draws attention to the problem and lets the sending MTA retry later, when DNS may have recovered. 2. **Accept** with an annotation in the recorded result and a log entry, which is less intrusive but passive. Appendix G.4 notes the cost of deferring: if the verifier itself is defective, only the sender is notified, and only after the message times out of its queue, possibly days later. If temperrors persist across several delivery attempts, it might be better to treat the error as permanent. **For `permerror`** 1. **Reject** with a `5xx` reply. This is the one action that makes the sending domain notice that its record is broken. 2. **Deliver** with an annotation and logging. Again less intrusive, and again passive. Appendix G.3 notes the matching risk: an SPF implementation that wrongly reports permerror makes the receiver reject legitimate mail, and only the sender finds out. Both appendices also mention leaving the choice to the verifier's operator, as local policy, rather than fixing it in the implementation. ## What it means for DMARC RFC 9989 (May 2026, obsoleting RFC 7489) relies solely on SPF validation of the `MAIL FROM` identity, and only an SPF `pass` yields an **SPF-authenticated identifier** (section 4.4.2). So: - with `temperror` or `permerror`, SPF contributes nothing toward DMARC; - a message with an aligned, verifying DKIM signature can still pass DMARC; - a message without one fails DMARC, and the domain's DMARC policy then applies, which is covered with DMARC enforcement. RFC 9989's own `temperror` and `permerror` results are about evaluating DMARC itself and are a separate matter from the SPF results. ## Diagnosing from the receiver's side - **Read the recorded result.** RFC 7208's `Received-SPF` field has a `problem=` key for a description of what went wrong. - **For temperror, suspect your own resolver first.** If many unrelated domains show temperror at once, the receiver's DNS is the likelier cause. - **For permerror, query the sender's record yourself.** Count the `v=spf1` records and the DNS-querying terms. A sender that suddenly shows permerror may just have added a sending service to its record. - **Watch for persistent temperror.** A domain whose authoritative servers time out on every attempt will defer the same mail for days. ## For the sending domain's owner - A permerror on your domain takes SPF out of play for all of your mail at every receiver that hits it, until you fix the record; receivers that reject on it refuse your mail outright. - Because a permerror is not a pass, any of your mail that lacks an aligned DKIM signature now fails DMARC. - DMARC aggregate reports, covered with DMARC reporting, are where a domain owner usually first sees such a failure across many receivers.

  • A receiver defers every message from one domain with 451 because SPF keeps returning temperror. What does RFC 7208 suggest considering?
    Appendix G.4 warns that long queue lifetimes mean such mail can be deferred for several days, and that the sender learns late. If temperrors persist across several delivery attempts, it suggests treating the error as permanent to cut the time in transit. It is also worth checking whether the fault is in the receiver's own DNS.
  • Does a name that does not exist in DNS produce temperror or permerror?
    Neither. RFC 7208 section 4.3 returns `none` when the domain lookup gives a name error. Temperror is for server failures, other error codes and timeouts; permerror is for records that exist but cannot be interpreted.
  • Why can't a receiver treat an SPF permerror as a pass to avoid hurting a misconfigured sender?
    Because nothing was authorized: the record could not be read, so there is no statement that the client may use the domain. Treating it as a pass would hand an authenticated identity to whoever is sending, including a forger. The usual lenient choice is to deliver with an annotation, not to upgrade the result.

  • Temperror means the sender's SPF record has a syntax error.
  • Permerror clears on its own when the sender retries later.
  • A domain that does not exist gives temperror.
  • An SPF permerror still counts as an SPF pass for DMARC.
  • Temperror is always the sending domain's DNS at fault.