Before you start
DMARC builds on SPF and DKIM, so it helps to know what those do. If the terms are new, read SPF, DKIM and DMARC explained first. The short version: a message passes DMARC when SPF or DKIM passes for the same domain as the visible From address. Everything in this guide is about making sure all of your real email does that, before you tell the world to reject anything that doesn't.
You'll need:
- Access to your domain's DNS (at your registrar, Cloudflare, your web host or your email provider).
- Admin access to your email platform, such as Microsoft 365 or Google Workspace.
- A list of other systems that send email, or the patience to discover them from reports.
Plan on roughly four to eight weeks from the first record to p=reject for a typical organization. Most of that is waiting for reports, not work.
Where do you stand now? Check your domain's current DMARC record.
Open the DMARC checkerStep 1: list everything that sends as your domain
This is the step that decides whether the rollout goes smoothly. Anything that sends email with your domain in the From address needs to pass SPF or DKIM, and it's easy to forget the less obvious ones. Go through this list and write down each system that applies:
| Category | Examples |
|---|---|
| Mailboxes | Microsoft 365, Google Workspace, Zoho, an on-premises Exchange server |
| Marketing | Newsletter and campaign tools, event invitations, survey tools |
| Transactional | Password resets, order confirmations and notifications from your app or website, often via an email API service |
| Business systems | CRM, helpdesk and ticketing, invoicing and accounting, HR and payroll, e-signature |
| Website | Contact forms and WordPress plugins sending from the web server |
| Devices | Scanners, printers and monitoring systems that send alerts |
| Partners | Agencies or outsourced services that send "as" you |
Don't worry about getting it perfect. Step 4 will reveal anything you missed. But the more you find now, the shorter the monitoring phase.
Step 2: get SPF right
Your domain needs exactly one SPF record listing the systems that send with your domain as the envelope sender. Run the SPF checker and look for:
- Exactly one record. If you have two
v=spf1records, merge them. - 10 DNS lookups or fewer. Above 10, SPF fails for every message. See fixing too many DNS lookups.
- An ending of
~allor-all. Never+all. - Your main mail platform included, for example
include:spf.protection.outlook.comfor Microsoft 365 orinclude:_spf.google.comfor Google Workspace.
You don't need to add every service to SPF. Many services send with their own envelope domain (their bounce address), so adding them to your SPF record achieves nothing for DMARC. For those, DKIM is what matters. Add an include only when the service tells you to set a custom bounce or return-path domain on your own domain.
Step 3: set up DKIM for every sender
DKIM is the more reliable half of DMARC: it survives forwarding and works for services that send on your behalf. For each system from step 1:
- Find its "domain authentication", "custom DKIM" or "sender authentication" setting. Most services have one.
- Publish the records it gives you, usually two or three CNAME records named something like
s1._domainkey. - Turn signing on in the service. Some do this automatically once the records are found; Microsoft 365 needs you to enable it per domain.
- Send a test message to yourself and open its headers in the header analyzer. You want DKIM: pass with your domain as the signer, and aligned with the From domain.
Until you set up DKIM for your own domain, Microsoft 365 and Google Workspace don't sign your mail with your domain's own key. Any default signature belongs to a Microsoft or Google domain instead. Neither counts for DMARC. Our Microsoft 365 and Google Workspace guides cover the fix. This is the most common gap, so check it first.
Step 4: publish DMARC in monitoring mode
Now publish your first record, with p=none so nothing changes for your mail, and an address for aggregate reports:
Name: _dmarc
Type: TXT
Value: v=DMARC1; p=none; rua=mailto:[email protected]
The DMARC generator builds this for you and warns about common mistakes. A few decisions to make now:
- Where reports go. Reports arrive as zipped XML files, one per receiver per day, and they add up quickly. A dedicated mailbox works for small domains. Larger organizations usually use a DMARC reporting service, which gives you an address for
rua=and turns the reports into dashboards. Our guide to reading DMARC reports explains what's in them. Cloudflare's DMARC Management, available on all Cloudflare plans for domains whose DNS it hosts, is one option. - Reports to another domain. If the address is at a different domain from yours, that domain must publish an authorization record, or receivers won't send anything. Reporting services handle this; the generator and checker both test for it.
- Leave the rest at the defaults. Relaxed alignment, no
sp=, no test mode (t=) and no failure reports are the right starting point.
Then confirm it's live with the DMARC checker. Reports start arriving within a day or two.
Step 5: read the reports and fix what fails
Spend two to four weeks in monitoring mode, long enough to see monthly mailings such as invoices and newsletters. In the reports, every sending source falls into one of three groups:
| What you see | What it means | What to do |
|---|---|---|
| Passes DMARC | A legitimate sender that's set up correctly | Nothing |
| Fails, but you recognize it | A legitimate sender that isn't aligned yet: a CRM, helpdesk or form plugin | Set up DKIM for your domain in that service (step 3), or add it to SPF if it uses your domain as the bounce address |
| Fails, and you don't recognize it | Usually spoofing, or a forwarder | Nothing: this is what enforcement will block. Check the IP address and its reverse DNS if you're unsure |
Two patterns are easy to misread:
- Forwarded mail. Messages forwarded by universities, mailing lists or other organizations often fail SPF but still pass DKIM. If DKIM is aligned, they pass DMARC, and you can ignore their SPF failures.
- Small volumes from big providers. A few messages "from" Google or Microsoft IP addresses that fail are usually someone's personal account forwarding mail, or a misconfigured tool. Look at the volume and the pattern before acting.
You're ready to move on when your legitimate sources show up consistently as passing, and what's left failing is either spoofing or forwarding.
Step 6: move to quarantine, then reject
Tighten the policy in stages, giving each a week or two while you keep reading the reports:
v=DMARC1; p=quarantine; t=y; rua=mailto:[email protected]
v=DMARC1; p=quarantine; rua=mailto:[email protected]
v=DMARC1; p=reject; t=y; rua=mailto:[email protected]
v=DMARC1; p=reject; rua=mailto:[email protected]
t=y is test mode, added in the 2026 update to the DMARC standard (RFC 9989). Receivers that support it apply your policy one level more leniently, so p=quarantine; t=y behaves like p=none, and p=reject; t=y like p=quarantine. Receivers that haven't adopted the new standard ignore t=y and apply the policy in full, so treat it as a soft landing rather than a safety net. It replaces the older pct= tag that you'll still see in older guides.
If something legitimate starts failing, you'll hear about it as missing email, and you can step back while you fix it. Smaller organizations with a clean report history often go straight from p=none to p=quarantine and then to p=reject.
Keep the report address. Once you're at reject, reports are how you notice that a new tool someone signed up for can't deliver its email. Don't remove rua=.
Step 7: cover subdomains and parked domains
Your DMARC policy also applies to subdomains that don't have their own record, unless you set sp= differently. That's usually what you want: it stops spammers inventing subdomains like billing.example.com. If a subdomain sends mail through a different service and isn't ready, give it its own DMARC record at _dmarc.subdomain.example.com while you fix it.
Every other domain you own needs protecting too, especially the ones that never send email. For each of them publish:
example.net. TXT "v=spf1 -all"
_dmarc.example.net. TXT "v=DMARC1; p=reject; sp=reject; adkim=s; aspf=s"
These can go straight to reject: there's no legitimate mail to break.
Keeping it working
- New tools. Whenever someone adds a service that sends email as your domain, set up DKIM for it before it goes live. Make this part of your purchasing or onboarding checklist.
- SPF changes. Re-check the lookup count after adding includes.
- Key rotation. Rotate DKIM keys regularly (many organizations do so once or twice a year), or let services that use CNAME delegation do it for you.
- Reports. Glance at them monthly. A new failing source with real volume is either a new tool or a new attack.
Common mistakes
Jumping straight to reject
Publishing p=reject on day one is the fastest way to stop your own invoices, password resets or newsletters from arriving. Always start with p=none and reports.
Two DMARC records
If _dmarc has two TXT records starting with v=DMARC1, receivers ignore DMARC entirely. Edit the existing record instead of adding a new one.
The record in the wrong place
The record belongs at _dmarc.example.com, not on example.com itself. Some DNS panels add the domain automatically, so entering _dmarc.example.com creates _dmarc.example.com.example.com. The checker will show you where it actually ended up.
Relying on SPF alone
A domain that passes DMARC only through SPF will see forwarded mail fail. Make sure DKIM is aligned for every sender before enforcing.
Strict alignment too early
adkim=s and aspf=s require exact domain matches, which breaks services that send from a subdomain of yours. Keep the relaxed default unless you have a reason not to.
Frequently asked questions
How long should I stay at p=none?
Long enough to see every regular kind of mail you send, typically two to four weeks. Monthly mail such as invoices and statements is the usual reason to wait a full month. Don't stay there indefinitely: p=none gives no protection.
Will DMARC improve my deliverability?
Indirectly, yes. Google, Yahoo and Microsoft require DMARC from bulk senders, and authenticated, aligned mail builds domain reputation that filters trust. It won't rescue mail that recipients mark as spam.
Should I use quarantine or reject in the end?
Reject, if your reports are clean. It stops spoofed mail before it reaches anyone. Quarantine still delivers it to spam folders, where people sometimes find and act on it. The one exception the standard itself makes: if people at your domain post to mailing lists, which can break SPF and DKIM, RFC 9989 advises against p=reject, so quarantine is the safer end point there.
Do I need failure reports (ruf)?
No. Few major providers send them, and those that do may include parts of messages, which raises privacy questions. Aggregate reports are enough to run DMARC well.
What if a partner sends email as my domain?
They need to authenticate as you: ideally by signing with DKIM for your domain using keys you publish, or by using a subdomain you delegate to them, such as partner.example.com, with its own SPF and DKIM.