Email security

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

DMARC stops attackers sending email as your domain, but jumping straight to p=reject can block your own mail. Here is the safe rollout, step by step.

Cysoro Security TeamPublished · 7 min read
EMAIL SECURITY Set Up DMARC From p=none to p=reject, safely. v=DMARC1; p=reject_dmarc.example.comSPF ✓ DKIM ✓✓Spoofed mail blocked
Quick answer

To set up DMARC, first publish SPF and DKIM for your domain, then add a DNS TXT record at _dmarc.yourdomain.com starting with v=DMARC1; p=none; rua=mailto:[email protected]. Monitor the aggregate reports for two to four weeks, fix any legitimate senders that fail, then move the policy to p=quarantine and finally to p=reject.

Key takeaways

  • Publish SPF and DKIM before DMARC, and wait about 48 hours before adding your DMARC record.
  • Start at p=none, read the aggregate reports for two to four weeks, and fix failing legitimate senders first.
  • Move to p=quarantine, then p=reject, so spoofed mail is blocked without blocking your own invoices and newsletters.

Anyone can put your domain in the From address of an email. DMARC is the record that tells receiving mail servers what to do when that email fails authentication — and it is the difference between a spoofed invoice reaching your customer and it being rejected outright.

What is DMARC and why set it up?

DMARC (Domain-based Message Authentication, Reporting and Conformance) sits on top of SPF and DKIM. It requires that SPF or DKIM not only pass, but also align with the domain in the visible From address.

Without DMARC, SPF and DKIM results are only advisory. A receiving server can see that a message failed both checks and still deliver it. DMARC turns those checks into a policy: deliver it, send it to spam, or reject it.

It also gives you reporting. Receivers send daily aggregate reports to the address in your record, so you can see who is sending mail as your domain — including attackers you did not know about.

Since February 2024, Gmail and Yahoo have required authentication from senders, and bulk senders need a DMARC record. Microsoft applied similar SPF, DKIM and DMARC requirements to high-volume senders to Outlook.com, Hotmail and Live.com starting in May 2025. Setting up DMARC is now baseline email hygiene, not an optional extra. Learn the background in our guide to what DMARC is.

How does DMARC work?

When a message arrives, the receiving server checks SPF and DKIM, then checks alignment: does the domain that passed match the domain in the From header? If either SPF or DKIM passes and aligns, DMARC passes.

If neither passes and aligns, the receiver applies your published policy. At p=none it delivers the message and reports it. At p=quarantine it sends it to spam. At p=reject it refuses it.

How DMARC decides what happens to a message1. SPF and DKIMDo the checks pass?2. AlignmentDoes the domain match From?3. Policynone, quarantine or rejectPass: deliver normallySPF or DKIM passed and alignedFail: apply your policydeliver, spam or reject — plus a reportAggregate reports go to the rua address in your record, usually daily.
DMARC passes when SPF or DKIM passes and aligns with the From domain. Illustration by Cysoro.

Two tags control most of the behavior. The p tag sets the policy for the domain, and rua sets where aggregate reports go. Other tags, such as pct (the percentage of failing mail the policy applies to) and sp (the policy for subdomains), let you roll out enforcement gradually.

What do you need before you start?

Before touching DNS, list every service that sends email with your domain in the From address. Missing one is the most common cause of blocked legitimate mail.

  • Your mailbox provider: Microsoft 365 or Google Workspace.
  • Newsletter and marketing platforms, such as Mailchimp or HubSpot.
  • Your CRM, invoicing and help desk tools.
  • Website contact forms, scanners and copiers that send email.
  • Any other software that sends mail as your domain.

You also need access to your DNS host, and a dedicated mailbox for reports, such as [email protected]. Major receivers send aggregate reports as XML files, usually daily, and they will overwhelm a personal inbox fast.

Finally, confirm SPF and DKIM are published and passing. Google advises allowing about 48 hours after setting up SPF or DKIM before setting up DMARC.

Check SPF with our free SPF checker.

Check DKIM with our DKIM checker.

Google's own instructions are in its Set up DMARC help page, which recommends starting at p=none.

Step 1: Publish SPF and DKIM first

