DMARC RFC 9989: Core Protocol, DNS Tree Walk and Migration

· Published · 18 min read

DMARC RFC 9989 flow from the RFC 5322 From domain through DNS Tree Walk and aligned SPF or DKIM to pass or fail, with current and historic tags

RFC 9989 is the current DMARC core protocol. Published in May 2026, it obsoletes RFC 7489 and RFC 9091, replaces Public Suffix List policy discovery with a bounded DNS Tree Walk, defines current policy tags, and separates aggregate and failure reporting into RFC 9990 and RFC 9991. This is an implementation guide for domain owners, receiver engineers, ESPs, MTA operators and anyone who must explain why one message passed, failed or was not evaluated.

What RFC 9989 owns, and what it does not

RFC 9989 owns the core evaluation: Author Domain identification, SPF and DKIM alignment, DNS policy discovery, record grammar, policy selection and the result supplied to receiver handling. It no longer carries the complete reporting formats. Aggregate XML generation and consumption belong to RFC 9990. Message-specific failure reporting belongs to RFC 9991.

This separation matters in software architecture. A receiver can upgrade policy discovery without replacing its aggregate parser in the same release. A report processor can accept RFC 9990 extensions without changing the message-time authentication result. Keep versioned tests and rollback for each layer.

Start with the exact identity DMARC evaluates

DMARC inputIdentity evaluatedWhat can satisfy DMARCCommon mistake
Author DomainThe domain in the single RFC 5322 From fieldAt least one aligned authenticated identifierUsing Return-Path or Sender as the DMARC author identity.
SPFThe RFC 5321 MAIL FROM domainSPF pass plus alignment with the Author DomainUsing HELO for DMARC alignment when MAIL FROM is present.
DKIMThe d= domain of each valid DKIM signatureAny one passing signature whose d= alignsRequiring every DKIM signature to pass or align.
PolicyThe applicable exact, Organizational Domain or PSD recordConsulted only when authentication and alignment produce DMARC failTreating p=reject as an authentication mechanism.
Receiver dispositionLocal receiver policy after the DMARC resultReceiver chooses final handlingAssuming pass guarantees inbox or reject compels rejection.

The Author Domain comes from precisely one syntactically valid RFC 5322 From field. A message with no usable From domain, multiple From fields or an unsupported multi-address construction is outside normal DMARC evaluation. Do not silently select the first mailbox and call the result standards compliant.

SPF contributes the MAIL FROM identity. HELO can be evaluated by SPF when the reverse path is empty, but DMARC alignment is defined around the RFC 5321 MAIL FROM domain. DKIM can contribute several signatures. DMARC needs one passing, aligned d= identity, not unanimity across signatures.

The core pass and fail decision

INPUT
  one RFC 5322 From Author Domain
  SPF result for RFC 5321 MAIL FROM
  all DKIM verification results and d= domains

AUTHENTICATION AND ALIGNMENT
  spf_aligned  = SPF passed AND MAIL FROM aligns with Author Domain
  dkim_aligned = any DKIM signature passed AND its d= aligns with Author Domain

  if spf_aligned OR dkim_aligned:
      DMARC = pass
  else:
      DMARC = fail

POLICY
  discover applicable DMARC record with RFC 9989 DNS Tree Walk
  if no applicable record:
      DMARC does not apply
  if DMARC fails and policy exists:
      determine p, sp or np according to exact/inherited/existence scope
      apply t=y step-down when requested
      receiver makes its own final disposition

Alignment is a domain relationship test layered on top of authentication. An SPF pass for bounces.esp.example does not satisfy DMARC for brand.example unless the selected alignment mode says those identifiers align. A DKIM pass for an unaligned vendor domain has the same limitation.

Relaxed alignment compares Organizational Domains discovered under the current model. Strict alignment requires exact domains. Therefore DNS Tree Walk affects more than policy lookup. It can affect the boundary used when comparing the Author Domain with a passing SPF or DKIM identifier.

