Magicianly

Deliverability

SPF, DKIM and DMARC: What They Do and How to Set Them Up for Ecommerce Email

Quick answer: SPF, DKIM and DMARC are the three email authentication standards that prove an email really comes from your domain. SPF lists the servers allowed to send for your domain, DKIM adds a digital signature to every email, and DMARC tells inbox providers what to do when a message fails those checks. Gmail, Yahoo and Outlook.com require all three from bulk senders. In Klaviyo, a branded sending domain takes care of SPF and DKIM, and DMARC is the one record you add yourself.

When we check the technical setup of an ecommerce account, DMARC is usually the missing piece.

SPF and DKIM are often fine, because the email platform set them up. DMARC needs someone to log in to the DNS settings and add a record. That step gets skipped.

Here's what each standard does, how they work together, a DMARC record you can copy, how to check your setup and when to move past p=none.

By Emiel Dingemans, Founder of Magicianly

Updated

What Are SPF, DKIM and DMARC?

SPF, DKIM and DMARC are records in your domain's DNS that let inbox providers like Gmail check whether an email that claims to be from your brand really is. Each one does a different job.

  • SPF (Sender Policy Framework) lists the servers and services that are allowed to send email for a domain.
  • DKIM (DomainKeys Identified Mail) adds a digital signature to the email header. The receiving server checks it against a public key in your DNS, so it can tell the message wasn't changed on the way.
  • DMARC (Domain-based Message Authentication, Reporting and Conformance) builds on SPF and DKIM. It tells inbox providers what to do with email that fails, and where to send reports about it.
SPFDKIMDMARC
What it checksWas the email sent from a server the domain allows?Was the email signed by the domain, and left unchanged?Did SPF or DKIM pass for a domain that matches the From address?
Where it livesA TXT record on the sending domainA public key in the DNS of the signing domainA TXT record at _dmarc.yourbrand.com
Who sets it up in KlaviyoKlaviyo, through your branded sending domain recordsKlaviyo, through your branded sending domain recordsYou, at your DNS provider

How Do SPF, DKIM and DMARC Work Together?

DMARC sits on top of the other two. An email passes DMARC when SPF or DKIM passes and the domain that passed matches the domain in the From address. That match is called alignment.

Four-step diagram of how an inbox provider checks an email: SPF, then DKIM, then alignment with the From address, then the DMARC policy, with the outcomes for p=none, p=quarantine and p=reject.
DMARC only passes when SPF or DKIM passes for a domain that matches your From address. That's the step a branded sending domain fixes.

Alignment is the part that's easy to miss. Say you send from hello@yourbrand.com on Klaviyo's shared sending domain. Klaviyo's domain passes its own checks, but it isn't yourbrand.com, so it doesn't align. Klaviyo says it plainly: a policy on its shared domain doesn't make your emails pass DMARC.

A branded sending domain fixes that. You send through a subdomain like send.yourbrand.com, the email is signed for your own domain and, under the default relaxed alignment, that counts as a match. That's why we always set up the branded sending domain in Klaviyo and DMARC together, in the same session.

Do Ecommerce Brands Need SPF, DKIM and DMARC?

Yes. Gmail, Yahoo and Outlook.com all require SPF, DKIM and a DMARC record from senders who send more than about 5,000 emails a day, and an ecommerce brand with a list of that size passes the line with one campaign.

Inbox providerWho it applies toWhat's required
GmailSenders of 5,000 or more messages a day to Gmail accountsSPF and DKIM, a DMARC record (the policy can be none), and a From domain that aligns with SPF or DKIM
YahooBulk sendersSPF and DKIM, and a valid DMARC policy of at least p=none that passes
Outlook.comDomains sending over 5,000 emails a daySPF and DKIM must pass, and DMARC of at least p=none, aligned with SPF or DKIM

Gmail's bulk sender rules also ask for one-click unsubscribe and a spam rate below 0.3% in Postmaster Tools. Authentication is only one line of the list. We go through the rest in our email deliverability checklist.

Sources: Gmail email sender guidelines, Yahoo sender best practices and Microsoft's Outlook requirements for high-volume senders, checked November 2026.

Klaviyo itself recommends a branded sending domain with DMARC for accounts with 5,000 or more active email profiles. If you're anywhere near that number, just treat yourself as a bulk sender.

How Do You Set Up SPF, DKIM and DMARC in Klaviyo?

Set up a branded sending domain in Klaviyo, which handles SPF and DKIM for you, then add one DMARC record at your DNS provider. That's the whole job for most brands.

  1. Set up a branded sending domain. In Klaviyo, go to Settings > Domains and use a subdomain, such as send.yourbrand.com.
  2. Add the records Klaviyo shows you at your DNS provider (Shopify, Cloudflare, GoDaddy and so on), plus the TXT verification record on your root domain. For supported providers, Klaviyo can publish them for you through Entri.
  3. Don't add a separate SPF record for Klaviyo. Klaviyo's own documentation says the branded sending domain records already connect to the SPF and DKIM records it manages.
  4. Check for an existing DMARC record at _dmarc.yourbrand.com. Other tools sometimes made you add one already. If it's there, review it instead of adding a second one.
  5. No DMARC record yet? Add one. Klaviyo offers to generate v=DMARC1; p=none during setup, or you can use the version with a reporting address below.
  6. Send from an address on your own domain, like hello@yourbrand.com. Never from a Gmail or Outlook address.

You need access to the DNS settings for steps 2 and 5. If nobody on your team has that, find out who does before you start.

What Does a DMARC Record Look Like?

A DMARC record is a single TXT record at _dmarc.yourbrand.com. The simplest valid version is v=DMARC1; p=none.

A DMARC record you can start with

Type: TXT

Host: _dmarc (some DNS providers want the full _dmarc.yourbrand.com)

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

