An auditor finds DMARC records with a misspelled sp= value, two TXT records at one _dmarc name, and v=DMARC1 in second place; what does an RFC 9989 receiver do with each?
answer
- silent failure, no error to the owner
- whole record, whole policy, one tag
- duplicates are not merged
- a subdomain typo with a wide reach
- the rua tag decides the fallback
basics
~20 sA DMARC record not starting with v=DMARC1 is ignored; two DMARC records at one name are both discarded; an invalid sp (or p, or np) makes the receiver act as if p=none when rua is valid, and apply no DMARC otherwise.
solid answer
~40 sRFC 9989 grades the damage. If `v=DMARC1` is not the first tag, the entire record must be ignored. If a name returns more than one record that starts with the version tag, all of them are discarded, so the name has no usable record; values that do not start with `v=DMARC1` are dropped first and do not count. If `p` is missing or invalid, or `sp` or `np` is present but invalid, the receiver acts as if the record said `p=none` when `rua` has a valid URI, and applies no DMARC processing when it does not. So `sp=quarantin` turns a domain's `p=reject` into `p=none`. Other bad values fall back to their defaults, and unknown tags are ignored.
go deeper
Recall that v=DMARC1 must be first and that one name should hold one DMARC record. Both mistakes leave that name with no usable record.
Explain the general rule: unknown tags are ignored and a bad value falls back to its default, so most typos cost only one tag.
Show the exception that catches auditors: an invalid p, sp or np sends the whole record to the p=none fallback, or to no DMARC without a usable rua.
Turn the audit into a control: record changes reviewed and validated against the grammar before publication, and aggregate reports watched for the policy receivers actually parsed.
## Why a syntax audit matters A DMARC policy record is read by thousands of receivers and corrected by none of them. **RFC 9989** (May 2026) tells a receiver exactly what to do with a malformed record, and in most cases the answer is to quietly use less of it. The domain owner sees no error message. At most, some receivers mention a record problem in the optional error element of their aggregate reports. So an audit has to know which mistakes cost the **whole record**, which **collapse the policy to `none`**, and which cost **one tag**. ## The three findings from the audit 1. **The misspelled `sp=` value** turns the record into `p=none` for every name it covers, the parent domain included, provided `rua` holds a valid URI; without one, no DMARC processing at all. 2. **Two DMARC records at one name** are both discarded, so that name has no usable record. 3. **`v=DMARC1` in second place** voids the record outright: the receiver must ignore it entirely. The sections below explain each rule and the ones around it. ## Mistakes that void the record These leave the name with **no usable DMARC record**, exactly as if nothing were published: - **`v=DMARC1` not first**, missing, or with a different value such as `dmarc1`: RFC 9989 says the entire record must be ignored. - **Two DMARC records at one name.** When more than one record that starts with the version tag comes back for the same name, all of them are discarded. Receivers do not pick the first, the stricter or the newer one. Two details keep the second rule from being over-applied: 1. A TXT value that does **not** start with `v=DMARC1`, such as a verification string someone left at the `_dmarc` name, is discarded before the count, so it does not create a duplicate. 2. "No record at this name" is not always "no DMARC". The receiver's search continues up to parent domains, so a subdomain whose own record is voided may fall under the organizational domain's policy. That search is covered with DMARC policy enforcement. ## Mistakes that collapse the policy to none RFC 9989 (Section 4.10.1) gives a specific rule when a retrieved record **does not contain a valid `p` tag, or contains an `sp` or `np` tag that is not valid**: | Record also has a `rua` tag with a valid URI? | Receiver acts as if | |---|---| | yes | the record said `p=none` | | no | no DMARC processing for the message | The trap is in the `sp` and `np` cases. A typo in the **subdomain** tag does not just cost subdomain coverage; it replaces the **whole record's** policy. `v=DMARC1; p=reject; sp=quarantin; rua=mailto:[email protected]` is acted on as `p=none` for `example.com` itself. ## Mistakes that cost one tag For everything else the general rule applies: unknown tags **must** be ignored, and syntax errors in the rest of the record **must** be discarded in favour of the default value, or ignored when the tag has none. Examples: - `adkim=x` or `aspf=q`: the bad value is discarded and the default `r` applies. - `fo=2`: discarded, so `fo` takes its default `0`; it is ignored anyway without `ruf`. - `pct=25`, `rf=afrf`, `ri=86400`: removed by RFC 9989 and ignored as unknown tags. - A `rua` URI with an unsupported scheme: that URI is ignored; any valid URI beside it still counts. ## The decision path in one place ```pseudocode candidates = TXT values at _dmarc.<name> that start with "v=DMARC1" if count(candidates) != 1: no usable record at this name # search may continue to a parent record = candidates[0] if p is missing or invalid, or sp/np is present but invalid: if record.rua has a valid URI: act as p=none else: no DMARC processing for every other tag: unknown -> ignore; invalid value -> default ``` ## Checking what is in force 1. Query the TXT records at the `_dmarc` name yourself and count the values that start with `v=DMARC1`: exactly one should. 2. Parse each value against the RFC 9989 grammar: version first, `p`, `sp` and `np` from `none`, `quarantine`, `reject`, `adkim` and `aspf` from `r` and `s`, URIs with their scheme. 3. Compare the result with the policy receivers report back in aggregate reports, which record the discovered or default value of each tag; reading those reports is covered with DMARC reports. 4. Re-check after every edit, because a single character in `sp` can undo a `p=reject`.
- Why does a typo in a DMARC record's sp= hurt the parent domain, not only its subdomains?RFC 9989's rule is about the record, not the tag: if the record contains an `sp` or `np` that is not valid, the receiver acts as if the whole record said `p=none` (when `rua` is usable) or applies no DMARC. The domain's own `p=reject` is lost along with the subdomain policy.
- Does a domain-verification string at the same _dmarc name count as a second DMARC record?No. Receivers discard TXT values that do not start with `v=DMARC1` before counting, so only two genuine DMARC records void each other. It is still better kept at its own name, because the next editor may mistake it for part of the policy.
- How can a domain owner see which DMARC policy receivers actually parsed?Aggregate reports state the policy each receiver applied, including the discovered or default value of each tag, and some receivers note record errors such as multiple records. Comparing that with the intended record shows a silent downgrade.
- A typo in sp= only affects subdomains; p= still covers the domain.
- With two DMARC records at one name, receivers use the stricter one.
- Receivers find v=DMARC1 wherever it sits in the record.
- An unknown tag such as pct= invalidates the whole record.
- An invalid adkim value makes receivers fall back to strict alignment.