DMARC result is not the final delivery verdict

A DMARC pass says that at least one authenticated identifier aligned. It does not say the recipient requested the message, the source has good reputation, the content is safe, the message belongs in the inbox, or the receiver must accept it. Spam, phishing, malware, complaint, rate and local policy systems still operate.

A DMARC failure also does not mechanically dictate one result. The discovered policy is a domain-owner request. Receivers retain local discretion and may accept a failing message, particularly when forwarding or a mailing list provides credible context. The RFC cautions that general-purpose email domains should not deploy reject without understanding indirect flows, and receivers should not reject solely because a record says p=reject.

Record syntax and candidate selection

A DMARC policy is a DNS TXT record under _dmarc. The v=DMARC1 tag must be first, and its value is case-sensitive. Tags are separated by semicolons. Unknown tags are ignored so future extensions do not invalidate an otherwise usable record.

At one query name, a receiver discards records that do not identify the current DMARC version. If more than one current DMARC record remains, all DMARC candidates at that target are discarded. Publishing two records for staged rollout is not valid. Combine the tags into one logical record; DNS may split that logical value into character strings for transport.

A syntactically valid record without p has special handling

If p is absent but a valid rua request is present, the record is processed as if p=none. This supports monitoring records. If both usable p and usable rua are absent, the record does not cause DMARC processing. Parsers must not invent p=reject, inherit an unrelated parent value, or report a pass.

Operationally, publish p explicitly. It makes reviews, change control and third-party tooling less ambiguous even where the protocol defines the missing-tag case.

Current RFC 9989 policy tags

TagAllowed values or formDefault or fallbackOperational meaning
vDMARC1Required and first; value is case-sensitiveIdentifies the record as the current DMARC version.
pnone, quarantine, rejectNo universal defaultRequested disposition for the publishing domain and inherited cases.
spnone, quarantine, rejectFalls back to pRequested policy for an existing subdomain when policy is inherited.
npnone, quarantine, rejectFalls back to sp, then pRequested policy for a nonexistent subdomain when policy is inherited.
adkimr or srRelaxed or strict DKIM identifier alignment.
aspfr or srRelaxed or strict SPF identifier alignment.
psdy, n or uuDeclares PSD status, Organizational Domain boundary, or unspecified status.
ty or nnWhen y, asks validators to step a requested quarantine or reject policy down one level.
ruaComma-separated mailto URIsAbsentRequests aggregate reports under RFC 9990.
rufComma-separated mailto URIsAbsentRequests failure reports under RFC 9991; receivers may decline.
fo0, 1, d, s joined with colons0; ignored without rufSelects conditions under which failure reports are requested.

Failure-report requests can expose message-specific data and are not guaranteed. A receiver may decline ruf for privacy, security or operational reasons. Aggregate reporting is also a request, not a command. The core authentication result must remain correct even if no reports arrive.

pct, ri and rf are historic tags

RFC 7489-era elementRFC 9989 treatmentRequired operator action
Public Suffix List policy discoveryReplaced by bounded DNS Tree WalkTest policy-domain and alignment results with a current implementation.
pctHistoric and removedRemove percentage enforcement assumptions; use controlled traffic rollout outside the record.
pct=0 testing patternReplaced by t=y semanticsUnderstand that t=y steps quarantine or reject down one policy level.
riHistoric and removed from the core recordTreat aggregate report timing according to RFC 9990 and receiver behavior.
rfHistoric and removed from the core recordImplement failure report format and privacy under RFC 9991.
Report URI size suffix such as !10mObsolete and ignoredDo not depend on it to control report delivery or parser resource use.
Combined core and reporting specificationSplit across RFC 9989, RFC 9990 and RFC 9991Version core evaluation and both reporting pipelines independently.

