DMARC Record: Syntax, Tag-Value Structure, and Copy-Paste Examples

A DMARC record is a single line of semicolon-separated text published as a DNS TXT record at _dmarc.<yourdomain> that controls how mail servers handle unauthenticated email. Receiving servers read its tag-value pairs (v=DMARC1, p=, rua=) during delivery. The syntax of a DMARC record defines your enforcement policy, alignment strictness, and report destination.

Message arrives From: your domain SPF pass? DKIM pass? Aligned? domain match yes ACCEPT no p= POLICY p=none delivers anyway · p=quarantine to spam · p=reject drops the message
The DMARC decision tree showing policy application

What Does a DMARC Record Look Like in DNS? (Host, Type, and Tag-Value Anatomy)

A published DMARC record serves as the technical mechanism that makes the visible Header From (From:) address trustworthy to human recipients. Structurally, the record consists of 4 DNS zone fields (Type, Host, TTL, and Value) where the Value string contains semicolon-separated tag=value pairs beginning with v=DMARC1 and p=.

In an authoritative DNS zone file or cloud management dashboard, a complete DMARC entry is formatted with these parameters:

Host / Name:  _dmarc
Record Type:  TXT
TTL:          3600 (1 hour)
Value:        v=DMARC1; p=quarantine; sp=reject; adkim=r; aspf=r; rua=mailto:dmarc@example.com;

The record functions through 4 distinct structural components:

  1. DNS Hostname (_dmarc): Every DMARC policy lives at the dedicated subdomain prefix _dmarc (resolving globally to _dmarc.example.com). Most managed DNS providers (such as Cloudflare, GoDaddy, and Namecheap) automatically append your root domain, meaning administrators enter only _dmarc in the Host input field.
  2. Record Type (TXT): DMARC relies on a standard TXT Record containing plain ASCII characters without requiring proprietary protocol headers.
  3. Version and Policy Sequence (v=DMARC1; p=...): Every compliant record starts with the uppercase version identifier v=DMARC1, followed immediately by the mandatory domain policy tag p= (set to none, quarantine, or reject).
  4. Optional Modifier Tags (rua=, sp=, adkim=, aspf=, pct=): Additional tag-value pairs configure aggregate XML report delivery, separate subdomain policies, cryptographic alignment modes, and gradual percentage rollouts.

Domain administrators configure only one DMARC record at _dmarc; publishing multiple v=DMARC1 strings causes receiving mail servers to treat DMARC as invalid and discard all policy instructions. Detailed protocol background is available in DMARC, and live host verification can be performed with the DMARC Record Checker.

What Do the 11 DMARC Record Tags Mean? (Syntax Reference Table)

A DMARC record supports 11 standard tags: 2 mandatory tags (v and p) and 9 optional tags that control policy enforcement, identifier alignment, and failure reporting. The table below defines each DMARC tag with its required order, default value when omitted, and valid syntax.

TagTag NameRequired?Default (If Omitted)Valid Syntax & Values
vProtocol VersionRequired (1st)Nonev=DMARC1 (Uppercase and placed first)
pDomain PolicyRequired (2nd for RFC 7489)Nonep=none, p=quarantine, or p=reject
ruaAggregate Report URIRecommendedNone (No reports sent)rua=mailto:dmarc@example.com (Comma-separated for multiple)
spSubdomain PolicyOptionalInherits p= valuesp=none, sp=quarantine, or sp=reject
adkimDKIM Alignment ModeOptionalr (Relaxed)adkim=r (Organizational domain match) or adkim=s (Exact match)
aspfSPF Alignment ModeOptionalr (Relaxed)aspf=r (Organizational domain match) or aspf=s (Exact match)
pctEnforcement PercentageOptional100 (100% of mail)Whole integer from pct=0 to pct=100
rufForensic Report URIOptionalNoneruf=mailto:forensics@example.com (Ignored by Gmail, Microsoft, and Yahoo)
foFailure Report TriggerOptional0 (Both SPF and DKIM fail)fo=0, fo=1 (Either fails), fo=d (DKIM fails), fo=s (SPF fails)
riReporting IntervalOptional86400 (24 hours)Seconds between aggregate reports (such as ri=86400 or ri=3600)
rfReport FormatOptionalafrfrf=afrf (Authentication Failure Reporting Format)

Two practical syntax rules govern reporting tags in production: first, to deliver aggregate XML reports to multiple monitoring endpoints (such as an internal security mailbox and an automated reporting platform), separate each destination with a comma inside a single RUA tag (such as rua=mailto:postmaster@example.com,mailto:reports@promptdns.com). Second, administrators can attach an optional file size limitation suffix (such as !10m for 10 megabytes) to prevent large XML attachments from bouncing (for example, rua=mailto:dmarc@example.com!10m). Advanced modifier interactions are documented in DMARC Tags Explained, DMARC sp Tag, and DMARC pct Tag.

8 Copy-Paste DMARC Record Examples for Every Use Case

