SPF, DKIM and DMARC

DMARC: what it is and the p=none, quarantine and reject policies

6 min read PreheatMail team
DMARC: what it is and the p=none, quarantine and reject policies
In this article

You already have SPF and DKIM, but anyone can still send emails with your domain as the sender and you would never know. DMARC is the piece that closes the circle: it decides what happens when authentication fails and tells you who is sending in your name. This guide explains what it is, its p=none, quarantine and reject policies, and how to roll it out without breaking your email.

What DMARC is

DMARC stands for Domain-based Message Authentication, Reporting and Conformance and it is the record that ties SPF and DKIM into a single policy. It does two things: it tells the receiving server what to do with an email that fails authentication, and it asks it to send you reports on all the activity it sees with your domain. Without DMARC, SPF and DKIM are loose signals that each receiver interprets its own way; with DMARC, you set the rules. To see which DMARC policy you have published and whether it is written correctly, use the DMARC checker.

It is also the only one of the three pieces that truly protects the From address the user sees, thanks to the concept of alignment. That is why it is the logical finishing touch to email authentication and not something you set up in isolation.

How DMARC works: alignment

DMARC does not validate anything by itself. It takes the results of SPF and DKIM and applies an extra condition to them: alignment. An email passes DMARC if at least one of the two passes and the domain it verified matches the domain in the visible From. So you do not have to wrestle with the syntax, use the SPF and DMARC record generator.

  • SPF alignment: the Return-Path domain must match the From domain.
  • DKIM alignment: the signing domain (d=) must match the From domain.

This is what stops spoofing: an attacker can have their own valid SPF and DKIM, but they cannot align them with your domain. You can require relaxed alignment (r, allows subdomains of the same root domain) or strict alignment (s, exact match) with the aspf and adkim tags.

An example clarifies the difference between passing and aligning. A third-party tool can send your newsletter with an SPF that returns pass, but using its own domain in the envelope; since that domain does not match your From domain, alignment fails and DMARC does not accept it. The way to fix it is for the tool to sign with DKIM using your domain, or for you to set up your own sending subdomain in it. Without alignment, having valid SPF and DKIM is not enough to pass DMARC.

The three policies: none, quarantine and reject

The heart of DMARC is the p tag, which defines what the receiver does with emails that fail:

PolicyWhat happens to an email that failsWhen to use it
p=noneNothing. It is delivered normally and you only get reportsAt the start, to observe
p=quarantineIt is sent to the spam folderOnce you have your sources under control
p=rejectIt is refused and not deliveredFull protection, final stage

The golden rule is not to skip steps. Publishing p=reject in one go can block legitimate email you did not even know was being sent in your name. You always start at none.

Anatomy of the DMARC record

DMARC is published as a TXT record on the _dmarc subdomain. A sensible starting record is:

TypeHostValue
TXT_dmarcv=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com; adkim=r; aspf=r

The most useful tags are p (the policy), rua (where aggregate reports go), sp (policy for subdomains), pct (the percentage of email the policy applies to, ideal for gradual rollouts) and adkim/aspf (alignment mode). With those five you cover 95% of cases.

Two of them deserve a closer look. The pct tag lets you apply the policy to only a percentage of email (pct=25 affects one in four failing messages), ideal for testing quarantine without risking all your traffic at once. And sp sets a different policy for subdomains: if your domain is at reject but you are still testing a new subdomain, you can give it sp=none temporarily while you adjust its authentication.

Stop landing in spam

PreheatMail warms up your email accounts automatically with real, AI-written conversations. Set it up in 5 minutes and improve your deliverability from the first week.

Try it free for 14 daysNo credit card

The reports: your map before you tighten

The reports that arrive at the rua address are the whole point of the none stage. They are XML files summarizing how many emails passed or failed DMARC and which IPs sent them. Reading them, you discover every source using your domain: your main provider, the invoicing tool, the CRM, the newsletter platform. Each one must pass SPF or DKIM with alignment before you raise the policy.

Raw XML is hard to read, so almost everyone uses a DMARC report reader that aggregates them into a visual dashboard. With that map, you know exactly what to fix.

