Many domains publish a DMARC record that looks like this and never touch it again:
v=DMARC1; p=none; rua=mailto:dmarc@example.com p=none is a monitoring mode. It asks receiving servers to send you reports, and to do nothing with messages that fail the check. A spoofed message that fails DMARC is delivered like any other. It is a good first step and a bad final state.
This article is the plan I use to move a domain from none to quarantine without losing legitimate email.
What DMARC actually checks
DMARC (RFC 7489) passes a message if at least one of these two checks passes and is aligned with the domain in the visible From: header:
- SPF: the sending server is authorized by the SPF record of the envelope domain (the
Return-Path), and that domain matches theFrom:domain. - DKIM: the message carries a valid signature whose
d=domain matches theFrom:domain.
"Aligned" is the part people miss. A newsletter tool can pass SPF for its own domain and still fail DMARC for yours, because the domains do not match. This is the most common reason a legitimate sender fails when you tighten the policy.
Step 0: read what is published today
dig +short TXT _dmarc.example.com dig +short TXT example.com | grep spf dig +short TXT selector1._domainkey.example.com You want a DMARC record with a rua= address. Without it you are flying blind, and the next steps depend on reports.
Step 1: collect reports for two to four weeks
Aggregate reports (rua) are XML files sent daily by the big receivers. Reading raw XML is painful, so feed them to a parser. Free and open source options exist (for example parsedmarc, which can also send the data to a dashboard), and several vendors offer free tiers. Whatever you pick, the question is the same:
Which sources send mail using my domain, and do they pass SPF or DKIM aligned?
Sort the sources in three groups:
- Yours and expected: your mailbox provider, your website's contact form, your invoicing tool.
- Yours and forgotten: the CRM someone connected two years ago, the helpdesk, the monitoring tool that mails alerts.
- Not yours: spoofing. These are the ones the policy is meant to stop.
Wait long enough to catch monthly senders (invoices, reports). A two-day window misses them.
Step 2: fix the legitimate senders that fail alignment
For each group 1 and 2 source that fails:
- Prefer DKIM alignment. Most email services let you add a CNAME or TXT record so they sign with
d=yourdomain.com. DKIM survives forwarding; SPF usually does not, because forwarding changes the sending IP. - Custom return-path. Some services can use a subdomain such as
bounce.example.comfor the envelope address, which is aligned in relaxed mode (the default). Check the service's documentation for "custom return-path" or "domain authentication". - Mind the SPF limit. SPF allows at most 10 DNS lookups (RFC 7208). Adding one
include:per service hits that limit quickly, and above it SPF returns a permanent error for every message. Count them before you add another.
If a service cannot sign with your domain at all, give it a dedicated subdomain (news.example.com) rather than weakening the main domain.
Step 3: move to quarantine gradually
The original specification (RFC 7489) has a pct tag that applies the policy to a percentage of failing messages:
v=DMARC1; p=quarantine; pct=10; rua=mailto:dmarc@example.com Raise it in steps (10, 25, 50, 100) over a few weeks, reading the reports between each. One caveat: the revised DMARC specification (DMARCbis) drops pct in favour of a simpler testing flag, and receivers differ in how they handle it. Treat it as a soft brake, not a guarantee, and keep reading reports. If you prefer not to rely on it, use the sources table from step 1 as your go/no-go list: every legitimate sender passes aligned, then switch.
Also decide about subdomains. Without sp=, subdomains inherit the policy of the parent. If you have subdomains that send nothing, you can be strict there first:
v=DMARC1; p=quarantine; sp=reject; rua=mailto:dmarc@example.com Step 4: test before and after the change
dig +short TXT _dmarc.example.com # did the new value propagate? Then send a message from each real source to a mailbox you control and open the full headers. Look for Authentication-Results: and check that you see dmarc=pass, plus dkim=pass header.d=example.com or spf=pass with an aligned domain.
Keep the previous record in your notes. A rollback is a one-line DNS edit, though TTL delays apply, so lower the TTL a day ahead if you can.
Step 5: reject, if you can
quarantine sends failing messages to spam, reject refuses them. Once the reports stay clean for a month or two, p=reject is the setting that closes the spoofing door. Some organizations stay on quarantine for years; both are far better than none. Mailing lists and some forwarders break DKIM or SPF in transit, so a small number of legitimate failures can remain. Decide with your reports, not with a rule.
Why you may not have a choice
Large mailbox providers now require authentication from bulk senders. Google's sender guidelines ask for DMARC (a policy of p=none is accepted) for senders above 5,000 messages a day to Gmail addresses, and Microsoft has published similar requirements for high-volume senders. Meeting the minimum is p=none; protecting your brand is a later policy.
Checklist
- [ ] DMARC record exists with
rua= - [ ] Two to four weeks of reports read
- [ ] Every legitimate source passes an aligned SPF or DKIM
- [ ] SPF stays under 10 lookups
- [ ]
quarantinerolled out progressively, then reviewed - [ ] A dated note of the decision and the rollback value
Disclosure: I am part of the team behind AttackScout. If you want to see what the internet sees for your domain (DMARC policy, reporting address, parse errors), there is a free checker, no account needed: https://attackscout.com/en/tools/dmarc-check?utm_source=devto&utm_medium=article&utm_campaign=dmarc-quarantine