Publish one SPF record at the root of your domain. A Microsoft 365 only setup looks like v=spf1 include:spf.protection.outlook.com -all, and a Google Workspace only setup looks like v=spf1 include:_spf.google.com ~all.

Never publish two SPF records: receivers may ignore both. Combine every sender into a single record, and keep the total under the 10 DNS lookup limit in RFC 7208, counted across every nested include.

Then turn on DKIM in your mail platform. In Microsoft 365, go to the Defender portal, Email authentication settings, and the DKIM tab, then copy the two CNAME records for selector1._domainkey and selector2._domainkey into DNS and enable signing.

In Google Workspace, go to Apps, Google Workspace, Gmail, Authenticate email, generate a new record with a 2048-bit key, add the TXT record at google._domainkey, then click Start authentication. Our guide to what DKIM is explains the signing process in more detail.

Step 2: Build your starter DMARC record

Your first DMARC record uses p=none. This collects reports without affecting deliverability, which is the right place to start.

A good starter record is: v=DMARC1; p=none; rua=mailto:[email protected]; pct=100

TagValueWhat it does
vDMARC1Required. Identifies this as a DMARC record.
pnoneMonitor only. Failing mail is still delivered.
ruamailto:[email protected]Where daily aggregate reports are sent.
pct100Apply the policy to 100% of messages.
spnonePolicy for subdomains, if you set it.
adkim / aspfs (strict) or r (relaxed)How strictly alignment is checked.

Google recommends the v and p tags first, with other tags in any order. Google also recommends starting at p=none and moving to quarantine or reject over time as you learn how messages from your domain are authenticated.

The Abstract API DMARC setup guide gives the same starter record and the DNS steps for Cloudflare, Route 53 and GoDaddy.

Step 3: Publish the record in DNS

Publish the record as a TXT record at _dmarc.yourdomain.com — not at the domain apex. Publishing at the wrong location is the most common placement mistake.

  1. Cloudflare: go to your domain, DNS, Records, Add record. Type TXT, name _dmarc, content your full record, TTL Auto, Save.
  2. AWS Route 53: open the hosted zone, Create record, name _dmarc, type TXT, value your full record, TTL 300, Save.
  3. GoDaddy: My Products, DNS, Add. Type TXT, host _dmarc, TXT value your full record, TTL 1 hour, Save.
  4. Google Domains / Squarespace: DNS, Custom records, host _dmarc, type TXT, data your full record, Save.

Propagation usually takes a few minutes, though some hosts take longer. Verify with dig +short TXT _dmarc.yourdomain.com, or check it in seconds with our free DMARC checker.

Do not jump to p=reject yetJumping straight to p=reject without auditing your sending sources is the fastest way to block your own legitimate email. Start at p=none and let the reports show you what you missed.

Step 4: Read the aggregate reports

Aggregate reports arrive within about 24 hours from major receivers. Each report lists the sending IPs that used your domain, the message counts, and whether SPF and DKIM passed and aligned.

Free and paid parsers turn the XML into readable tables. If you prefer to keep reports in-house, the open source parsedmarc tool does the same job.

Look for three things in every report:

  • Legitimate senders failing: a real service that needs SPF or DKIM added, or an alignment fix.
  • Unknown IPs passing: a sender you did not know about, which may be legitimate or may be abuse.
  • Unknown IPs failing: likely spoofing attempts, which your policy will eventually block.

If the rua mailbox is on a different domain than the one being reported on, that domain must publish an authorization record, or receivers will not send reports there.

Step 5: Fix alignment failures before enforcing

Leave p=none in place for two to four weeks so monthly senders such as invoicing and payroll show up. Then fix each failure in turn.

Common fixes include adding a third-party sender to your SPF record, enabling DKIM signing for that sender, and fixing alignment where a service sends from a subdomain or a different return-path domain than your From domain.

Strict alignment (aspf=s and adkim=s) requires an exact domain match. Relaxed alignment allows a subdomain to match the organizational domain. Start relaxed unless you have a reason to be strict.

For a wider starting point, our small business cybersecurity checklist covers email authentication alongside backups, updates and device security.

Step 6: Move to quarantine, then reject

When legitimate sources pass at or near 100% in the reports, move to p=quarantine. Failing messages go to the recipient spam folder, where they can still be reviewed if something was missed.