The removal of pct is not permission to move every source directly from monitoring to rejection. Percentage rollout belongs in the sender or receiver change system where traffic cohorts, domains, streams and rollback thresholds can be measured. DNS policy should express the intended policy, not pretend to be a deployment controller.

What t=y actually changes

t=y asks a validator to reduce the requested policy by one level: reject becomes quarantine, and quarantine becomes none. A requested none policy remains none. The tag does not reduce the DMARC result from fail to pass, and it does not disable reporting.

Testing therefore needs two values in logs: the published requested policy and the effective requested policy after the step-down. If a dashboard stores only “none,” the operator cannot tell whether the owner published p=none or published p=quarantine; t=y.

DNS Tree Walk replaces Public Suffix List discovery

1. Query TXT at _dmarc.<exact Author Domain>.
2. At one target, ignore records that are not the current DMARC version.
3. If more than one current DMARC record remains, discard all candidates at that target.
4. If one valid record is found, retain it as the best candidate.
5. If it contains psd=y or psd=n, stop at the declared boundary.
6. Otherwise continue upward using the bounded DNS Tree Walk.
7. For very deep names, shorten the parent-walk starting point after the exact query.
8. Never exceed the RFC's bounded set of eight relevant DMARC queries.
9. Select Author Domain, Organizational Domain, or PSD policy in that priority order.

The exact Author Domain query always happens. That protects a deep active name from being skipped. After it, the bounded walk prevents an attacker from forcing unbounded DNS work with an extremely deep From domain. Implementations must test the exact query and the shortened parent-walk start independently.

Do not implement the walk as “query until the top-level domain” without limits and stop conditions. Retain every qname, response code, candidate count, parsed psd value and stop reason. Otherwise a later dispute cannot distinguish record absence, ambiguity, boundary selection or resolver failure.

psd identifies a namespace boundary, not a disposition

psd=y says the publisher is a Public Suffix Domain. It is intended for an authorized Public Suffix Operator, not an ordinary company protecting its own domain. psd=n says the publisher is not a PSD and identifies an Organizational Domain boundary. Omission means psd=u, an unspecified state.

The selected PSD boundary determines the Organizational Domain immediately below it. Two registrants under one suffix do not align merely because they share that suffix. That is the security property the boundary must preserve.

How p, sp and np are selected

Discovery resultDomain conditionPolicy tagReason
Valid record at the exact Author DomainExisting or nonexistent is irrelevant for exact publicationpThe domain explicitly published its own policy.
Record inherited from a parentAuthor Domain existssp, otherwise psp is the parent record's subdomain policy.
Record inherited from a parentAuthor Domain is NXDOMAINnp, otherwise sp, otherwise pnp distinguishes abuse through nonexistent descendants.
Record discovered on a subdomain during the walkRecord does not establish a higher organizational boundaryp/sp/np according to applicable scope; psd marker handling still controls the walkA record found during discovery is not automatically a PSD record.
No applicable valid recordAnyNoneDMARC does not apply. Absence is not DMARC pass.
DNS temporary errorTimeout, SERVFAIL or equivalentNo DMARC pass or fail is produced from unavailable policyReceiver may defer or apply local handling; temporary failure is not NXDOMAIN.

sp applies only when a policy record is inherited for an existing subdomain. It does not override p on the exact publishing domain. np applies only to an inherited policy for a nonexistent subdomain. Its fallback is deliberately ordered: np, then sp, then p.

RFC 9989 uses NXDOMAIN semantics for nonexistence. NODATA for one record type is not the same thing. A name can lack A records and still exist through MX, TXT or another node. SERVFAIL and timeout are temporary errors, never proof of nonexistence.

Policy record examples with their limits

# Monitoring while inventory is incomplete.
_dmarc.example.com. IN TXT "v=DMARC1; p=none; rua=mailto:[email protected]"

# Quarantine requested, but validators are asked to test one level lower.
# Effective requested disposition while t=y is none.
_dmarc.example.com. IN TXT "v=DMARC1; p=quarantine; t=y; rua=mailto:[email protected]"

