DMARC

What Is DMARC? How Email Authentication Fits Together

DMARC is a DNS record that ties SPF and DKIM to the domain in the visible From address, states what receivers should do with mail that fails, and requests reports. This guide covers alignment, the record syntax, policies, reporting and what happens when a domain has no record.

By MailConfig.pro TeamPublished 10 min read

On this page
  1. How SPF, DKIM and DMARC fit together
  2. What alignment means
  3. The anatomy of a DMARC record
  4. The three policies
  5. How a receiver finds your policy
  6. Reporting: rua and ruf
  7. What happens when a domain has no DMARC record
  8. What DMARC does not do
  9. A safe order of work
  10. What changed from RFC 7489

DMARC (Domain-based Message Authentication, Reporting, and Conformance) is a policy you publish in DNS for your domain. It tells receiving mail servers to check whether the domain in the visible From address of a message is backed by SPF or DKIM, states what you would like done with messages that fail, and asks receivers to send you reports about mail that uses your domain. The policy is a request: the final handling of any message is up to the receiver.

How SPF, DKIM and DMARC fit together

Each mechanism answers a different question.

  • SPF (RFC 7208) lets a domain list the servers that may send mail for it. The receiver checks the connecting IP address against the SPF record of the domain used in the SMTP MAIL FROM command (the envelope sender, or return path).
  • DKIM (RFC 6376) lets a sender sign a message. The signature names a signing domain in its d= tag and a selector in s=, and the receiver fetches the public key from a TXT record at the selector name under _domainkey in the signing domain (for example s1._domainkey.example.com).
  • DMARC connects those two checks to the domain people actually see. A message passes DMARC when SPF or DKIM passes and the domain that passed is aligned with the domain in the From header.

Without DMARC, neither SPF nor DKIM says anything about the From address. A message can pass SPF for bounces.example.net and carry a valid DKIM signature from example.net while showing ceo@example.com as the sender. The visible From domain is the one end users read, which is why DMARC anchors on it (RFC 9989, section 4.2).

What alignment means

Alignment is the extra requirement DMARC adds. Both SPF and DKIM identify a domain, and DMARC asks whether that domain matches the From domain:

  • Relaxed alignment (the default): the two domains share the same Organizational Domain. That is the domain at the top of the namespace hierarchy that is under the same administrative authority (RFC 9989, section 3.2.14). Receivers find it with the DNS tree walk described below.
  • Strict alignment: the two domains must be identical.

RFC 9989 illustrates this with three cases (section 4.4, Table 1): an authenticated identifier of foo.example.com aligns in relaxed mode with an author domain of news.example.com, because both belong to example.com. news.example.com against news.example.com is an exact (strict) match. foo.example.net against news.example.com does not align at all.

Two details trip people up:

  • For SPF, DMARC uses only the MAIL FROM domain, not the HELO name (RFC 9989, section 4.4.2). If a third-party service sends your mail with its own bounce domain, SPF can pass for that service's domain and still fail alignment with yours.
  • DMARC passes if any one aligned identifier passes. A message with several DKIM signatures passes if any valid signature aligns with the From domain (section 4.4.1). So one aligned DKIM signature is enough even when SPF does not align.

You choose the mode per mechanism with aspf and adkim. Both default to relaxed, and the specification notes that nearly all domain owners find relaxed alignment sufficient.

The anatomy of a DMARC record

A DMARC policy record is a TXT record at _dmarc. followed by the domain. If the receiver finds the TXT data split into several strings, it joins them before parsing.

TXT_dmarc.example.com
v=DMARC1; p=none; rua=mailto:dmarc-reports@example.com

Tags are separated by semicolons. v=DMARC1 must come first, and if it does not, the whole record is ignored. Unknown tags are ignored. The tags defined in RFC 9989 are:

  • p: the policy for the domain: none, quarantine or reject. Under RFC 9989 the tag is recommended rather than required. If a record has no valid p but does have a valid rua, receivers act as if it said p=none; without a valid rua, no DMARC processing applies (section 4.10.1). RFC 7489 called p mandatory, with a similar fallback.
  • sp: the policy for existing subdomains. If absent, p applies to them.
  • np: the policy for subdomains that do not exist (NXDOMAIN). If absent, sp is used, and if that is absent too, p. This tag was added in RFC 9989.
  • rua: where to send aggregate reports, as a comma-separated list of URIs. Receivers that send reports must support mailto:.
  • ruf: where to send per-message failure reports.
  • adkim and aspf: r (relaxed, the default) or s (strict).
  • fo: which failure reports to request. It only has an effect when ruf is present.
  • t: a test-mode flag, y or n (the default), added in RFC 9989.
  • psd: a flag for the tree walk. y marks a public suffix domain, and n marks a record as the Organizational Domain for itself and its subdomains. The default is u (unknown). Most domain owners never set it, though large organizations that delegate DNS can use psd=n (section 5.1.8).