There are 8 standard DMARC record configurations that cover every deployment stage from initial p=none monitoring to full p=reject enforcement and parked-domain lockdown.

Administrators can deploy these production-ready record templates directly into their DNS zone, replacing example.com with their actual domain name:

  1. Example 1: Basic Monitoring Mode (Day-1 Starter Record and Bulk-Sender Baseline)
    v=DMARC1; p=none; rua=mailto:dmarc-reports@example.com;

    Collects daily XML aggregate reports without modifying message delivery or routing mail to spam folders. Satisfies baseline Gmail, Yahoo, and Microsoft bulk-sender authentication requirements while you catalog third-party senders.

  2. Example 2: Phased Quarantine Rollout (Testing Enforcement on 25% of Failing Mail)
    v=DMARC1; p=quarantine; pct=25; rua=mailto:dmarc-reports@example.com;

    Routes 25% of unauthenticated messages to the recipient spam folder while delivering the remaining 75% to the inbox, confirming that legitimate marketing or transactional streams are not accidentally disrupted before raising pct to 100.

  3. Example 3: Full Quarantine Enforcement (100% Spam-Folder Routing)
    v=DMARC1; p=quarantine; pct=100; rua=mailto:dmarc-reports@example.com;

    Directs mailbox providers to quarantine 100% of messages failing both SPF and DKIM alignment into spam folders. Satisfies the minimum policy enforcement threshold required for BIMI certified logo display.

  4. Example 4: Full Reject Enforcement (Maximum Anti-Spoofing and BEC Defense)
    v=DMARC1; p=reject; rua=mailto:dmarc-reports@example.com;

    Instructs receiving mail servers to reject unauthenticated emails outright during the initial SMTP handshake with status code 550 5.7.26, preventing spoofed phishing messages from ever entering recipient mailboxes.

  5. Example 5: Main Domain Monitoring with Strict Subdomain Lockdown (sp=reject)
    v=DMARC1; p=none; sp=reject; rua=mailto:dmarc-reports@example.com;

    Maintains safe p=none observation on your primary domain while enforcing an immediate sp=reject policy across all subdomains (such as promo.example.com or nonexistent wildcards) to eliminate subdomain spoofing.

  6. Example 6: Dual-Destination Reporting (Internal Mailbox and External Analysis Service)
    v=DMARC1; p=reject; sp=reject; rua=mailto:postmaster@example.com,mailto:reports@promptdns.com;

    Delivers aggregate XML reports simultaneously to an internal corporate archive mailbox and an automated parsing and alerting dashboard through a single comma-separated rua= tag.

  7. Example 7: High-Security Strict Alignment Record (Financial, Healthcare, and PCI-DSS)
    v=DMARC1; p=reject; sp=reject; adkim=s; aspf=s; rua=mailto:dmarc-reports@example.com;

    Enforces strict (s) cryptographic alignment across both SPF Record and DKIM Explained, requiring envelope domains to match the visible From: domain exactly without permitting subdomain delegation.

  8. Example 8: Parked or Non-Sending Domain Record (Zero Outbound Email Allowed)
    v=DMARC1; p=reject; sp=reject; adkim=s; aspf=s;

    Defends dormant, brand-protection, or web-only domains that never transmit email. Paired with a null SPF record (v=spf1 -all), this record tells all mail servers worldwide to reject any message claiming to originate from the domain.

Custom record strings can be synthesized using the DMARC Record Generator, and policy migration benchmarks are detailed in DMARC Policies and From p=none to p=reject: The DMARC Enforcement Roadmap.

How Do SPF and DKIM Domains Align in a DMARC Record? (Alignment Scenario Matrix)

A message passes a DMARC record check only when at least one authentication protocol (SPF or DKIM) both passes its underlying verification and aligns its domain with the visible From: address. The table below illustrates 4 real-world alignment scenarios for From: billing@example.com under relaxed (r) and strict (s) settings.

Visible From domainSPF / DKIM domainRelaxed alignmentStrict alignment
example.comexample.com (either protocol)PASSPASS
example.commail.example.comPASS (org domain matches)FAIL (not exact)
example.comesp-customer.netFAILFAIL
billing.example.combilling.example.comPASSPASS

Understanding these matrix outcomes reveals the core mechanics of identifier alignment: in Row 2, an email with a visible From: example.com using an envelope Return-Path of bounce@mail.example.com succeeds under relaxed SPF alignment (aspf=r) because both share the same Organizational Domain (example.com). However, Row 3 fails under both modes because third-party provider domains (such as esp-customer.net) share no organizational relationship with the sender. In forwarded email environments where intermediate relays alter the client IP address (causing SPF to fail), Row 4 confirms that a cryptographic DKIM signature matching the From: domain satisfies DMARC requirements, ensuring delivery without interruption. Comprehensive alignment modes are explored in DMARC Alignment.

What Are the 7 Most Common DMARC Record Syntax Errors?

There are 7 common syntax and DNS configuration mistakes that cause receiving mail servers to treat a published DMARC record as invalid or ignore it completely.