# Organizational boundary with separate existing and nonexistent subdomain policy.
_dmarc.example.com. IN TXT "v=DMARC1; p=reject; sp=quarantine; np=reject; psd=n; rua=mailto:[email protected]"

# Public Suffix Operator example. A normal domain owner must not copy psd=y.
_dmarc.bank.example. IN TXT "v=DMARC1; p=reject; sp=reject; np=reject; psd=y"

These are teaching records, not universal copy-and-paste answers. Reporting addresses need capacity, privacy controls and, when external to the policy domain, authorization under the reporting specification. Enforcement needs source inventory and evidence from real indirect flows.

A defensible sender migration sequence

  1. Inventory every visible From domain. Include subdomains, regional brands, customer-configured identities and dormant streams that may resume.
  2. Map all authentication paths. Record MAIL FROM domains, DKIM d= domains and selectors by ESP, application, MTA and forwarding path.
  3. Publish one valid monitoring record. Use explicit p=none and a controlled aggregate destination. Fix duplicate or malformed records first.
  4. Collect a complete business window. Include billing cycles, infrequent alerts, support systems, delegated vendors and seasonal traffic.
  5. Remediate alignment. Prefer durable aligned DKIM for forwarded paths and aligned MAIL FROM where the platform supports it.
  6. Investigate unknown sources. Distinguish abuse from a forgotten legitimate sender before blocking it.
  7. Choose subdomain scope deliberately. Decide whether sp and np should differ from p.
  8. Test the current Tree Walk. Compare selected policy and Organizational Domain with any older PSL-based implementation.
  9. Stage enforcement operationally. Use bounded domains or traffic cohorts, not historic pct.
  10. Define rollback before change. Roll back policy only for evidenced legitimate failure, while keeping the authentication repair active.

Receiver implementation requirements

function evaluate_dmarc(message, smtp_session): result
    author = parse_single_from_domain(message)
    if author is absent, malformed, or multiple:
        return out_of_scope("From is not a single valid mailbox domain")

    policy = tree_walk(author)
    if policy.dns_error:
        return temporary_or_local_handling(policy.error)
    if policy.absent:
        return not_applied("no applicable DMARC record")

    spf_ok  = spf_pass_for_mailfrom(smtp_session) and aligns(mailfrom, author, policy.aspf)
    dkim_ok = any(signature.pass and aligns(signature.d, author, policy.adkim))

    if spf_ok or dkim_ok:
        return pass_with_evidence(spf_ok, dkim_ok, policy)

    requested = select_p_sp_np(policy, author.existence, policy.discovery_scope)
    effective = step_down_if_testing(requested, policy.t)
    return fail_with_requested_policy(effective, receiver_local_disposition())

The receiver should preserve the result and the evidence used to reach it: Author Domain, record domain, discovery method, alignment modes, SPF identity, every relevant DKIM identity, policy requested, test step-down and local disposition. Reducing all of that to one green or red badge makes protocol defects difficult to reproduce.

When policy retrieval fails temporarily, a receiver can defer with a 4xx response or use another local strategy. It must not manufacture a permanent DMARC fail from missing DNS evidence. When rejecting, rejection during SMTP is preferable to accepting and later generating a backscatter message. A response such as 550 5.7.1 Email rejected per DMARC policy for example.com gives the sender an actionable domain while avoiding message-content disclosure.

Early SPF rejection can hide traffic from DMARC reports

An MTA can reject at MAIL FROM or RCPT time because of SPF or local policy before it receives DATA. At that point it has not seen the RFC 5322 From field, so it cannot perform the complete DMARC evaluation or include that message in ordinary DMARC aggregate reporting. This is why a sender must reconcile SMTP logs with aggregate reports instead of treating the reports as a complete count of all attempts.