Swap the reporting address for an inbox you actually own. If you don't want reports, v=DMARC1; p=none on its own is enough to meet the requirement.

Annotated DMARC TXT record at _dmarc.yourbrand.com explaining the v, p, sp and rua tags, with the order to move from p=none to quarantine to reject.
Start with p=none and a reporting address. Tighten the policy only once every tool that sends as your domain passes.

The parts that matter:

  • v=DMARC1 is the version. It's always this, and it always comes first.
  • p= is the policy for your root domain: none, quarantine or reject.
  • sp= is the policy for subdomains. It's optional, and if you leave it out it follows p.
  • rua= is the address that receives aggregate reports. Also optional, but without it you can't see who's sending email as your domain.

The reports arrive as XML files, and they're not fun to read. Klaviyo suggests a DMARC service provider if you want to use them, and names Valimail, EasyDMARC and Dmarcian as examples.

Which DMARC Policy Should You Use: None, Quarantine or Reject?

Start with p=none. It meets the Gmail and Yahoo requirement and lets you watch who sends as your domain before you block anything. Move to quarantine or reject only once every legitimate sender passes.

PolicyWhat it asks inbox providers to do with failing emailWhen we'd use it
p=noneNothing based on DMARC. Normal spam filtering still appliesThe starting point for every brand that has no DMARC record yet
p=quarantineTreat it as suspicious, for example by putting it in spamOnce the reports show all your real senders pass
p=rejectReject itWhen you want full protection against spoofing, and you're sure nothing legitimate fails

Why not go straight to reject? Because your domain sends a lot more than Klaviyo email. Order notifications from Shopify, replies from your helpdesk, invoices, your team's own inboxes in Google Workspace or Microsoft 365. If one of those isn't authenticated properly, a strict policy blocks real email, and the first thing you'll notice is customers asking where their order confirmation went.

Klaviyo recommends working with your IT team or a specialist before you move to a stricter policy, and we agree. The one reason we'd push for it: BIMI, the logo next to your sender name in supporting inboxes, needs quarantine or reject.

How Do You Check Whether SPF, DKIM and DMARC Are Working?

Run your domain through a free DMARC lookup, then send yourself a test email to a Gmail address and read the authentication results in the message.

  • DMARC lookup. A tool like MXToolbox's DMARC check shows whether a record exists and is valid. "No DMARC record found" means you still need to add one.
  • Klaviyo. Under Settings > Domains, your branded sending domain should show as verified, and then active.
  • A test email to Gmail. Open it, click the three dots and choose "Show original". You'll see SPF, DKIM and DMARC listed as PASS or FAIL.
  • Google Postmaster Tools. Once you're sending real volume to Gmail, it shows your spam rate and domain reputation over time. Here's how to set up Google Postmaster Tools for Klaviyo.

What Are the Most Common SPF, DKIM and DMARC Mistakes?

Most of these problems come from duplicate records and from being too strict too early.

  • Two SPF records on one domain. A domain should have one SPF record. When another tool asks you to add its own, merge it into the existing record instead.
  • Too many includes in SPF. SPF allows a limited number of DNS lookups, and Microsoft warns that going over 10 can make the check fail. Old tools you stopped using are the usual cause.
  • A second DMARC record. One per domain. Edit the one you have.
  • Sending from a free mailbox. A From address on gmail.com can't be authenticated for your brand, and Gmail warns that impersonating Gmail From addresses can hurt delivery.
  • Jumping to p=reject on day one, before you know which tools send as your domain.
  • Expecting authentication to fix deliverability. It won't. Sending unwanted email to the wrong audience is not solved by a prettier SPF record. If your emails already land in spam, start with how to fix deliverability problems in Klaviyo.

So What Should You Do About SPF, DKIM and DMARC?

Check today whether your domain has a DMARC record. If it doesn't, set up a branded sending domain in Klaviyo and add v=DMARC1; p=none in the same session. Add a reporting address if someone will actually look at the reports. Move to quarantine or reject later, once you know every tool that sends as your domain. Then get back to the things that decide inbox placement: who you email, how often and whether they want it. If you'd like us to handle the setup and the sending, that's part of our Klaviyo management work.

Frequently Asked Questions

What is the difference between SPF, DKIM and DMARC?

SPF lists the servers allowed to send email for your domain. DKIM adds a digital signature that proves the email came from your domain and wasn't changed. DMARC checks that SPF or DKIM passed for a domain matching your From address, and tells inbox providers what to do when that fails.

Do I need SPF, DKIM and DMARC for Klaviyo?

Yes, if you send in any real volume. Gmail, Yahoo and Outlook.com require all three from bulk senders. In Klaviyo, a branded sending domain sets up SPF and DKIM through the records you add during setup. DMARC is a separate TXT record you add at your DNS provider.

What DMARC policy should I start with?

Start with p=none. It meets the Gmail and Yahoo requirement without blocking any email, and with a reporting address you can see which services send as your domain. Move to quarantine or reject only once all your legitimate senders pass.

Can a domain have two SPF or two DMARC records?

No. A domain should have one SPF record and one DMARC record. If a new tool asks you to add SPF, merge it into your existing SPF record. If a DMARC record already exists, edit it instead of adding a second one.

What happens if I don't have a DMARC record?

If you send more than about 5,000 emails a day, you don't meet the sender requirements of Gmail, Yahoo and Outlook.com, so your email may be filtered to spam or rejected. Your domain is also easier to spoof, because inbox providers have no policy to follow.

Does DMARC improve email deliverability?

DMARC is the entry requirement, not the fix. Without it, bulk email can be filtered or rejected. With it, you meet the rules and protect your domain. Inbox placement after that depends on engagement, list quality and spam complaints.

Want Us to Build and Manage This for You?

Related Reading