Short answer: publish a TXT record at _dmarc with v=DMARC1; p=none; rua=mailto:dmarc-reports@example.com, read the reports for at least a month, and only then consider a stricter policy.
Reviewed
Symptom
You were told to “set up DMARC”, or a checker or the Health Report says your domain has no DMARC record, or that the policy is “none”. You do not want to publish something that blocks your own order emails.
Why it happens
DMARC is a DNS record that tells receiving mail servers two things: what to do with mail that claims to be from your domain but fails authentication, and where to send reports about it. It builds on SPF and DKIM. It adds one idea, alignment: the domain in the visible From address must match the domain that SPF or DKIM checked.
- A message passes DMARC if the SPF check or the DKIM check passes and is aligned. It fails only if both fail (Microsoft’s documentation).
- Relaxed alignment is the default: the domains need the same organizational domain, so
bounces.example.comaligns withexample.com. Strict needs an exact match. Relaxed is the default for both the SPF and the DKIM check. - The policy,
p=, has three values: none (you ask for no particular action, used to monitor), quarantine (treat failing mail as suspicious) and reject (you consider failing mail not valid for your domain). What the receiver does with them is up to the receiver.
The records in this guide use only the tags v, p and rua, which both the current DMARC standard and the older one it replaced define.
Fix
Start by watching, not blocking.
- Make sure SPF and DKIM work first. DMARC only passes when at least one of them passes and aligns. Check your mail service’s setup for both. See SPF too many DNS lookups.
- Pick a mailbox for reports. Use a dedicated address, for example
dmarc-reports@example.com, not a person’s inbox: reports arrive as machine-readable attachments, often daily from each receiver, and nobody needs them in their regular mail. If this address is on a different domain than the one you are protecting, that other domain must publish a TXT record that allows it. For reports about example.com going todmarc-reports@example.net, the owner of example.net publishes a TXT record atexample.com._report._dmarc.example.netwith the valuev=DMARC1;(Microsoft’s documentation describes this). - Publish the starter record. At your DNS host, add a record with type
TXT, host (name)_dmarcand valuev=DMARC1; p=none; rua=mailto:dmarc-reports@example.com. Some DNS hosts want the full name_dmarc.example.comin the host field instead, and some add your domain for you, so check what your host shows for other records.v=DMARC1must come first. If you already have a DMARC record, edit it: only one_dmarcrecord may exist. - Read the reports for at least a month. Receivers that support reporting send a summary (usually once a day, as a compressed XML attachment) to the
ruaaddress. Look for sending sources you recognize that fail alignment: for example, a newsletter tool that signs with its own domain. Fix each by setting up a custom DKIM signature or return-path domain with your domain in that service. Unknown sources that fail are probably spoofing, and that is what DMARC is for. - Move to quarantine. The DMARC standard says a domain that wants to publish reject should first publish
p=nonefor at least a month, thenp=quarantinefor an equally long period, and compare the results. Change the record tov=DMARC1; p=quarantine; rua=mailto:dmarc-reports@example.com. - Move to reject only when it is clean. Once the reports show that all your real mail passes, change it to
v=DMARC1; p=reject; rua=mailto:dmarc-reports@example.com. Be careful if people at your domain post to mailing lists or you use forwarding: the standard warns that reject can break such mail, and advises domains whose users post to mailing lists not to publish reject. For many stores, staying at quarantine is a sensible place to stop.
Good to know
- About
pct. Microsoft’s documentation shows usingpct=(10, 25, 50, 75, 100) to apply a policy to only part of your failing mail while you test. The current DMARC standard removespctand replaces part of it with at=ytesting tag, so how a given receiver treatspctcan differ. Don’t rely on it as your only safety net; the monitoring steps above are. - Subdomains. A DMARC record on your main domain also covers subdomains that have no record of their own. Each subdomain that sends mail still needs its own working SPF and DKIM.
Check it worked
- Look the record up:
dig +short TXT _dmarc.example.com. You should see exactly one record starting withv=DMARC1. - Send a test email to a mailbox at a large provider and read the headers for
dmarc=pass. - After a day or two, the first aggregate report should arrive at your reports address.
- After each policy change, watch your order emails for a few days (test orders, and real ones) before the next step.
How the plugin helps
Email Health Check & Log for WooCommerce checks whether a DMARC record exists for the domain your site sends from, and says so when the policy is none (monitoring only). When the record is missing, its “How to fix this” panel shows the starter record v=DMARC1; p=none; with the host to use. It does not read your DMARC reports, does not test alignment, and does not change your DNS, so use your reports and a header check for those. Get the plugin on WordPress.org.
Sources
- RFC 9989: DMARC (obsoletes RFC 7489): section 4.7 for the relaxed alignment defaults, section 7.4 for the staged rollout and the mailing-list warning, appendix A.6 for
pctand thettag - Microsoft Learn: set up DMARC