Stay at quarantine for at least two weeks and watch for complaints about missing mail. If nothing legitimate is being quarantined, move to p=reject.

You can also enforce gradually with pct: set p=reject; pct=25, then 50, then 100, over successive weeks. This limits the damage if a sender was missed.

The safe DMARC rolloutWeeks 1–4p=noneMonitor and fix sendersWeeks 5–6p=quarantineFailing mail goes to spamWeek 7+p=rejectSpoofed mail is refusedAt each step, check the reports before moving on.If legitimate mail is affected, step back one policy level and fix the sender.
Move from p=none to p=quarantine to p=reject over about six weeks. Illustration by Cysoro.

Once you reach p=reject, keep monitoring. New services, changed providers and new subdomains can all break authentication, and the reports will show it before your customers notice.

What are the most common DMARC mistakes?

The most common mistakes are publishing the record at the apex instead of _dmarc, publishing two SPF records, jumping to p=reject on day one, and setting up DMARC before SPF and DKIM.

Other frequent errors include forgetting third-party senders, using an rua address nobody reads, and never checking the reports after the record is published. DMARC is not set-and-forget: it needs a monthly glance at the reports.

Subdomains need attention too. Without an sp tag, subdomains inherit the organizational domain policy in most implementations, but an attacker can still exploit a subdomain with no SPF or DKIM of its own. Set an explicit subdomain policy once the main domain is at reject.

Finally, remember what DMARC cannot do. It cannot stop look-alike domains, and it cannot stop mail sent from a genuinely hacked account. For those threats, see our spear phishing guide and the defenses it describes.

The bottom line

DMARC setup is one DNS record and a few weeks of patience. Publish SPF and DKIM, start at p=none, read the reports, fix the senders you missed, then move to quarantine and reject.

That sequence gives you the strongest protection against domain spoofing without the risk of blocking your own mail. Check your record now with the free DMARC checker and see where your domain stands.

Frequently asked questions

What is a DMARC record?

A DMARC record is a DNS TXT record published at _dmarc.yourdomain.com. It tells receiving mail servers what to do with messages from your domain that fail SPF or DKIM authentication, and where to send aggregate reports about those messages.

Do I need SPF and DKIM before DMARC?

Yes. Google advises turning on SPF or DKIM before DMARC and allowing about 48 hours after setting them up. Without them, DMARC has nothing to check, and a strict policy can block your legitimate mail.

What does p=none mean in DMARC?

The p=none policy tells receivers to take no action on messages that fail authentication, but to log them in daily aggregate reports. It is the safe starting policy while you find every service that sends mail as your domain.

How long should I stay at p=none?

Leave p=none in place for two to four weeks so monthly senders such as invoicing, payroll and newsletters appear in the reports. Move on only when legitimate sources pass and the remaining failures are clearly spoofing.

What is the difference between p=quarantine and p=reject?

With p=quarantine, failing messages go to the recipient spam folder. With p=reject, receiving servers refuse them outright. Quarantine is the middle step; reject is the strongest protection and the final goal.

Where do I publish the DMARC record?

Publish it as a TXT record at the host _dmarc.yourdomain.com, not at the domain apex. Publishing it at the wrong location is the most common placement mistake, and receivers will not find the policy.

How do I check if DMARC is working?

Use a DMARC checker to look up the published record, and check that aggregate reports arrive at the rua address within about 24 hours. Reports show which sending IPs used your domain and whether SPF and DKIM passed and aligned.

Does DMARC stop all phishing?

No. DMARC at p=reject stops attackers sending mail that uses your exact domain in the From address. It cannot stop look-alike domains or messages sent from a genuinely hacked account, so it must be combined with other defenses.

Sources

  1. Google Workspace Help — Set up DMARC
  2. Abstract API — How to set up DMARC step by step
  3. Falcon Internet — SPF, DKIM and DMARC setup for Gmail, Yahoo and Outlook rules in 2026
  4. Los Angeles IT — How to Set Up DMARC, SPF and DKIM (2026 Guide)
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against Google Workspace DMARC documentation and current 2026 SPF, DKIM and DMARC setup guides.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free