DMARC
DMARC (Domain-based Message Authentication, Reporting, and Conformance) lets the owner of the domain in a message's From header publish a DNS record that ties that domain to aligned SPF or DKIM results, states how to handle failures, and asks for reports. RFC 9989, published by the IETF in May 2026, defines it with RFC 9990 (aggregate reporting) and RFC 9991 (failure reporting); together they obsolete RFC 7489 and RFC 9091. With this skill the agent writes and reviews DMARC records, plans the rollout to enforcement, implements receiver evaluation, and produces or parses reports.
Follow the workflow below step by step. Every rule here comes from a source in Sources, with the section it cites. Bare section numbers are RFC 9989. When a rule and the pinned source disagree, the source wins; when the source has a newer revision than the pin, follow the refresh steps.
Inputs (fill in, or ask before starting)
- Role: Domain Owner (publishes records for its domains), PSO (publishes for a public suffix), Mail Receiver (evaluates and reports), or Report Consumer (receives and parses reports).
- Target version: RFC 9989 with RFC 9990 and RFC 9991 (default). RFC 7489 and RFC 9091 are legacy: read records and implementations written for them and upgrade, never author against them. No preview exists. See
references/versions.md. - Revision: the pinned revision in Sources, unless the user names another.
- Sources: when refreshing this skill or when a rule looks out of date, re-read every URL in Sources first, search the RFC Editor index for DMARC RFCs that update or obsolete RFC 9989, RFC 9990 or RFC 9991, check their errata, check the IANA DMARC registry for new tags, and update the pins.
- Domains: the Author Domains in use, their Organizational Domain, and any delegated subtrees or names with more than eight labels.
- Mail streams: every system and third party that sends as the domain, with its MAIL FROM domain and DKIM
d=. - Users: whether people at the domain post to mailing lists or rely on forwarding. This decides whether
p=rejectis appropriate. - Reporting: who receives aggregate reports, whether failure reports are wanted, and whether any destination is outside the domain.
Invariants
- Record location and version. The record is a TXT record at
_dmarc.<domain>, andv=DMARC1(case-sensitive) is the first tag, or the record is ignored (§ 4.5, § 4.7). Multiple strings are concatenated (§ 4.5); several DMARC records at one name are all discarded (§ 4.10). - Tolerant parsing. Unknown tags MUST be ignored and syntax errors fall back to defaults (§ 4.7, § 4.8). Without a valid
p, a record with a validruais treated asp=none; otherwise no DMARC processing (§ 4.10.1). - Pass means aligned. A message passes only if SPF (MAIL FROM identity only) or DKIM (
d=of a valid signature) passes for an identifier aligned with the Author Domain (§ 3.2.4, § 4.4, § 5.3.5). - Alignment uses the DNS Tree Walk. Strict is identical domains; relaxed is the same Organizational Domain, found by the tree walk of at most eight queries, not a Public Suffix List (§ 3.2.10, § 4.10, § 4.10.2).
- Historic tags are not published.
pct,rfandriare historic; uset=ywherepct=0was used (§ A.6, § C.5.2, § 9.3). - PSO records carry
psd=y(§ 5.2), and multi-organizational PSDs MUST NOT publishruf(§ 10.2). - No request, no report. Receivers MUST NOT send aggregate reports without
ruaor failure reports withoutruf, and MUST supportmailto:if they send them (§ 4.7). - External destinations are verified through a
v=DMARC1TXT record at<policy domain>._report._dmarc.<destination host>; unverified URIs MUST be ignored (RFC 9990 § 4, RFC 9991 § 5). - Fix before enforcing. Legitimate unaligned streams MUST be fixed before an Enforcement policy is published (§ 5.1.6). A domain at
p=rejectMUST NOT rely solely on SPF and MUST DKIM-sign (§ 7.4, § 8). - Receivers do not reject on policy alone. They MUST NOT reject solely because of
p=reject, and without other evidence MUST treat such failures asp=quarantine(§ 7.4, § 8). A discoveredp=noneMUST NOT change existing handling (§ 5.4). - Reports are well-formed and authenticated. Aggregate reports follow the RFC 9990 XML schema with one DMARC Policy Domain per report, and their mail stream MUST pass DMARC (RFC 9990 § 3.1, § 3.5.2). Failure report generators MUST rate-limit (RFC 9991 § 2).
Workflow
- Pick the version. Use RFC 9989 with RFC 9990 and RFC 9991. If a record has
pct,rforri, or code uses a Public Suffix List, plan the upgrade (step 9). ->references/versions.md✓ The target is RFC 9989, and no legacy-only tag or algorithm is introduced. - Inventory and align the mail streams (Domain Owner). For each stream, set an aligned MAIL FROM domain for SPF and an aligned DKIM
d=(§ 5.1.1, § 5.1.2). ->references/rollout.md✓ Every stream is listed with both identifiers and their alignment with the Author Domain. - Set up reporting. Create the aggregate report mailbox and parser; for a third-party Report Consumer, have it publish the
_report._dmarcauthorization record (RFC 9990 § 4). Request failure reports only for targeted diagnostics (RFC 9991 § 7). ->references/reporting.md✓ Everyruaandrufdestination is inside the domain or has a verified authorization record. - Write the record in Monitoring Mode. Publish
p=nonewithruaat each Author Domain and the Organizational Domain (§ 5.1.4); addsp,np,psdor alignment modes only when needed. ->references/record-and-tags.md✓ Exactly one record per name, it matches the § 4.8 ABNF, andv=DMARC1comes first. - Analyse and remediate. Read aggregate reports until every legitimate source passes with alignment (§ 5.1.5, § 5.1.6).
->
references/reporting.md,references/rollout.md✓ No legitimate source fails DMARC in the reports. - Move to Enforcement (only when asked). Step through quarantine, using
t=yto test each level, before anyreject; decide onrejectagainst § 7.4. ->references/rollout.md✓ Each stage held until reports were clean;p=rejectonly with aligned DKIM on all mail and the mailing-list impact considered. - Evaluate at a receiver (Mail Receiver). Extract the Author Domain, discover the policy with the tree walk, collect SPF and DKIM results, check alignment, decide, and apply local policy informed by the assessment policy.
->
references/alignment-and-tree-walk.md✓ The tree walk issues at most eight queries; § B.4 examples give the expected Organizational Domains;p=rejectalone never causes a rejection. - Generate or consume reports. Build RFC 9990 aggregate reports (and RFC 9991 failure reports if offered), or parse them defensively.
->
references/reporting.md✓ Reports validate against RFC 9990 Appendix A, use the required filename and Subject, and the parser survives malformed or compressed-bomb input. - Upgrade (only when asked). Follow the RFC 7489 or RFC 9091 to RFC 9989 steps: replace
pctwitht, droprf,riand URI size limits, switch PSL lookups to the tree walk, addpsd=yfor PSDs, and move reports to the RFC 9990 schema. ->references/versions.md✓ The record parses under RFC 9989 with the same intended policy, and Organizational Domains resolve as intended under the tree walk.
Verify before done
- Each
_dmarcname has exactly one record, starting withv=DMARC1, that matches the RFC 9989 § 4.8 ABNF. - No
pct,rf,rior!sizeURI suffix in any record (§ 4.8, § C.5.2). - Every sending stream produces at least one aligned pass, and preferably both SPF and DKIM (§ 5.1, § 8).
- Any
p=rejectdomain DKIM-signs all mail with an alignedd=, and its users' mailing-list use has been considered (§ 7.4). - PSO records have
psd=y; multi-organizational PSD records have noruf(§ 5.2, § 10.2). - External
ruaandrufhosts publish<domain>._report._dmarcauthorization records (RFC 9990 § 4, RFC 9991 § 5). - Author Domains with more than eight labels have their own record (§ 5.1.8).
- Receiver code caps the tree walk at eight queries, ignores unknown tags, and never rejects on
p=rejectalone (§ 4.10, § 4.7, § 7.4). - Aggregate reports validate against RFC 9990 Appendix A with namespace
urn:ietf:params:xml:ns:dmarc-2.0.
Reference index
references/versions.md: RFC 9989, RFC 7489 and RFC 9091 with their status, what DMARCbis changed, and upgrade steps for records, receivers and report consumers. Load for steps 1 and 9.references/record-and-tags.md: record location, ABNF, every tag with defaults,tandfosemantics, historic tags, who publishes what, examples and common mistakes. Load for step 4.references/alignment-and-tree-walk.md: identifiers, strict and relaxed alignment, the DNS Tree Walk, policy discovery, Organizational Domain selection, receiver evaluation, enforcement and security. Load for step 7.references/reporting.md: external destination verification, the aggregate report XML structure and delivery rules, failure reports, and privacy. Load for steps 3, 5 and 8.references/rollout.md: Monitoring Mode to Enforcement, the policy ladder witht=y, whenp=rejectfits, subdomains and delegated zones. Load for steps 2, 5 and 6.
Related skills
spffor publishing and evaluating the SPF records DMARC aligns with:npx skills add ScaleDockHQ/scaledock-skills --skill spf.dkimfor signing with an alignedd=and verifying signatures:npx skills add ScaleDockHQ/scaledock-skills --skill dkim.list-unsubscribefor the unsubscribe headers on bulk and list mail:npx skills add ScaleDockHQ/scaledock-skills --skill list-unsubscribe.
Sources
Status uses the publishing body's own maturity term. Checked is the date the source was last read.
- RFC 9989: Domain-Based Message Authentication, Reporting, and Conformance (DMARC): RFC (Proposed Standard), RFC 9989 (May 2026), two verified editorial errata, checked 2026-10-05.
- RFC 9990: DMARC Aggregate Reporting: RFC (Proposed Standard), RFC 9990 (May 2026), checked 2026-10-05.
- RFC 9991: DMARC Failure Reporting: RFC (Proposed Standard), RFC 9991 (May 2026), checked 2026-10-05.
- RFC 7489: Domain-based Message Authentication, Reporting, and Conformance (DMARC): RFC (Informational, obsoleted by RFC 9989, RFC 9990 and RFC 9991), RFC 7489 (March 2015), checked 2026-10-05.
- RFC 9091: Experimental DMARC Extension for Public Suffix Domains: RFC (Experimental, obsoleted by RFC 9989), RFC 9091 (July 2021), checked 2026-10-05.
- RFC 9989 errata: RFC Editor errata, errata IDs 9025 and 9150 (verified), checked 2026-10-05.
- IANA DMARC parameters registry: IANA registry, last updated 2026-05-22, checked 2026-10-05.
- IETF dmarc WG documents: IETF Datatracker, WG active, checked 2026-10-05.
- RFC Editor index: RFC Editor, index searched for DMARC, checked 2026-10-05.