The clean design is to record the SMTP-stage rejection separately. If the receiver wants DMARC-informed handling, it needs the message headers and therefore must reach the relevant stage without creating unsafe backscatter behavior.

Manual DNS inspection

# Exact Author Domain policy.
dig +dnssec TXT _dmarc.mail.sales.example.com

# Candidate parent records used during discovery.
dig +dnssec TXT _dmarc.sales.example.com
dig +dnssec TXT _dmarc.example.com
dig +dnssec TXT _dmarc.com

# Determine whether the Author Domain itself is NXDOMAIN.
dig +dnssec A mail.sales.example.com

# Preserve the resolver, UTC retrieval time, status/rcode, authority section,
# complete TXT strings and AD bit where DNSSEC validation is relevant.

These commands inspect evidence; they are not a complete DMARC validator. A correct tool must join TXT character strings, filter versions, handle duplicates, enforce query bounds, determine boundaries, classify NXDOMAIN correctly, parse tags and evaluate alignment. Use the NitWings DMARC analyzer for a structured result, then retain raw DNS evidence for important changes.

Mixed receiver implementations are expected

Publication of an RFC does not update every mailbox provider, gateway and library at once. A receiver using RFC 7489 PSL logic may select a different Organizational Domain or parent policy from a receiver using RFC 9989 Tree Walk. DNS caches and resolver policy can add short-lived differences even between current implementations.

During migration, compare the selected policy domain and alignment boundary, not only the final pass or fail. An unchanged result can conceal a different algorithm that will diverge on another subdomain.

Forwarders and mailing lists remain the difficult path

Forwarding normally changes the connecting IP and breaks the original SPF path. A mailing list can also modify the subject, footer or MIME structure and break DKIM. If neither remaining identity aligns, DMARC fails even when the message began legitimately.

ARC can preserve authenticated custody evidence, but ARC validation is not automatic trust. The final receiver decides whether to trust a sealer. Domain owners should test important indirect paths before enforcement, and intermediaries should minimize destructive changes rather than rely on every receiver to override DMARC.

Troubleshoot from protocol evidence

SymptomLikely protocol causeEvidence to collectCorrect response
Record exists but receiver says no policyWrong owner name, multiple DMARC records, invalid version placement or syntaxTXT answer at every queried _dmarc namePublish one valid record with v=DMARC1 first.
SPF passes but DMARC failsMAIL FROM domain does not align with visible FromSPF smtp.mailfrom and header.from resultsAlign the bounce domain or rely on aligned DKIM.
DKIM passes but DMARC failsPassing d= is outside the permitted alignment boundaryAll DKIM d= values, results and Author DomainSign with an aligned domain and verify the exact signature result.
Unexpected parent policy appliesNo exact record or Tree Walk selected a parent boundaryComplete discovery trace including psd valuesPublish an exact record or correct the authoritative boundary record.
Nonexistent cousin domain gets wrong policyNXDOMAIN was confused with NODATA or np fallback is wrongRcode and selected np/sp/p valueUse NXDOMAIN semantics and np, then sp, then p fallback.
Some receivers disagreeMixed PSL and Tree Walk implementations or cached DNSReceiver-specific Authentication-Results and DNS timestampsCompare receivers; do not make a global change from one sample.
Reports miss SPF-rejected trafficMessage rejected before DATA, before RFC 5322 From was availableMTA stage, reply and message acceptance logsDo not treat aggregate report absence as proof the traffic did not exist.
Forwarded or list mail failsSPF path changed and DKIM was broken by modificationARC chain, original/final authentication and message diffPreserve DKIM where possible; evaluate trusted ARC and intermediary design.

Evidence and allowed conclusions