Records you may still see in older guides use pct, rf and ri. RFC 9989 removed all three; the IANA registry now lists pct as historic. The DMARC generator on this site builds a record from a policy you choose and shows the validation findings.

The three policies

p=none asks receivers not to change how they handle failing mail. It is the monitoring mode, and receivers must not alter existing handling because of it (RFC 9989, section 5.4). p=quarantine says failing mail is suspicious; receivers commonly place it in spam. p=reject says a failure is a clear sign the use of the domain is not valid. Moving from none to reject safely is its own topic.

How a receiver finds your policy

The receiver takes the domain in the From header and queries TXT at _dmarc. plus that domain (for example.com, _dmarc.example.com). If it finds exactly one valid record there, that is the policy. If it finds none, it performs a "DNS tree walk": it queries parent names, removing the left-most label each time, until it finds a record that settles the question or runs out of labels (RFC 9989, sections 4.10 and 4.10.1). A walk makes at most eight queries, however many labels the name has. For mail from news.example.com, with no record at _dmarc.news.example.com, the receiver looks at _dmarc.example.com. The same walk decides which domain is the Organizational Domain for relaxed alignment (section 4.10.2).

Two consequences follow:

  • A record at _dmarc.example.com also covers mail from subdomains that publish no record of their own. For those subdomains, sp (or np for non-existent ones) overrides p.
  • Multiple DMARC records at the same name are all discarded. Publish exactly one.

Under the older RFC 7489, discovery tried the From domain and then the Organizational Domain determined from the Public Suffix List. RFC 9989 replaced that with the tree walk. A receiver that still uses the Public Suffix List can reach a different answer for an unusual namespace. RFC 9989 says that publishing explicit records for every author domain you use, together with strict alignment, avoids the problem (Appendix C.3).

Reporting: rua and ruf

DMARC's reporting side is what lets you see your own mail streams.

Aggregate reports (rua) are XML summaries from the receivers that support them. RFC 9989 says receivers should send them at least every 24 hours (section 5.3.8). Each report lists source IP addresses, message counts, the From domain, the SPF and DKIM results with the domains involved, and the disposition applied. The format is defined in RFC 9990 (section 3.1). Reading them by hand is possible but tedious, which is why they are usually machine-parsed.

Failure reports (ruf) describe individual messages that failed (format in RFC 9991). They can contain content from real messages, so many receivers redact them heavily or do not send them at all (RFC 9989, section 5.3.9). RFC 9989 also notes that ruf addresses may receive private data and are more attractive targets than rua addresses (section 11.6). Do not rely on failure reports for your monitoring.

If a report address is outside the Organizational Domain of the policy, for example rua=mailto:reports@example.net in the record for example.com, receivers verify that the other domain agreed to receive them. The destination publishes a TXT record at example.com._report._dmarc.example.net that starts with v=DMARC1. Without it, the receiver must ignore that address (RFC 9990, section 4). A destination that accepts reports for any domain can publish a wildcard record instead.

TXTexample.com._report._dmarc.example.net
v=DMARC1

If you use a hosted DMARC service, it normally handles that record on its side. Turning raw aggregate data into something readable is what DMARC monitoring is for, and it depends on reports actually arriving from receivers.

What happens when a domain has no DMARC record

If the lookup finds no DMARC record at the From domain or its parents, receivers must not apply the DMARC mechanism to the message (RFC 9989, section 4.10.1). Concretely:

  • You have expressed no policy, so nobody is asked to treat mail that fails SPF and DKIM alignment any differently.
  • You receive no aggregate reports, because receivers only generate them when rua is present.
  • A third party can put your domain in the From header without any DMARC signal to the receiver. Receivers may still catch it with other filters, but you have given them no domain-specific instruction.

A domain that sends no email at all can also publish a record: p=reject is defined as the owner's statement that failing use of the domain is not valid. Mailbox providers also publish their own requirements for bulk senders, separate from the DMARC standard. Check the provider's own pages for the current rules; the article on Gmail, Yahoo and Outlook sender requirements lists them with sources.

