DMARCbis (RFC 9989): what changed in DMARC and what to update

In May 2026 the IETF published DMARC as an Internet standard. Three new documents, RFC 9989 (the protocol), RFC 9990 (aggregate reports) and RFC 9991 (failure reports), replace RFC 7489, the informational document that defined DMARC from 2015 until now. During the years it spent in the IETF’s DMARC working group, the revision was known as DMARCbis.
If you run email for a domain, the good news comes first: your DMARC record keeps working. It still starts with v=DMARC1, still lives at _dmarc.<your domain>, and still means what it meant yesterday. But a few tags are gone, three are new, receivers now find your organizational domain in a different way, and the guidance on p=reject has changed in ways that matter. This article goes through every change you’ll notice in practice, with the section of the RFC it comes from, and ends with two short scripts that check your own domains against the new rules using live DNS.
If DMARC itself is new to you, start with the DMARC lesson of the free Email for IT course; this post assumes you know what alignment and p= mean.
The short version
- Nothing breaks. Records keep
v=DMARC1. There is no new version number to publish. pctis gone, together withrfandri.pct=100was the default anyway, so delete it.pct=0becomes the newt=y. Any value in between was never applied reliably, and receivers that follow RFC 9989 ignore it.- Three new tags:
t(testing mode),np(policy for subdomains that don’t exist) andpsd(public suffix domains). - No more Public Suffix List. Receivers find the organizational domain with a DNS tree walk of at most eight queries.
- Stricter words on
p=reject: domains that publish it must sign all their mail with DKIM, domains whose users post to mailing lists should not publish it, and receivers must not reject onp=rejectalone. - Reports get an XML namespace and new fields, including one that tells you whether a receiver already uses the tree walk.
From RFC 7489 to RFC 9989
DMARC began in 2012 as a specification written by a group of mailbox providers and large senders. In March 2015 it was published as RFC 7489, but through the RFC Editor’s Independent Submissions stream rather than an IETF working group, and classified as Informational: a description of a protocol in use, not a standard. In 2021, the experimental RFC 9091 added policies for public suffix domains. The IETF’s DMARC working group then spent years turning all of it into a proper standard, and the result is three documents:
| RFC | Covers | Replaces |
|---|---|---|
| RFC 9989 | The protocol: the policy record, alignment, policy discovery | RFC 7489 and RFC 9091 |
| RFC 9990 | Aggregate reports | The aggregate reporting parts of RFC 7489 |
| RFC 9991 | Failure reports | The failure reporting parts of RFC 7489; also updates RFC 6591 |
All three were published in May 2026 on the Standards Track.
What stays the same
The changes are easier to see against what didn’t move:
- The record is a TXT record at
_dmarc.<domain>. It must start withv=DMARC1, exactly, in that case, or receivers ignore the whole record. If a name has more than one DMARC record, receivers ignore all of them. - A message passes DMARC when SPF or DKIM passes for a domain that is aligned with the From domain, and
adkimandaspfchoose relaxed (the default) or strict alignment. ptakesnone,quarantineorreject;spsets the policy for subdomains;rua,rufandfowork as before, including the rule that report addresses at another domain must be authorized by that domain.
One small change tidies up an edge case: a record without a valid p tag but with at least one valid rua address must now be treated as p=none (RFC 7489 only said “should”), so a reports-only record behaves the same everywhere (section 4.10.1).
pct is gone; t keeps the part that worked
pct let a domain apply its policy to only a percentage of failing messages, so it could ramp up from p=none to p=quarantine gradually. Appendix A.6 of RFC 9989 explains why it was removed: in practice it was “usually not accurately applied” unless the value was 0 or 100, and the inaccuracies “varied widely from one implementation to another”. Meanwhile, pct=0 had taken on a meaning of its own: mailing lists and other intermediaries treated it as a signal to rewrite the From header of your messages, which, as a side effect, showed domain owners in their reports how much of their mail passed through such intermediaries.
RFC 9989 keeps that useful part as a new tag, t (“testing”):
t=y: “I’m testing this policy”. Receivers apply one level less than you published:quarantineis treated asnone,rejectasquarantine. Intermediaries may apply their special handling, such as From rewriting. Reporting isn’t affected, andthas no effect on a policy ofnone.t=n: the default. Apply the policy as published.
What to do with the pct in your record:
| Your record has | What RFC 9989 receivers do | What to do |
|---|---|---|
pct=100 | Nothing changes: it was the default | Delete it |
pct=0 | Ignore it, so your policy applies in full | Add t=y, and keep pct=0 too while receivers on RFC 7489 remain |
pct=1 to pct=99 | Ignore it, so the policy applies to every failing message | Decide: publish the policy without pct, or test with t=y first |
Keeping pct=0 and t=y in the same record during the transition is safe, because both RFC 7489 and RFC 9989 require receivers to ignore tags they don’t know: old receivers read pct=0, new ones read t=y.
Two other tags were removed. rf chose the format of failure reports, but only one format, afrf, was ever supported. ri asked for a reporting interval, but receivers were only required to support daily reports, and that’s what most send regardless. The optional size limit on report addresses (rua=mailto:dmarc@example.com!10m) is gone too. Leaving any of these in your record does no harm, since unknown tags are ignored, but they no longer do anything.
These leftovers are everywhere. In a quick look at the DMARC records of 19 well-known domains on 2 November 2026 (Microsoft, Apple, Amazon, Facebook, LinkedIn, X, GitHub, Stripe, Cloudflare, eBay, Netflix, Dropbox, Salesforce, Mailchimp, Zoom, Slack, Adobe, WordPress.com and CISA), 12 still carried pct=100, eBay’s had rf=afrf and Zoom’s had ri=3600. All harmless, all safe to remove.
np: a policy for subdomains that don’t exist
Spoofers like subdomains that don’t exist, such as billing.example.com or secure-login.example.com: they look plausible, and when a domain’s sp is weaker than its p, they often get through. The np tag, which RFC 9989 takes over from the experimental RFC 9091, sets the policy for failing mail from subdomains that don’t exist in DNS:
_dmarc.example.com. TXT "v=DMARC1; p=quarantine; sp=quarantine; np=reject; rua=mailto:dmarc@example.com"
The fallback chain for a subdomain that doesn’t exist is np, then sp, then p, so a domain at p=reject without an sp tag is already covered. np earns its place while your p or sp is still none or quarantine during a rollout: a name that doesn’t exist can’t host a legitimate mail system, so np=reject can usually go in early (look for From subdomains you don’t recognize in your aggregate reports first). Like every DMARC policy, np only applies to mail that fails DMARC: a message from a made-up subdomain that carries an aligned DKIM signature for your domain still passes.
A trap: zones that never say NXDOMAIN
“Doesn’t exist” has a precise meaning in RFC 9989 (section 3.2.13, which points to RFC 8020): a DNS query for the name returns NXDOMAIN. There is a catch. Zones signed with compact denial of existence (RFC 9824, September 2025) answer DNSSEC-enabled queries for missing names with NOERROR and an empty answer, and mark the name as missing with a special NXNAME type in a signed NSEC record. Cloudflare’s DNS answers this way, and it serves, among many others, the .gov top-level domain and example.com. Compare a missing .gov name with a missing .com name, through a public resolver:
for n in onabr-demo-agency.gov onabr-demo-agency-xyz.com; do
curl -s -H 'accept: application/dns-json' "https://cloudflare-dns.com/dns-query?name=$n&type=A&do=1" |
python3 -c 'import json,sys; d=json.load(sys.stdin); print(d["Question"][0]["name"], "status", d["Status"]); [print(" NSEC", a["data"]) for a in d.get("Authority", []) if a["type"] == 47]'
done
onabr-demo-agency.gov status 0
NSEC \000.onabr-demo-agency.gov. RRSIG NSEC NXNAME
onabr-demo-agency-xyz.com status 3
The .com name gets status 3, NXDOMAIN. The .gov name doesn’t exist either, but gets status 0, NOERROR, with the NXNAME marker. A receiver that only looks at the response code concludes that the name exists, and applies sp instead of np. RFC 9824 defines a fix (a “Compact Answers OK” flag that lets resolvers ask for the NXDOMAIN code back), but until resolvers and DMARC implementations handle it everywhere:
- if your domain’s DNS uses compact denial, don’t rely on
npalone; makespas strict as you can; - if you write DMARC software, treat an NSEC record with
NXNAMEfor the queried name as non-existence. The script at the end of this post does.
The DNS tree walk replaces the Public Suffix List
Relaxed alignment needs one piece of information: the organizational domain of each domain involved. mail.example.com and news.example.com align because both belong to example.com. RFC 7489 told receivers to work this out with a list of public suffixes, in practice the one at publicsuffix.org, but never said which list, which version, or how often to update it, so different receivers could reach different answers. RFC 9989 drops the list and asks DNS instead (section 4.10):
- Query
_dmarcat the starting domain. - Remove the leftmost label and query again, one label at a time, toward the root. If the starting name has eight labels or more, jump straight to its last seven labels after the first query, so a walk never takes more than eight queries.
- Stop early at any record that carries a
psdtag.
Then choose the organizational domain from the records found, longest name first (section 4.10.2):
- a record with
psd=nmakes its own domain the organizational domain; - a record with
psd=ymarks a public suffix, and the domain one label below it is the organizational domain; - otherwise, the record at the name with the fewest labels wins;
- if the walk found no record at all, the starting domain is its own organizational domain.
Policy discovery uses the same walk: receivers apply the record at the From domain if there is one, otherwise the organizational domain’s record, otherwise the record of the public suffix above it. Here is the walk for four real cases, run against live DNS with the script at the end of this post:
python3 treewalk.py mail.cisa.gov onabr-demo-agency.gov a.b.c.d.e.f.g.h.i.j.mail.example.com onabr-demo.vercel.app
== From: someone@mail.cisa.gov
query _dmarc.mail.cisa.gov (none)
query _dmarc.cisa.gov -> v=DMARC1; p=reject; pct=100; rua=mailto:DMARC@hq
query _dmarc.gov -> v=DMARC1; p=reject; sp=none; np=reject; rua=mail
3 queries; Organizational Domain: cisa.gov (tree walk), cisa.gov (Public Suffix List)
policy: p=reject from _dmarc.cisa.gov (a subdomain that exists)
== From: someone@onabr-demo-agency.gov
query _dmarc.onabr-demo-agency.gov (none)
query _dmarc.gov -> v=DMARC1; p=reject; sp=none; np=reject; rua=mail
2 queries; Organizational Domain: onabr-demo-agency.gov (tree walk), onabr-demo-agency.gov (Public Suffix List)
policy: np=reject from _dmarc.gov (a domain that does not exist)
== From: someone@a.b.c.d.e.f.g.h.i.j.mail.example.com
query _dmarc.a.b.c.d.e.f.g.h.i.j.mail.example.com (none)
query _dmarc.g.h.i.j.mail.example.com (none)
query _dmarc.h.i.j.mail.example.com (none)
query _dmarc.i.j.mail.example.com (none)
query _dmarc.j.mail.example.com (none)
query _dmarc.mail.example.com (none)
query _dmarc.example.com -> v=DMARC1;p=reject;sp=reject;adkim=s;aspf=s
query _dmarc.com (none)
8 queries; Organizational Domain: example.com (tree walk), example.com (Public Suffix List)
policy: sp=reject from _dmarc.example.com (a domain that does not exist)
== From: someone@onabr-demo.vercel.app
query _dmarc.onabr-demo.vercel.app (none)
query _dmarc.vercel.app -> v=DMARC1; p=reject; sp=reject; adkim=s; aspf=s;
query _dmarc.app (none)
3 queries; Organizational Domain: vercel.app (tree walk), onabr-demo.vercel.app (Public Suffix List)
policy: sp=reject from _dmarc.vercel.app (a subdomain that exists)
Case by case:
mail.cisa.gov: the subdomain has no record,cisa.govdoes, and.govpublishes a public suffix record withpsd=y. The walk stops at.govand takes the domain one label below it,cisa.gov: the same answer as the Public Suffix List. The record has nosp, sop=rejectcovers the subdomain.onabr-demo-agency.govdoesn’t exist. The only record on the way is the one at.gov, so the public suffix policy applies, withnp=reject: nobody can send mail from a made-up agency domain under.gov. This is what public suffix DMARC is for. (The script recognizes the name as non-existent through theNXNAMEcheck from the previous section; a plain NXDOMAIN check would have appliedsp=noneinstead.)- A 13-label name under
example.comcosts exactly eight queries, the same sequence as the example in section 4.10 of the RFC, and getsexample.com’ssp=reject, because that record has nonp. onabr-demo.vercel.appis where the two methods disagree.vercel.appis in the private section of the Public Suffix List, because each customer gets their own subdomain, so by the list the organizational domain isonabr-demo.vercel.appitself, which has no record: no DMARC policy at all. Butvercel.apppublishes a DMARC record withoutpsd=y, so the tree walk makesvercel.appthe organizational domain, and itssp=rejectwith strict alignment now covers every customer subdomain that has no record of its own.
What the tree walk means for your domains
- Records at several levels now interact. Because the record with the fewest labels wins, a DMARC record at
mail.example.comdoes not make that subdomain its own organizational domain whileexample.comhas one too. If a department really needs its own organizational domain (a different policy, its own reports), section 5.1.8 says to addpsd=nto its record. - Watch the suffixes above you. If a public suffix above your domain ever published a DMARC record without
psd=y, tree-walking receivers would treat that suffix as your organizational domain, and relaxed alignment would then accept other domains under the same suffix as yours. Section 11.8 recommends addingpsd=nto your own record as protection in that situation. - Very long names. Because the walk stops at eight queries, a record at a zone cut deep inside a long name can be skipped. If you send from names with more than eight labels, publish a DMARC record at the exact From domain (section 5.1.8).
- Old and new receivers can disagree while both kinds are in use. The RFC’s own answer (appendix C.3): strict alignment plus an explicit DMARC record for every domain you use in From avoids any difference.
Who already publishes psd=y
psd=y is for operators of public suffixes, not for ordinary domains, and some are ready. These are the _dmarc records at a few suffixes on 2 November 2026:
| Suffix | _dmarc record |
|---|---|
.gov | v=DMARC1; p=reject; sp=none; np=reject; rua=mailto:dotgov_dmarc@cisa.dhs.gov; psd=y |
.mil | v=DMARC1; p=reject; sp=none; np=reject; rua=mailto:dmarc_reports@mail.mil; psd=y |
.bank | v=DMARC1; p=reject; sp=none; np=reject; psd=y; rua=mailto:... |
.insurance | v=DMARC1; p=reject; sp=none; np=reject; psd=y; rua=mailto:... |
.com, .net, .org, .io, .uk, .co.uk, .de, .nl, .eu and others | No record |
All four use the same pattern: np=reject blocks mail from names that were never registered, while sp=none leaves each registered domain free to set its own policy. A top-level domain without a record is perfectly fine: the walk simply finds nothing there.
Stronger guidance on p=reject
RFC 7489 presented p=reject as simply the strictest option. Section 7.4 of RFC 9989 is more careful:
- Domains that publish
p=rejectmust not rely on SPF alone and must sign their mail with DKIM. Forwarding breaks SPF but usually leaves DKIM intact, so without DKIM,p=rejectrejects legitimate forwarded mail. - Domains whose users post to mailing lists should not publish
p=reject. Those that want to should first publishp=nonefor at least a month, thenp=quarantinefor as long again, and compare the results in their reports. Appendix C.6 sums it up: domains for general-purpose email should not deployp=reject. - Receivers must not reject a message solely because the sending domain says
p=reject. Without other evidence (sending history, content analysis and the like), they should treat the failure asquarantine.
The RFC is candid that practice is different: it notes that few receivers apply such mitigations, and that mailing list software adapted years ago by rewriting the From header. Gmail, for example, still rejects messages that fail a domain’s reject policy with 550 5.7.26. In practice: for a company whose staff post to mailing lists, make sure the lists you use rewrite From, or keep staff mail on a policy short of reject; for domains that only send transactional and marketing mail to customers, p=reject with DKIM on every message remains the right goal. None of this changes the Gmail, Yahoo and Outlook.com sender requirements, which ask bulk senders for a DMARC record with at least p=none.
What changes in the reports
Aggregate reports (RFC 9990) keep their familiar structure, with some changes:
- The XML is now namespaced:
<feedback xmlns="urn:ietf:params:xml:ns:dmarc-2.0">. Parsers that look up elements by plain name must strip or handle the namespace. policy_publishedcan includenp,testing(yourtvalue) anddiscovery_method, which ispslortreewalk.- A DKIM result must include the selector, and the format now allows extensions.
discovery_method is the practical gift: report by report, it tells you which receivers have already moved to RFC 9989’s tree walk. The report parser in the DMARC lesson already handles the namespace.
Failure reports (RFC 9991) keep the ARF format of RFC 6591, with an Identity-Alignment field that names the mechanisms that failed to produce an aligned pass, and an Auth-Failure: dmarc type. They remain optional, report generators must rate-limit them, and ruf addresses in public suffix records (psd=y) are ignored unless the parties have an agreement. Because they can contain personal data, many large providers still don’t send them.
Check your domains
Two short scripts in Python with dnspython (pip install dnspython) apply the rules from this article to live DNS.
Lint a DMARC record
# dmarc_check.py: check a domain's DMARC record against RFC 9989
import sys
import dns.resolver
def dmarc_records(domain):
try:
answers = dns.resolver.resolve(f"_dmarc.{domain}", "TXT")
except (dns.resolver.NXDOMAIN, dns.resolver.NoAnswer):
return []
records = [b"".join(r.strings).decode() for r in answers]
return [r for r in records if r.replace(" ", "").lower().startswith("v=dmarc1")]
def parse(record):
tags = {}
for part in record.split(";"):
if "=" in part:
key, value = part.split("=", 1)
tags[key.strip().lower()] = value.strip()
return tags
def check(domain):
print(f"== {domain}")
records = dmarc_records(domain)
if not records:
print(" no DMARC record at this name (receivers will walk up the tree)")
return
if len(records) > 1:
print(" !! more than one DMARC record: receivers discard all of them")
return
tags = parse(records[0])
print(f" {records[0]}")
version = records[0].split(";")[0].split("=", 1)
if version[0].strip() != "v" or version[1].strip() != "DMARC1":
print(" !! the record must start with v=DMARC1 (case-sensitive), or it's ignored")
p = tags.get("p")
if p not in ("none", "quarantine", "reject"):
print(" !! no valid p tag: treated as p=none if rua is valid, otherwise ignored")
pct = tags.get("pct")
if pct == "100":
print(" -- pct=100 is the old default, and pct is historic: remove it")
elif pct == "0":
print(" -- pct=0 is now t=y: add t=y (and keep pct=0 while old receivers remain)")
elif pct is not None:
print(f" !! pct={pct}: new receivers ignore it and apply p= to all failing mail")
for tag in ("rf", "ri"):
if tag in tags:
print(f" -- {tag}={tags[tag]} is historic in RFC 9989: remove it")
for tag in ("rua", "ruf"):
if "!" in tags.get(tag, ""):
print(f" -- {tag}: report size limits (!10m) were removed: drop the suffix")
if tags.get("t") == "y":
print(" -- t=y: testing mode, receivers apply one level less than p=")
effective_np = tags.get("np") or tags.get("sp") or p
if effective_np != "reject":
print(f" ++ non-existent subdomains get {effective_np}: consider np=reject")
if p == "reject":
print(" ++ p=reject: RFC 9989 says sign all mail with DKIM, never rely on SPF alone")
for d in sys.argv[1:]:
check(d)
python3 dmarc_check.py microsoft.com ebay.com zoom.us gmail.com
== microsoft.com
v=DMARC1; p=reject; pct=100; rua=mailto:itex-rua@microsoft.com; ruf=mailto:itex-ruf@microsoft.com; fo=1
-- pct=100 is the old default, and pct is historic: remove it
++ p=reject: RFC 9989 says sign all mail with DKIM, never rely on SPF alone
== ebay.com
v=DMARC1; p=reject; rua=mailto:ebay@rua.agari.com; ruf=mailto:ebay@ruf.agari.com; fo=1; rf=afrf; pct=100
-- pct=100 is the old default, and pct is historic: remove it
-- rf=afrf is historic in RFC 9989: remove it
++ p=reject: RFC 9989 says sign all mail with DKIM, never rely on SPF alone
== zoom.us
v=DMARC1;p=reject;ri=3600;rua=mailto:sesbounce@zoom.us,mailto:dmarc_rua@emaildefense.proofpoint.com;
-- ri=3600 is historic in RFC 9989: remove it
++ p=reject: RFC 9989 says sign all mail with DKIM, never rely on SPF alone
== gmail.com
v=DMARC1; p=none; sp=quarantine; rua=mailto:mailauth-reports@google.com
++ non-existent subdomains get quarantine: consider np=reject
-- lines are clean-ups, !! lines change behavior, and ++ lines are worth a thought rather than a fix: the right policy for a consumer domain such as gmail.com is its owner’s call.
Walk the tree like an RFC 9989 receiver
This is the script behind the tree walk examples above. It also computes the organizational domain the RFC 7489 way, from the Public Suffix List, so you can see whether the two methods agree for your domains:
# treewalk.py: find the DMARC policy and Organizational Domain for an Author Domain,
# the RFC 9989 way (DNS tree walk), and compare with the RFC 7489 way (Public Suffix List)
import sys, urllib.request
import dns.flags, dns.name, dns.rdatatype, dns.resolver
def dmarc_record(name):
"""The DMARC record at _dmarc.<name>, or None (several records count as none)."""
try:
answers = dns.resolver.resolve(f"_dmarc.{name}", "TXT")
except (dns.resolver.NXDOMAIN, dns.resolver.NoAnswer):
return None
records = [b"".join(r.strings).decode() for r in answers]
records = [r for r in records if r.replace(" ", "").lower().startswith("v=dmarc1")]
return records[0] if len(records) == 1 else None
def tags(record):
return {k.strip().lower(): v.strip() for k, v in
(part.split("=", 1) for part in record.split(";") if "=" in part)}
def exists(name):
"""RFC 8020: NXDOMAIN means the name does not exist. Zones signed with compact denial
(RFC 9824) answer NOERROR instead and flag the missing name with NXNAME in an NSEC record."""
resolver = dns.resolver.Resolver()
resolver.use_edns(0, dns.flags.DO, 1232) # ask for the DNSSEC records too
try:
answer = resolver.resolve(name, "A", raise_on_no_answer=False)
except dns.resolver.NXDOMAIN:
return False
for rrset in answer.response.authority:
if rrset.rdtype == dns.rdatatype.NSEC and rrset.name == dns.name.from_text(name):
if any("NXNAME" in r.to_text() or "TYPE128" in r.to_text() for r in rrset):
return False
return True
def tree_walk(start):
"""RFC 9989, section 4.10: query _dmarc at the start, then (if it has 8+ labels) jump to the
last 7 labels, then remove one label at a time. Stop at a record with a psd tag."""
labels, found, queries = start.split("."), [], 0
while labels:
name = ".".join(labels)
record = dmarc_record(name)
queries += 1
print(f" query _dmarc.{name:<38} {'-> ' + record[:48] if record else '(none)'}")
if record:
found.append((name, record))
if tags(record).get("psd") in ("y", "n"):
break
labels = labels[-7:] if len(labels) >= 8 else labels[1:]
return found, queries
def org_domain(start, found):
"""RFC 9989, section 4.10.2: choose the Organizational Domain from the records found."""
for name, record in found: # longest name first
psd = tags(record).get("psd")
if psd == "n":
return name
if psd == "y" and name != start:
return ".".join(start.split(".")[-(name.count(".") + 2):])
return found[-1][0] if found else start # the record with the fewest labels
def psl_org_domain(domain, rules):
"""RFC 7489 style: the registered domain according to the Public Suffix List."""
labels = domain.split(".")
suffix = 1
for i in range(len(labels)):
name = ".".join(labels[i:])
if "!" + name in rules:
suffix = len(labels) - i - 1
break
if name in rules or ("*." + ".".join(labels[i + 1:])) in rules:
suffix = max(suffix, len(labels) - i)
return ".".join(labels[-(suffix + 1):]) if len(labels) > suffix else None
PSL = "https://publicsuffix.org/list/public_suffix_list.dat"
rules = {line.split()[0].lower() for line in urllib.request.urlopen(PSL).read().decode().splitlines()
if line.strip() and not line.startswith("//")}
for author in sys.argv[1:]:
print(f"== From: someone@{author}")
found, queries = tree_walk(author)
org = org_domain(author, found)
print(f" {queries} queries; Organizational Domain: {org} (tree walk), "
f"{psl_org_domain(author, rules)} (Public Suffix List)")
policy = next(((n, r) for n, r in found if n == author), None) \
or next(((n, r) for n, r in found if n == org), None) \
or next(((n, r) for n, r in found if tags(r).get("psd") == "y"), None)
if not policy:
print(" no DMARC policy applies")
continue
name, record = policy
t = tags(record)
if name == author:
tag, why = "p", "the From domain's own record"
elif exists(author):
tag, why = ("sp" if "sp" in t else "p"), "a subdomain that exists"
else:
tag, why = next(k for k in ("np", "sp", "p") if k in t), "a domain that does not exist"
print(f" policy: {tag}={t.get(tag)} from _dmarc.{name} ({why})")
Run it with every domain and subdomain you use in From addresses. If the two organizational domains differ for one of yours, decide which answer you want and make it explicit: publish a record at that exact name, add psd=n where a subdomain should stand on its own, or switch to strict alignment.
Your checklist
- Clean up: remove
pct=100,rf,riand size limits on report addresses. There’s no deadline; they’re simply dead weight. pct=0: addt=y, and keeppct=0alongside it for now.pctbetween 1 and 99: decide, knowing that RFC 9989 receivers already apply the full policy.np=reject: consider it, especially whileporspis stillnoneorquarantine. If your DNS provider uses compact denial, makespstrict as well.p=reject: confirm in your aggregate reports that every legitimate source passes with DKIM, not just SPF.- Large organizations: give departments that need their own organizational domain a record with
psd=n, and publish explicit records for From domains with more than eight labels. - Reports: make sure your parser handles the new namespace, and watch
discovery_methodto see receivers move to the tree walk. - If you run receiving mail systems: plan the move to the tree walk, existence checks that understand
NXNAME, and section 7.4’s guidance onp=reject.
FAQ
Do I have to change my DMARC record because of RFC 9989?
No. A valid RFC 7489 record is a valid RFC 9989 record. The only change in the record format that affects behavior is the removal of pct: if you publish a value other than 0 or 100, receivers that follow RFC 9989 apply your policy to all failing mail. The tree walk can also change results for unusual setups, such as DMARC records at several levels of your domain; the treewalk.py script above shows whether yours is one of them.
Is there a DMARC2?
No. Your DNS record stays v=DMARC1. The dmarc-2.0 you may see in RFC 9990 is the name of the XML namespace for aggregate reports, not a new protocol version.
Does pct still work?
With receivers that still implement RFC 7489, yes. Receivers that follow RFC 9989 ignore it. Use t=y for testing; keep pct=0 next to it during the transition if you rely on its old effect.
What is t=y?
Testing mode: receivers apply one level less than your policy (quarantine becomes none, reject becomes quarantine), and intermediaries may rewrite From headers as they did for pct=0. Reporting is unaffected.
Do I need the psd tag?
Usually not. psd=y is for operators of public suffixes such as .gov or .bank. Ordinary domains use psd=n only to make a subdomain its own organizational domain, or to protect themselves if a suffix above them publishes a record without psd=y.
Do Gmail, Microsoft and Yahoo follow RFC 9989 yet?
Large receivers adopt new specifications on their own schedules and rarely announce it. The reliable way to find out is in your aggregate reports: the discovery_method field says treewalk once a receiver uses the new method.
References
- RFC 9989: Domain-Based Message Authentication, Reporting, and Conformance (DMARC)
- RFC 9990: DMARC Aggregate Reporting
- RFC 9991: DMARC Failure Reporting
- RFC 7489: the original DMARC specification (2015)
- RFC 9091: experimental DMARC for public suffix domains (2021)
- RFC 8020: NXDOMAIN, there really is nothing underneath
- RFC 9824: Compact Denial of Existence in DNSSEC
- RFC 7960: Interoperability issues between DMARC and indirect email flows
For the full picture of how SPF, DKIM and DMARC fit together, see the free Email for IT course: the SPF, DKIM and DMARC lessons, and why email goes to spam.