# How to Set Up DMARC: From p=none to p=reject Safely

URL: https://notificationharbor.com/journal/how-to-set-up-dmarc
Type: blog
Locale: en
Published: 2026-12-01
Updated: 2026-12-01

---

> A DMARC record takes five minutes. The rollout from p=none to reject takes weeks. Here is the sequence, the tags, and the failures we see in production traces.

Here is how to set up DMARC: publish one TXT record at `_dmarc.yourdomain.com` that starts with `v=DMARC1; p=none; rua=mailto:...`, confirm that every legitimate sender passes SPF or DKIM with alignment, then tighten the policy to quarantine and finally reject. The record takes five minutes to write. The rollout takes two to six weeks, because the work is finding every system that sends as your domain.

## Check SPF and DKIM before you touch DMARC

DMARC adds no authentication of its own. It asks one question: did SPF or DKIM pass, and does the passing domain match the visible From domain? If neither mechanism is working, DMARC has nothing to evaluate.

Google's setup guide recommends waiting 48 hours after enabling SPF and DKIM before turning DMARC on, so that you see steady-state traffic. In practice, the useful check is a manual one. Send a test message to a Gmail address, open "Show original", and read the `Authentication-Results` header.

You want `spf=pass`, `dkim=pass` and, after you publish the record, `dmarc=pass`. Note the domains attached to each pass. They matter in the next section.

Also check whether a record already exists:

`dig +short TXT _dmarc.example.com`If it returns a `v=DMARC1` line, edit that record. A domain with two DMARC records is treated as having none, which is the most common self-inflicted failure we see in traces.