An aggregate report includes, for each sending IP: how many messages it sent, whether they passed SPF and DKIM, whether they were aligned and which policy was applied to them. When you review it you will see clear groups: your email provider's IPs (which should pass everything), your legitimate tools' IPs (which may need adjusting) and, sometimes, unknown IPs trying to spoof you. That last group is exactly what DMARC helps you stop when you raise the policy from none to reject.

How to roll out DMARC without breaking your email

  1. Publish p=none with an rua address you actually check.
  2. Let two or three weeks go by and analyse the reports: identify each legitimate source.
  3. Fix the alignment of the sources that fail (turn on DKIM with your domain, adjust the Return-Path).
  4. Move up to p=quarantine, optionally with pct=25 to apply it only to part of the traffic at first.
  5. When the reports are clean, move up to p=reject and reach full protection.

This pace avoids the classic mistake of blocking your own email out of haste. There is no fixed length for each stage: the criterion is not the calendar but the data. You only move up a step when the reports show that 100% of your legitimate email passes with alignment, with no surprises. If a new source appears, you authenticate it and wait to confirm it passes before you carry on.

DMARC needs SPF and DKIM underneath

It is worth repeating: DMARC does not work in a vacuum. It rests on the SPF record and the DKIM signature, and without at least one of them aligned, it will always fail. If you do not have them set up yet, start there and come back to DMARC afterwards. The three form a chain in which DMARC is the last link.

Common mistakes when setting up DMARC

  • Publishing p=reject from day one. Without data from the reports, you will block your own email.
  • Not setting a valid rua address. Without reports you are working blind and will never know whether it is safe to tighten.
  • Ignoring subdomains. If you do not define sp, they inherit the domain's policy, which is sometimes not what you want.
  • Confusing alignment with validation. An SPF that passes but does not align with the From is no use for DMARC.
  • Forgetting the record once published. DMARC is not set-and-forget: the reports reveal new sources you need to authenticate.

An extra incentive: BIMI and your logo in the inbox

There is a tangible reward for taking DMARC all the way. BIMI is a standard that shows your brand's logo next to your emails in compatible clients, and it only works if your domain has DMARC at a quarantine or reject policy. In other words, tightening DMARC does not only protect you from spoofing: it also strengthens brand recognition in the inbox. One more reason not to stay at p=none forever.

Check it, meet Gmail's rules and do not neglect reputation

After publishing the record, check with a test send that dmarc=pass appears in the message details; the process is in the guide to checking authentication. Bear in mind too that DMARC is no longer optional for many senders: Gmail and Yahoo require it, as the Gmail and Yahoo sender requirements explain. And remember the usual caveat: authentication stops you being spoofed and gives filters confidence, but it does not build reputation on its own. A domain that is spotless on DMARC but has no history still needs to warm up with a good warmup process to reach the inbox, and PreheatMail takes care of that automatically. You can see the available plans whenever you want to start. So you do not have to keep an eye on your reputation, PreheatMail's automated warm-up handles it every day.

Stop landing in spam

PreheatMail warms up your email accounts automatically with real, AI-written conversations. Set it up in 5 minutes and improve your deliverability from the first week.

Try it free for 14 daysNo credit card

Frequently asked questions

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

They define what the receiver does with an email that fails DMARC. With p=none nothing happens: you only get reports. With p=quarantine the email is sent to the spam folder. With p=reject it is refused outright and never arrives. It is a ladder: you start at none to observe and move up once you have confirmed your legitimate email passes.

Where do I start, none or reject?

Always with p=none. Publishing p=reject straight away without reviewing the reports can block legitimate email you did not know was being sent in your name, such as your invoicing or your CRM. Keep none for a few weeks, fix the alignment of each source and only then move up to quarantine and then reject.

What are rua and ruf reports?

They are the addresses DMARC sends its reports to. rua receives aggregate reports: a regular XML summary of how many emails passed or failed and from which IPs. ruf receives forensic reports on individual messages that failed, although fewer and fewer providers send them for privacy reasons. rua is the one you will actually use.

Does DMARC need SPF and DKIM to work?

Yes. DMARC does not check anything on its own: it relies on the results of SPF and DKIM. For an email to pass DMARC, at least one of the two must pass and be aligned with the domain in the visible From address. Without SPF or DKIM set up, DMARC will always fail, however well you publish the record.