Deliverability

DMARC setup for ecommerce: from p=none to reject without blocking your own mail.

Since February 2024, Gmail and Yahoo expect bulk senders to publish a DMARC record. Publishing one takes five minutes. Tightening it without blocking your own receipts takes a plan. Here is ours.

Since February 2024, Google's sender guidelines require anyone sending more than 5,000 messages a day to Gmail to publish a DMARC record. Yahoo asks for the same in its sender requirements. The minimum both accept is p=none, which tells inbox providers to do nothing special with mail that fails. That's where most stores stop. This guide covers the minimum and the way past it.

If you're still setting up the basics in Klaviyo, our Klaviyo and Shopify setup guide covers the branded sending domain first. DMARC builds on it.

What DMARC does

SPF and DKIM are two ways of proving that an email really came from a server allowed to send for a domain. DMARC sits on top of them and does two jobs:

  • It checks alignment: the domain in the From address your customers see has to match the domain that passed SPF or DKIM. Without that check, a spammer could pass SPF on their own domain and still put your brand in the From line.
  • It publishes a policy: what you want receiving servers to do with mail that fails, and where to send reports about it.

For bulk senders, Gmail's rule is that the From domain must align with either the SPF domain or the DKIM domain. One is enough.

The DMARC record, tag by tag

DMARC is a TXT record in your DNS, on the host _dmarc of your root domain. So for yourbrand.com, the record lives at _dmarc.yourbrand.com. A sensible starting record looks like this:

v=DMARC1; p=none; rua=mailto:dmarc@yourbrand.com

TagWhat it meansWhat we use
v=DMARC1Version. Always first, always exactly this.Required
p=Policy for failing mail: none (report only), quarantine (treat as suspicious, usually spam folder) or reject (refuse it).Start with none
rua=Where aggregate reports go. Daily summaries from receiving servers about who sent mail as your domain and whether it passed.Always set it
pct=Share of failing mail the policy applies to. Default is 100.Useful when stepping up
sp=Separate policy for subdomains. Without it, subdomains follow p.Usually leave it out
adkim= / aspf=Alignment mode, r for relaxed (default) or s for strict. Relaxed lets subdomains match the root domain.Leave on relaxed

Relaxed alignment is what makes a Klaviyo branded sending domain work with DMARC. Klaviyo signs your mail for a subdomain such as send.yourbrand.com, your From address is on yourbrand.com, and relaxed alignment counts those as the same organisation. Set alignment to strict and that match breaks.

Step 1: Publish p=none with reports

  1. Check whether you already have a record. Look up the TXT record for _dmarc.yourbrand.com with any DNS lookup tool. If one exists, edit it. Two DMARC records on one domain can make receivers ignore both.
  2. If you have none, Klaviyo's branded sending domain setup (Settings, then Domains) offers to add a basic p=none record. You can also add it yourself at your DNS provider: type TXT, host _dmarc, value as above.
  3. Set up a mailbox for the reports. They arrive as compressed XML files, often many per day, so use a dedicated address or a DMARC reporting tool that turns them into readable tables. Don't point rua at your main inbox.

Step 2: Find every service that sends as your domain

This is the step that decides whether tightening the policy goes smoothly. A typical Shopify brand sends as its domain from more places than it thinks:

  • Klaviyo, for marketing email and flows.
  • Shopify, for order confirmations and shipping notifications, if you send them from your own address.
  • Your team's mailboxes, on Google Workspace or Microsoft 365.
  • A help desk that replies to customers from support@yourbrand.com.
  • Review apps, subscription apps, invoicing tools and anything else that emails customers "from" you.

Read a few weeks of reports. Every legitimate source should show up as passing DMARC. Any that fail need fixing in that tool, usually by adding DKIM records it gives you or by turning on its own domain authentication. Sources you don't recognise at all might be someone spoofing you, which is exactly what a stricter policy stops.

While you're in DNS, check SPF. A domain can have only one SPF record, and the SPF standard limits it to 10 DNS lookups. Teams that keep adding include: entries for every new tool can quietly push SPF past that limit, and then it fails everywhere.

How to read an aggregate report