What DMARC does not do

  • It does not validate the local part of an address or judge whether a message is wanted. A DMARC pass only says the domain use was authorized (RFC 9989, sections 4.1 and 5.4).
  • It does not survive every mail flow. Forwarded mail commonly fails SPF because it arrives from the forwarder's IP address. This is why RFC 9989 says domains that publish p=reject must not rely solely on SPF and must DKIM-sign their mail, and that domains whose users post to mailing lists should not publish p=reject (section 7.4).
  • It is not a guarantee of inbox placement. Receivers may deliver a failing message despite p=reject, and may reject a passing one.

A safe order of work

RFC 9989, section 5.1, describes the steps for a domain owner (5.1.1 to 5.1.7). In practice:

  1. List every system that sends mail with your domain: your mail platform, marketing and transactional services, CRM, ticketing, invoicing, anything using a From address on your domain.
  2. Make each one produce an aligned SPF or DKIM pass. Check your SPF record and each sender's DKIM selector with the SPF checker and DKIM inspector; if SPF returns a permerror, see the causes of SPF PermError.
  3. Create a mailbox or address for aggregate reports.
  4. Publish p=none with a rua address, as in the example above.
  5. Read reports (see identifying unknown senders) for long enough to cover your sending cycles, including monthly and quarterly mailers. RFC 9989 notes this can take many months for some domains (section 5.1.7). Fix every legitimate stream that fails.
  6. Only then consider quarantine and reject. The specification says legitimate failures must be fixed before enforcing (section 5.1.6).

What changed from RFC 7489

DMARC was published as an informational RFC in March 2015 (RFC 7489). RFC 9989, published in May 2026 on the Standards Track, obsoletes it, and RFCs 9990 and 9991 split out aggregate and failure reporting. Guides written before this still describe the older rules. The differences that matter in daily use: the tree walk replaces the Public Suffix List lookup, np and psd are new, t replaces part of the job of pct, and pct, rf and ri are gone. Existing records stay valid, because unknown tags are ignored and p, rua, sp, adkim and aspf are unchanged. The catch is pct: a receiver that implements only RFC 9989 ignores it, so a record such as p=quarantine; pct=25 may be applied to all failing mail there.

Frequently asked questions

Does DMARC stop spam?

No. DMARC only checks whether the domain in the visible From address is authorized by SPF or DKIM with alignment. A message can pass DMARC and still be unwanted, and receivers may filter it for other reasons (RFC 9989, section 5.4).

Do I need both SPF and DKIM for DMARC?

DMARC passes when at least one of them passes with an aligned domain. The specification recommends using both, because each one breaks in situations the other survives, such as forwarding.

Is p=none useful?

Yes, as a first step. It does not change how receivers handle your mail, but together with a rua address it produces the aggregate reports you need to find every legitimate sender before you enforce.

References

dmarcspfdkimalignmentemail authentication

DMARC

DMARC p=none vs quarantine vs reject: Rolling Out Enforcement

p=none asks for no change in handling and gives you reports, p=quarantine asks receivers to treat failing mail as suspicious, and p=reject asks them to refuse it. This guide covers when each fits, a staged rollout, what happened to pct, and the risks from forwarding and mailing lists.

· 9 min read

SPF

SPF PermError: "Too Many DNS Lookups" and Other Causes

SPF returns permerror when a receiver cannot interpret your record. The usual cause is more than 10 DNS-querying terms, but extra void lookups, two SPF records, a syntax error or an include with no SPF record do the same. This guide shows how lookups are counted and gives corrected records.

· 8 min read

DMARC

How to Identify Unknown Senders in DMARC Aggregate Reports

A step-by-step method for the unfamiliar IP addresses in your DMARC aggregate reports: which XML fields matter, how to map an IP to a service with PTR, RDAP and ASN, how to separate legitimate senders from spoofing, and how to fix SPF and DKIM alignment.

· 7 min read

Best practices

Gmail, Yahoo and Outlook Sender Requirements: What Your Domain Needs

A checklist of what Gmail, Yahoo and Outlook.com each require from your sending domain, taken from the providers' own pages and dated November 2026: who counts as a bulk sender, the authentication minimums, one-click unsubscribe, spam-rate limits, PTR and TLS.

· 8 min read