![Network patch panel with labeled blue cables in soft side light](https://fdzlnqpwsaniezitwiuw.supabase.co/storage/v1/object/public/cms-media/notificationharbor/2026-12/97cbf8-img1.webp)

## Alignment is the part that bites: SPF passing is not enough

A message passes DMARC when at least one of two things is true. SPF passes and the envelope sender (Return-Path) domain matches the From domain. Or DKIM passes and the `d=` domain in the signature matches the From domain.

Relaxed alignment, the default, accepts a match at the organizational domain. A `d=mail.example.com` signature aligns with `From: you@example.com`. Strict alignment (`adkim=s`, `aspf=s`) demands an exact match. Start relaxed. Google itself suggests strict only when you do not control the subdomains.

Most ESPs sign with their own domain until you configure a custom one. That signature passes DKIM and fails alignment. This is the gap that makes SPF and DKIM "pass" while DMARC fails, and we cover the mechanics in [DMARC alignment](/journal/dmarc-alignment).

The fix is almost always the same two steps per sender:

- 
Add the provider's DKIM CNAME or TXT records so it signs with `d=yourdomain.com`.

- 
Set a custom return-path domain so SPF aligns too, where the provider supports it.

One aligned mechanism is enough to pass. Two is a safer baseline, because forwarding breaks SPF and mailing lists often break DKIM.

## Write the record: the five tags that matter

A starting record for monitoring looks like this:

`_dmarc.example.com.  300  IN  TXT  "v=DMARC1; p=none; rua=mailto:dmarc-reports@example.com; fo=1"`The tags, in order of how often you will touch them:

- 
`v`: the version, which must come first. Value `DMARC1`.

- 
`p`: the policy for failing mail. Start with `none`.

- 
`rua`: where aggregate XML reports go. Use a dedicated mailbox.

- 
`pct`: the share of failing mail the policy applies to. Omit it until you enforce.

- 
`sp`: the policy for subdomains. Omit it and subdomains inherit `p`.

Two operational notes. Keep the TTL at 300 seconds while you iterate, then raise it once the policy is final. And send reports to a dedicated mailbox or group, because a mid-size domain produces dozens of report emails a day.

If `rua` points at a different domain than the one publishing the record, the receiving domain must publish an authorization TXT record at `example.com._report._dmarc.reportdomain.com`. Without it, compliant receivers drop the reports silently. Gmail does not send `ruf` forensic reports at all, so do not build a workflow around them.

![Notebook sketch of an email authentication flow beside a keyboard and coffee](https://fdzlnqpwsaniezitwiuw.supabase.co/storage/v1/object/public/cms-media/notificationharbor/2026-12/4e0900-img2.webp)

### Publishing it at your DNS host without the usual mistakes

Most DNS panels want the host field as `_dmarc` only, not the full name. Entering `_dmarc.example.com` in a panel that appends the zone produces `_dmarc.example.com.example.com`, a record nobody queries. Route 53 and Cloudflare both behave this way.

Some panels add the quotation marks for you, some reject them. If the value shows up wrapped in doubled quotes after you save, remove yours. Record type is TXT, never CNAME, unless a vendor explicitly hands you a CNAME target for hosted DMARC.

After saving, verify from outside your own resolver cache:

`dig +short TXT _dmarc.example.com @1.1.1.1
dig +short TXT _dmarc.example.com @8.8.8.8`Both should return the same single line. If one returns nothing, you are waiting on the previous TTL or the record sits in the wrong zone. Then send a message from every sender you know about to a mailbox you control and read the `Authentication-Results` header for `dmarc=pass`. A checker tool confirms syntax. Only a real message confirms alignment.

## Read the aggregate reports before you enforce anything

Aggregate reports are gzipped XML, one per reporting receiver per day. Each lists source IPs, message counts, the SPF and DKIM results, and whether DMARC passed. Reading raw XML by hand works for a week. After that, pipe them into a parser or a hosted DMARC viewer.

What you are building is an inventory. For every source IP or sending domain in the reports, answer three questions:

- 
Is this a system we own or authorized?

- 
Does it pass DMARC, and through which mechanism?

- 
If it fails, is it fixable (configure DKIM) or noise (spoofing)?

Typical legitimate senders that surface only in reports: the billing system, a support desk, a CRM, an HR tool, a forgotten cron job on a VPS. Each one needs the same alignment work as your main ESP.

Run in `p=none` until two consecutive weeks show your known senders at or near 100% DMARC pass. Four weeks is better if you send monthly statements or quarterly invoices, since low-frequency senders will not appear in a shorter window.

Here is what the major providers look like on the points that decide alignment effort. Check each against the current docs, since defaults change.

Both expect you to verify a sending domain with DNS records, which gives you aligned DKIM from the first send. That is the behavior you want from any transactional provider.

## Move to quarantine and reject in steps, not in one edit

Enforcement is where a setup mistake turns into lost mail. The `pct` tag exists for this: it applies the policy to only a share of failing messages.

A rollout that has held up on production domains:

- 
`p=none` for two to four weeks. Fix every legitimate failing source.

- 
`p=quarantine; pct=10`. Watch spam-folder complaints and the reports for a week.

- 
Raise `pct` to 25, 50, then 100, with at least a few days at each step.

- 
`p=reject; pct=25`, then 50, then 100.

Skip the idea that you must reach reject. For a domain that carries user-generated or third-party mail you cannot align, `p=quarantine` at 100 is a legitimate end state. For a domain that only sends your own product email, reject is the target, because it is the only policy that stops spoofing.

Subdomains inherit the parent policy unless you set `sp`. If a team runs `news.example.com` through a separate tool, either align that tool first or give the subdomain its own `_dmarc.news` record. Do not discover this at `p=reject`.

Domains that never send mail need the opposite treatment. Publish `v=DMARC1; p=reject;` and an SPF record of `v=spf1 -all`. Parked domains are the easiest spoofing targets you own.

![Wooden harbor lock gate closed with a steel padlock in morning fog](https://fdzlnqpwsaniezitwiuw.supabase.co/storage/v1/object/public/cms-media/notificationharbor/2026-12/04d649-img3.webp)

## Why the 2024 bulk sender rules made this non-optional

Google's sender guidelines require senders of more than 5,000 messages a day to Gmail accounts to [set up DMARC for their sending domain](https://support.google.com/a/answer/81126). The enforcement policy may be `none`, but a record must exist, and the From domain must align with SPF or DKIM. The same page asks for a Postmaster Tools spam rate below 0.10% and says never to reach 0.30%.

That requirement is the floor. Receivers weigh authenticated, aligned mail more favorably, and a published enforcement policy is how you ask them to reject forgeries instead of guessing. If you are also warming a new domain, authentication has to be in place before the first send, not after. Our [SPF record guide](/journal/what-is-an-spf-record-syntax-limits-and-failure-modes) covers the 10-lookup limit that quietly breaks SPF once you add a few vendors.

## Where DMARC setups fail in practice

These are the failure modes that recur in traces, in rough order of frequency.

**SPF flattened past the lookup limit.** Each `include:` costs DNS lookups, and SPF allows 10. Adding a fifth SaaS sender pushes the record into `permerror`, and SPF stops passing for everyone.

**A provider signing with its own domain.** DKIM passes, alignment fails. Fix by configuring a custom signing domain.

**Forwarding.** SPF breaks when a mailbox forwards to another provider. Aligned DKIM survives forwarding, which is the strongest argument for never relying on SPF alone.

**Mailing lists.** Lists that modify the subject or footer break DKIM signatures. Expect some failures from them even on a clean setup, and judge by trend, not by an absolute zero.

**Typos in the record.** A `;` replaced by a `,`, a missing `mailto:`, or `v=DMARC1` not at the start. Verify the published record with a DMARC checker and `dig` after every edit.

Your relay matters too. A provider that exposes per-send traces makes the diagnosis fast, because you can see which message failed which mechanism. Amazon SES and SendGrid both support custom DKIM and custom MAIL FROM domains, though with more manual DNS work.

## What we would do on a new domain this week

Day 1: SPF and aligned DKIM on every sender you know about. Publish `p=none` with `rua`. Day 14: read the reports, fix the stragglers. Day 21: move to `quarantine; pct=10`. Day 45 or so: `reject` on a domain that only sends your own product mail.

The same process applies to the domain you already run. The fact that you have never looked at your reports is the reason to start. Google's own [DMARC setup page](https://knowledge.workspace.google.com/admin/security/set-up-dmarc) walks the DNS steps for Workspace. For the policy semantics behind the tags, see [what DMARC is and how policies work](/journal/what-is-dmarc).

What is the one sender on your domain you suspect nobody has audited?

## FAQ

### How long does it take to set up DMARC?

Publishing the record takes minutes and DNS changes usually appear within the TTL. The full rollout from p=none to p=reject typically takes two to six weeks, driven by how long it takes to find and align every sender.

### Should I start with p=none?

Yes. p=none changes no delivery and sends you aggregate reports, so you can find senders that fail alignment before any mail is quarantined or rejected.

### Do I need both SPF and DKIM for DMARC?

No, one aligned pass is enough. Using both is safer, because forwarding breaks SPF and mailing lists can break DKIM.

### Where do I publish the DMARC record?

As a TXT record at _dmarc under your domain, for example _dmarc.example.com. Only one DMARC record may exist per domain; a second one invalidates both.

### Does DMARC apply to subdomains?

By default subdomains inherit the parent policy. Use the sp tag to set a different subdomain policy, or publish a separate _dmarc record on the subdomain.

### Is DMARC required for Gmail and Yahoo?

Senders of more than 5,000 messages a day to Gmail accounts must publish a DMARC record, though the policy can be p=none. Aligned SPF or DKIM is also required.