Each report covers one day from one receiving provider. You can read the XML yourself or let a reporting tool do it. Either way, look for the same things in each row:

  • Source IP and volume. Which servers sent mail claiming to be your domain, and how much.
  • SPF and DKIM results, and the domains they passed for. A pass for a domain that isn't yours doesn't help DMARC.
  • The DMARC result. Pass means at least one of SPF or DKIM passed and aligned with your From domain.

Group the sources by service. Klaviyo's sending infrastructure should pass on your sending subdomain. Your team's mail should pass through Google or Microsoft. Anything that fails and that you recognise needs fixing in that tool. Small amounts from unknown sources are often forwarding or spoofing, and those are exactly what quarantine and reject are for.

Step 3: Move to quarantine, in steps

Once every real sender passes, move to quarantine. If you want to be careful, use pct to apply it to part of the failing mail first:

v=DMARC1; p=quarantine; pct=25; rua=mailto:dmarc@yourbrand.com

Keep reading the reports. If nothing legitimate fails, raise pct to 100.

Step 4: Move to reject

When quarantine at 100% has run cleanly for a while, switch to p=reject. Now receiving servers refuse mail that pretends to be you. Keep the rua tag so you still see what's happening, and check the reports whenever you add a new tool that sends email.

Our rule of thumbNever tighten DMARC right before a big sale or a launch. If something breaks, you want time to notice it in the reports before your order confirmations start disappearing.

Mistakes we see

  • A second DMARC record added by a new tool's setup wizard instead of editing the existing one.
  • p=reject on day one, followed by a week of missing order confirmations and support replies.
  • No rua tag, so nobody ever sees what fails.
  • Strict alignment copied from a template, which breaks the subdomain match Klaviyo relies on.
  • Thinking p=none protects you. It meets Gmail's and Yahoo's minimum, but it doesn't stop anyone from spoofing your domain.

Why it's worth going past p=none

A stricter policy protects your customers from fake emails in your name, which matters more the bigger your brand gets. It's also the entry ticket for BIMI, the standard that shows your logo next to your emails in Gmail. Gmail requires quarantine or reject at pct=100 for that.

To see whether Gmail sees your authentication as passing, check the authentication dashboard in Google Postmaster Tools. If your mail lands in spam despite a clean setup, the cause is usually your audience, and our guide to emails going to spam is the next stop.

Want help with the DNS side?DMARC, SPF and sending domain setup are part of our deliverability service. Or start with a free 30 minute Klaviyo audit where we check your authentication live. Book it here.

Questions we get a lot

What is the minimum DMARC record Gmail and Yahoo accept?

Both accept a policy of p=none for bulk senders, as long as DMARC passes, which means the From domain aligns with the domain used for SPF or DKIM. A basic record looks like v=DMARC1; p=none; rua=mailto:dmarc@yourbrand.com and sits at _dmarc.yourbrand.com.

Does Klaviyo set up DMARC for me?

When you set up a branded sending domain in Klaviyo, it offers to add a basic DMARC record with p=none if you don't have one. That meets the minimum. Moving to a stricter policy is up to you and whoever manages your DNS.

Should I use p=reject?

Eventually, if you can. It stops others from sending email that pretends to come from your domain. But only move there once your reports show that every service sending as your domain passes. Jumping straight to reject can block your own order confirmations or support replies.

What is DMARC alignment?

The domain in the visible From address has to match the domain that passed SPF or DKIM. With relaxed alignment, which is the default, a subdomain like send.yourbrand.com counts as a match for yourbrand.com. That's why a Klaviyo branded sending domain on a subdomain aligns with your main domain.

Can I have two DMARC records?

No. A domain should have exactly one DMARC record. If there are two, receiving servers may ignore DMARC for your domain completely. Edit the existing record instead of adding a new one.

Do I need DMARC for BIMI?

Yes. Gmail only shows a BIMI logo when your DMARC policy is quarantine or reject with pct at 100. A policy of p=none isn't enough.

See it in real results

All case studies

Want to see where your extra revenue is?

Book a free 30 minute audit. We go through your Klaviyo together and show you what we would change first.

Get a free audit