skip to content

Under RFC 9989, what does each tag in the DMARC record v=DMARC1; p=reject; sp=quarantine; np=reject; adkim=s; rua=mailto:[email protected] request, and which defaults fill the gaps?

level: middleimportance: must knowfreq 38%

answer

  1. three policy tags, three scopes
  2. existing versus non-existent subdomains
  3. one letter per alignment mode
  4. reports need their own tag
  5. test flag and suffix flag defaults

basics

~10 s

p=reject covers example.com, sp=quarantine its existing subdomains and np=reject subdomains that do not exist; adkim=s asks for strict DKIM alignment; rua names the aggregate-report mailbox. Absent tags default: aspf=r, fo=0, t=n, psd=u.

solid answer

~30 s

Reading left to right under RFC 9989: `v=DMARC1` identifies the record; `p=reject` is the policy for `example.com` itself; `sp=quarantine` covers existing subdomains; `np=reject` covers subdomains that do not exist in DNS (without `np`, `sp` and then `p` would apply). `adkim=s` asks that the DKIM signing domain match the From domain exactly; `aspf` is absent, so SPF alignment stays relaxed (`r`). `rua=mailto:[email protected]` requests aggregate reports; with no `ruf`, receivers must send no failure reports, and `fo` (default `0`) would be ignored anyway. `t` defaults to `n`, so the policy is applied as written, and `psd` defaults to `u`.

code

dns · 5 lines
dns
; DMARC policy record for example.com
_dmarc.example.com. 3600 IN TXT ( "v=DMARC1; p=reject; sp=quarantine; np=reject; "
                                  "adkim=s; rua=mailto:[email protected]" )
; absent tags take their RFC 9989 defaults:
; aspf=r  fo=0 (ignored without ruf)  t=n  psd=u

go deeper

for a junior

Recall what p, sp and rua each mean and that adkim and aspf take r or s. Reading a short record aloud, tag by tag, is the skill being checked.

for a middle

Explain the scope of p, sp and np and the fallback from np to sp to p, then list the defaults for adkim, aspf, fo, t and psd without being prompted.

for a senior

Point out what the record does not request: no ruf means no failure reports and fo is ignored. Note that sp means nothing in a record published on a subdomain.

for a principal

Treat the record as policy for the whole namespace: argue why np belongs in it, and when strict DKIM alignment is worth the cost of every sender signing with the exact From domain.

## How a DMARC record is read A DMARC policy record is a TXT value at `_dmarc.<domain>` made of semicolon-separated `tag=value` pairs, defined by **RFC 9989** (May 2026), which obsoletes RFC 7489 (2015). The receiver reads `v=DMARC1` first (it must lead, or the record is ignored), then each remaining tag in any order. Two rules shape the reading: - a tag that is **absent** takes its **default**, or simply does nothing if it has none; - a tag the receiver **does not know** is ignored, which is why an old `pct=` no longer changes anything; - after `v=DMARC1` the tags may come in **any order**, and a value split into several quoted strings is joined before it is parsed. Take this record for `example.com`: ```dns _dmarc.example.com. 3600 IN TXT ( "v=DMARC1; p=reject; sp=quarantine; np=reject; " "adkim=s; rua=mailto:[email protected]" ) ``` ## The policy tags: p, sp and np Three tags carry a policy, and each takes the same three values, `none`, `quarantine` or `reject`. They differ in which From domains they cover: | Tag | Covers | In this record | |---|---|---| | `p` | the domain the record is published for, and its subdomains unless `sp` or `np` says otherwise | `reject` for `example.com` | | `sp` | **existing** subdomains of the organizational domain | `quarantine` for, say, `news.example.com` | | `np` | subdomains that **do not exist** in DNS | `reject` for a made-up `billing.example.com` | Read against real names: mail whose From domain is `example.com` and fails DMARC falls under `reject`; mail from `news.example.com`, which exists in DNS, under `quarantine`; mail from a name for which DNS answers NXDOMAIN, because it does not exist, under `reject` again. The fallbacks are written into the tag definitions: with `np` absent, `sp` applies to non-existent subdomains, and with `sp` absent too, `p` does. `np` came into DMARC from the experimental RFC 9091 and is now part of the standard. `sp` has no effect in a record published on a subdomain (such as `_dmarc.news.example.com`), because of how policy discovery works. How a receiver finds the organizational domain and applies these values is covered with DMARC policy enforcement. ## The alignment-mode tags: adkim and aspf `adkim` and `aspf` each take `r` (relaxed) or `s` (strict) and both **default to `r`**: - `adkim=s` here asks that the DKIM signing domain be **identical** to the From domain rather than merely in the same organizational domain; - `aspf` is absent, so SPF alignment stays relaxed. What relaxed and strict alignment mean in practice is covered with DMARC identifier alignment; on the record, they are one letter each. ## The reporting tags: rua, ruf and fo - `rua=mailto:[email protected]` asks receivers for **aggregate reports** at that mailbox. Without `rua`, receivers must not send them. - `ruf` is absent, so receivers **must not** send failure reports; there is no fallback to the `rua` address. - `fo` is absent and defaults to `0`; it would be ignored anyway, because `fo` has meaning only when `ruf` is present. ## The flag tags: t and psd - `t` is absent, so it defaults to `n`: apply the policy as written. `t=y` would ask receivers to apply one level lower (reject read as quarantine, quarantine as none) while testing, and it never affects reports. It replaced the useful part of the removed `pct` tag. - `psd` is absent, so it defaults to `u`: `example.com` is not a public suffix domain and may or may not be an organizational domain, which the receiver works out the usual way. `psd=y` is for public suffix operators; `psd=n` declares the domain to be the organizational domain for itself and its subdomains. ## Defaults when a tag is left out | Tag | Default in RFC 9989 | Effect of leaving it out | |---|---|---| | `adkim`, `aspf` | `r` | relaxed alignment | | `fo` | `0` | report when no aligned pass (and only with `ruf`) | | `t` | `n` | policy applied as written | | `psd` | `u` | organizational domain found the usual way | | `sp`, `np` | none | fall back to `sp`, then `p` | | `rua`, `ruf` | none | the matching reports are not sent | ## Reading mistakes to avoid 1. Reading `sp` as covering every subdomain: `np`, when present, takes the non-existent ones. 2. Assuming strict alignment by default: both modes default to relaxed. 3. Expecting failure reports at the `rua` address when `ruf` is missing. 4. Treating a missing `t` as test mode: the default is `n`.

  • If this DMARC record dropped np=reject, what policy would mail from a non-existent subdomain get?
    `sp=quarantine`. RFC 9989 says that when `np` is absent, the `sp` policy applies to non-existent subdomains, and only when `sp` is also absent does `p` apply. Dropping both would leave `p=reject` covering every subdomain.
  • What does adkim=s change compared with leaving the tag out of the DMARC record?
    Without the tag, `adkim` defaults to `r`, relaxed: the DKIM signing domain need only share the From domain's organizational domain. `adkim=s` requires the two to be identical, so a signature from `mail.example.com` no longer aligns with mail from `example.com`.
  • Would adding t=y to this DMARC record stop the aggregate reports?
    No. RFC 9989 says `t` does not affect report generation. `t=y` asks receivers to apply each policy one level lower while the owner tests, so `p=reject` would be treated as quarantine, and reports keep arriving at the `rua` address.

  • Without np=, mail from non-existent subdomains escapes the policy entirely.
  • adkim and aspf default to strict alignment.
  • Leaving out ruf= sends failure reports to the rua= address instead.
  • p= applies only to the exact domain, never to its subdomains.
  • A record without a t= tag is in test mode by default.