Administrators auditing non-functioning records should evaluate these 7 diagnostic failure points:

  1. Publishing Multiple _dmarc TXT Records: Creating a second TXT record at _dmarc instead of editing the existing string causes receiving mail servers to find multiple v=DMARC1 entries, resulting in complete policy invalidation.
  2. Omitting the mailto: Prefix in rua= or ruf= Tags: Entering rua=dmarc@example.com without the protocol prefix causes DNS parser errors; all report destinations specify mailto:dmarc@example.com.
  3. Placing p= Before v=DMARC1 or Using Lowercase v=dmarc1: The version identifier is case-sensitive and appears as the first tag in the record string; writing p=reject; v=DMARC1 or v=dmarc1 prevents parsers from recognizing the entry.
  4. Doubling the Domain Name in the DNS Host Field (_dmarc.example.com.example.com): Typing the full domain into a control panel that automatically appends the zone publishes the record at _dmarc.example.com.example.com, leaving the legitimate _dmarc.example.com empty.
  5. Missing Semicolons or Using Typographic Curly Quotes: Omitting the semicolon delimiter between tags (such as v=DMARC1 p=none) or copying formatted curly quotes from text editors corrupts plain ASCII DNS record parsing.
  6. Sending Reports to an External Domain Without External Authorization: Directing reports to a third-party domain (such as rua=mailto:reports@externalvendor.com) fails unless the receiving domain publishes an authorizing verification record at example.com._report._dmarc.externalvendor.com.
  7. Enforcing p=reject Before Authenticating All Legitimate Sending Sources: Escalating policies to p=quarantine or p=reject before aligning transactional gateways, CRM platforms, and marketing tools causes receivers to block genuine corporate correspondence.

Systematic XML report processing prevents misconfigurations and is explained in DMARC Report Analyzer and DMARC Aggregate Reports (RUA).

How Do You Add a DMARC Record to Your Domain's DNS? (5 Steps)

To add a DMARC record to your domain without disrupting legitimate email delivery, follow 5 sequential preparation, DNS publication, and verification steps.

Domain administrators execute deployment through these coordinated operations:

  1. Verify that valid SPF Record (v=spf1) and DKIM Explained (_domainkey) records have been actively signing outbound email for at least 48 hours prior to DMARC publication, preventing false rejections caused by DNS propagation latency across global resolvers.
  2. Generate an initial monitoring record (v=DMARC1; p=none; rua=mailto:dmarc-reports@example.com;) using the DMARC Record Generator, directing reports to a dedicated mailbox or DMARC Monitoring service.
  3. Open the DNS zone editor within your authoritative DNS provider dashboard (such as Cloudflare, AWS Route 53, GoDaddy, or Namecheap) and click Add Record.
  4. Publish a new TXT record configured with Host/Name set to _dmarc, TTL set to 3600 seconds (1 hour), and Value containing your validated DMARC string.
  5. Validate the live deployment using the DMARC Record Checker to confirm correct tag-value syntax, verify single-record status, and inspect reporting readiness, as outlined in How to Create a DMARC Record.

Maintaining a secure email infrastructure requires continuous vigilance over your DMARC record, its _dmarc DNS TXT record publication, and strict adherence to v=DMARC1 tag-value syntax. As organizations transition from p=none monitoring to full p=reject policy enforcement, verifying that SPF and DKIM achieve reliable identifier alignment guarantees that authentic business emails reach user inboxes while protecting domain reputation against spoofing and phishing attacks. Analyzing daily rua= aggregate reports ensures newly added cloud services remain authenticated and aligned before strict policies block unauthorized mail streams.

Frequently asked questions

Can a domain have more than one DMARC record?+

No, a domain only publishes one DMARC TXT record at _dmarc. If you publish two or more v=DMARC1 records on the same hostname, receiving mail servers ignore DMARC completely. To send reports to multiple addresses, separate them with a comma inside a single rua= tag.

Where do I add a DMARC record: at my domain registrar or my email host?+

You always publish your DMARC TXT record at your authoritative DNS provider (the company whose nameservers your domain points to, such as Cloudflare, Route 53, or Namecheap), which is separate from your email inbox provider.

Do I need quotes around my DMARC record value in DNS?+

Most modern web-based DNS control panels (including Cloudflare, GoDaddy, and Namecheap) add quotation marks automatically, so you paste the raw string starting with v=DMARC1. Only wrap the value in straight double quotes if you are editing a raw BIND zone file. In practice, the most common formatting mistake administrators make is pasting outer quotes into web control panels, which results in doubled quotation marks that break parser evaluation.

What is the best DMARC record to start with?+

Start with v=DMARC1; p=none; rua=mailto:dmarc-reports@yourdomain.com; on active email domains. This monitoring record satisfies Gmail, Yahoo, and Microsoft bulk-sender rules immediately without blocking any legitimate emails while you review daily XML reports. In real-world enterprise rollouts, we recommend operating at p=none for 2 to 4 weeks to identify all legitimate third-party sending services before advancing toward quarantine or reject enforcement.

Last verified: 2026-11-11