EvidenceWhat it provesWhat it does not proveRetain
DNS query traceNames queried, answers, errors and selected record at one timeThat every receiver selected the same recordResolver, UTC time, qname, rcode, answer, TTL and DNSSEC state if available.
Authentication-ResultsWhat the receiving administrative domain reported for that messageUniversal provider behavior or future placementFull trusted header, authserv-id, method, property, result and reason.
Aggregate reportReceiver-observed source/authentication counts under RFC 9990Individual recipient placement or engagementReporter, policy published, source, count, disposition and identifiers.
SMTP replyHow one transaction was accepted, deferred or rejectedThe exact DMARC algorithm unless the reply states itEnhanced status, text, recipient domain, queue ID, timestamp and retry outcome.
Controlled mailbox sampleFinal headers and visible placement for a controlled recipientPortfolio-wide behaviorRaw source, folder, client, account type and capture time.

Acceptance tests for a current implementation

  • The exact Author Domain is queried before any parent.
  • A valid exact record wins over an inherited record.
  • Two current records at one target are not merged.
  • Unknown tags are ignored without corrupting known tags.
  • v=DMARC1 is first and matched case-sensitively.
  • A record without p but with valid rua behaves as p=none.
  • A record without usable p or rua does not activate processing.
  • SPF alignment uses MAIL FROM, not an unrelated HELO result.
  • Any one passing aligned DKIM signature can satisfy DMARC.
  • Relaxed and strict alignment produce the expected boundaries.
  • The walk stops correctly on psd=y and psd=n.
  • A deep Author Domain stays within the eight-query bound.
  • NXDOMAIN, NODATA, SERVFAIL and timeout remain distinct.
  • Existing inherited subdomains use sp, while nonexistent inherited subdomains use np.
  • t=y steps reject to quarantine and quarantine to none without changing fail to pass.
  • Historic pct, rf and ri do not drive current core behavior.
  • No discovered policy is reported as not applied, not pass.
  • Requested policy and final local disposition are recorded separately.

Rollback and incident response

Before increasing policy, record the previous TXT value, DNS provider change ID, TTL, authorized approver and a rollback value. A rollback lowers requested policy while the team repairs the legitimate authentication path. It must not restore an unauthorized source or erase forensic evidence.

Trigger rollback from evidence such as a material rise in legitimate DMARC-related rejections tied to a named stream, not from a general engagement change. Preserve raw headers, SMTP responses, DNS answers and report rows before TTL expiry or vendor retention removes them.

What to monitor after deployment

  • Aligned DKIM and SPF pass rates by Author Domain, stream and provider.
  • Policy-domain and discovery-method changes after DNS updates.
  • Unknown sources, new selectors and new MAIL FROM domains.
  • DMARC-related SMTP rejects and deferrals by enhanced status code.
  • Forwarder and mailing-list failures with ARC and header evidence.
  • Aggregate report completeness, duplicates, late arrivals and parser errors.
  • DNS NXDOMAIN, SERVFAIL and timeout rates for policy queries.
  • Legitimate traffic affected by sp, np, psd or t behavior.

Security and privacy boundaries

DMARC DNS records are public. Report destinations receive security telemetry and may receive data about sources, identifiers and message failures. Restrict access, validate external authorization, minimize retention and treat compressed XML or failure-report content as untrusted input.

Do not expose recipient addresses, full message bodies or report archives in broad dashboards. Protect authoritative DNS and change credentials because a policy record can affect a large domain population. DNSSEC can authenticate DNS data where deployed, but it cannot prove that the operational policy is wise.

Current standards status

As reviewed on November 18, 2026, RFC 9989 is the Standards Track DMARC core protocol and obsoletes RFC 7489 and RFC 9091. RFC 9990 defines aggregate reporting. RFC 9991 defines failure reporting. Implementations and operating procedures should name which member of that family they support rather than claiming generic “DMARC compliance.”

Primary standards references

Related technical notes

Technical review

Need this checked against your own sending system?

Share the domain, headers, bounces, provider warning, logs, or infrastructure symptom and NitWings will identify the practical next step.

Schedule a Technical Review
Advertisement