DMARC configuration, one tag at a time
You have SPF and DKIM working. Here is how to build the DMARC record tag by tag, start in monitoring mode, and move to enforcement safely.
DMARC configuration is not a server setting. It is one DNS TXT record you publish at your domain, and the whole job is getting that one line of text right. Google Workspace Help says you set up DMARC by adding a DNS TXT record to your domain. Nothing needs to change in your admin console. The record is a set of tags. Some are required, some you should add anyway, and some only matter in edge cases. Build it one tag at a time and you will finish with a record you can read yourself.
Get SPF and DKIM working first
DMARC does not authenticate anything on its own. It checks whether your mail passed SPF or DKIM, and whether the domain that passed lines up with the domain in the From header. Google Workspace Help says you must turn on SPF or DKIM for your domain before you can use DMARC, and the standard recommends both. If neither is in place, every DMARC check fails, and no policy value will save you.
A message passes DMARC if it passes SPF with alignment or DKIM with alignment. It fails if it fails both. So fix SPF and DKIM first, then publish the record.
The two required tags: v and p
Every record starts with the version tag. The standard requires the v tag, puts it first in the record, and allows only one value: DMARC1. If v is missing, not first, or has the wrong value, the whole record is ignored. There is no second chance at first place.
The p tag is the other required one. Google Workspace Help says it tells the receiving mail server what to do with messages that do not pass authentication. Three values exist:
- p=none takes no action and delivers the message. The standard calls this stating no preference.
- p=quarantine says the domain owner sees the mail as suspicious. Google Workspace Help describes the matching sp value quarantine as marking messages as spam and sending them to the recipient's spam folder.
- With p=reject, the domain owner reads the failure as firm evidence the domain is being used without permission. Google Workspace Help says reject means the receiving server usually sends a bounce.
Leave out the p tag and receivers act as though you had written p=none. Write it in anyway. Silent defaults confuse the next person who reads the record.
Start with p=none and a rua address
Google Workspace Help recommends the p option none for a first record. The standard gives this starting point a name: Monitoring Mode. You are auditing your own mail streams first. Starting at p=none makes sure the earlier SPF and DKIM work covered everything, so you enforce nothing until that audit is clean. Yahoo's guide also strongly recommends a rua tag, properly set up, so you can monitor during initial setup.
The rua tag says where aggregate reports go. The address needs the mailto prefix in front of it, for example rua=mailto:dmarc-feedback@example.com. Google Workspace Help recommends a dedicated mailbox or a group rather than your own address. The reports arrive as machine-generated XML, not as reading material. The standard recommends aggregate reports be machine-parsed, and many third-party services will do that for you.
There is a wrinkle. When reports go to an address outside your domain, the domain holding that address has to add a TXT record giving permission. Otherwise the receiver cannot confirm you want the reports and may not send them.
Alignment: adkim and aspf
Alignment is the part that trips people up. Passing SPF is not enough. The domain that passed must match the domain in the From header, and the alignment tags say how strictly.
The adkim tag sets the DKIM alignment policy. Strict, written adkim=s, requires the sender domain to exactly match the d= domain in the DKIM signature. Relaxed, adkim=r, is the default and accepts any valid subdomain of the d= domain.
The aspf tag works the same way for SPF. Strict, aspf=s, requires the From header domain to exactly match the domain in the SMTP MAIL FROM command. Relaxed, aspf=r, is the default and accepts any valid subdomain.
Which should you use? The standard says nearly all Domain Owners have found relaxed alignment sufficient. Google Workspace Help says relaxed typically provides sufficient spoofing protection, while strict can send mail from your own associated subdomains to spam. Google Workspace Help says to consider strict alignment when mail is sent for your domain from a subdomain outside your control. If you leave both tags out, you get relaxed for each, which is what most domains want.
Subdomains: the sp tag
A record published at your organizational domain also covers its subdomains. The sp tag lets you set a different policy for those subdomains, with the same three values and syntax as p. It covers subdomains only, never the organizational domain itself.
If sp is absent, subdomains inherit the p policy. That inheritance is worth thinking about. If you run p=reject and have a forgotten subdomain that sends legitimate mail, receivers may reject that mail.
What happened to ruf, and the edge-case tags
The ruf tag names where failure reports go, one report per failing message. RFC 9989 still lists it as active, and cites RFC 9991 as DMARC Failure Reporting. But Google Workspace Help says Gmail does not support ruf, so Gmail will not send them. Do not build your monitoring around it. The fo tag sets the conditions that trigger a failure report, but with no ruf tag in the record it has nothing to act on. Receivers must ignore it.
Three more tags cover edge cases. The np tag sets a policy for subdomains that do not exist at all. Without np, non-existent subdomains fall back to sp or p. The t tag marks test mode. The value t=y asks that failing mail get a policy one level below the stated one. The default, t=n, applies the stated policy. The psd tag is for public suffix operators declaring a node in their DNS subtree as an organizational domain. A record from one must include psd=y.
Older guides mention pct, rf, and ri. RFC 7489 listed all three: pct for sampling rate, rf for failure report formats, and ri for the aggregate report interval. RFC 9989, which obsoletes RFC 7489, does not include them among the tags it lists as active. A record written to the current standard leaves them out. Unknown tags must be ignored, so an old record with pct in it does not break anything. Just do not add them to a new one.
Publishing the record
The record goes at the host _dmarc followed by your domain name, so _dmarc.example.com for example.com. Steps vary by domain host, and Google Workspace Help warns that some hosts automatically append the domain name. If your host does that and you typed the full name, you get _dmarc.example.com.example.com, which no receiver will find. Check the finished record after publishing and verify the host name reads correctly.
Every domain gets its own policy and its own report settings. Sending from several domains means repeating the setup for each. Yahoo strongly urges a DMARC policy for every domain that sends mail. A domain that sends nothing can still publish a record with p=reject.
Reading reports and moving to enforcement
RFC 9990 defines the aggregate report format. Each report lists where mail claiming to be from your domain actually came from. Parse them with a service or your own tooling and look for two things: mail streams that fail DMARC, and who is sending them. Failures are either spoofing, which you want blocked, or legitimate mail that lacks aligned identifiers, which you need to fix before enforcement. The standard is blunt on this point: shortcomings in legitimate streams must be fixed before you publish an enforcement policy.
When the reports show your real mail passing, move p to quarantine first, watch the reports again, then move to reject. Quarantine is the safety net: a mistake lands mail in spam folders, not in the void. Once quarantine or reject applies to the domain and all its subdomains, you are at enforcement. Then your domain and its subdomains can only be used by mail that passes.
A DMARC pass does not guarantee inbox placement, and a failed message does not automatically mean spam. DMARC is commonly one input to a receiver's filtering, and Gmail asks for other things too, like the one-click unsubscribe headers. It can only combat exact-domain spoofing directly. Publish the record, watch the reports, tighten the policy, and the configuration is done.
Sources
Filed