Skip to content
ShopPilotStart free trial

How to set up a branded sending domain, DKIM and DMARC

By 13 min read

Klaviyo's Add DNS records screen for a branded sending domain, with four NS records pointing to Klaviyo and one TXT verification record.

Open a Klaviyo email from a small shop in Gmail and look next to the sender's name. Very often it says "via klaviyomail.com". That grey text means Klaviyo signed the email, not the shop. To Gmail, the shop's own domain has no reputation at all, because it never really sent anything.

A branded sending domain fixes that. It's a handful of DNS records and about 20 minutes of clicking. Then you wait up to 48 hours, and that's where most people get stuck, because one record is in the wrong place and nothing tells you which.

This guide is the setup. For why authentication matters, see why your marketing emails go to spam. Here I go through Klaviyo step by step, every record it asks for, the mistakes that make verification fail and the DMARC record I'd use, plus short sections for Mailchimp and Shopify Email.

The four terms, in plain words

SPF is a list, published in your DNS, of the servers allowed to send email for your domain. Gmail checks whether the server that delivered an email is on the list.

DKIM is a digital signature on every email. Your email tool signs with a private key, and the matching public key sits in your DNS. Gmail checks the signature and knows the email really came from you and wasn't changed on the way.

DMARC is one DNS record that ties the two together. It says: "an email with my domain in the From line must pass SPF or DKIM for my domain, and if it doesn't, here's what to do with it". The "for my domain" part is called alignment, and it's exactly what fails when Klaviyo signs with klaviyomail.com.

A branded sending domain is a subdomain of your shop, like send.yourshop.com, that you hand over to your email tool. The tool signs and sends as that subdomain. Because it belongs to your domain, DMARC passes and your reputation builds up under your own name.

Before you start: find out who runs your DNS

DNS is the address book of your domain, and it's stored at one company, your DNS provider. That isn't always where you bought the domain. If you bought yourshop.com at GoDaddy and later moved it to Cloudflare, the records that count live at Cloudflare. You can add records at GoDaddy all day and nobody will ever read them.

Look up your domain's nameservers (its NS records) with a free lookup like MxToolbox. If they end in cloudflare.com, add records at Cloudflare. If they're domaincontrol.com, it's GoDaddy. If the domain was bought through Shopify and still uses Shopify's nameservers, it's your Shopify admin. On a Shopify domain with custom nameservers, Shopify's DNS page shows a Custom nameservers enabled banner instead of your records (Shopify's DNS help). That banner means the real DNS lives elsewhere.

Step 1: Start the wizard in Klaviyo

  1. Click your company name in the bottom left, then Settings.
  2. Click the Domains tab.
  3. Next to Sending domains, click Add domain.
  4. Under "What type of emails will you be sending with this domain?", choose Marketing and click Next.
  5. Check the Root domain, which Klaviyo fills in from your account, and click Next.

Only Owner, Admin, Manager and Campaign Coordinator users can do this (Klaviyo's setup guide).

Step 2: Pick the subdomain

On Set up your sending domain, type a prefix into Sending domain. Klaviyo shows the result below it, for example send.yourshop.com.

My opinion: use send, as Klaviyo suggests. Nobody sees this name except in email headers, and boring is good. Don't get clever with deals or vip.

The subdomain must be unused, and Klaviyo checks. When I typed send, it refused with a red banner saying the subdomain "already has DNS records for another service", listing records from another email tool. Good catch. So I used news, which is why you'll see news in my picture.

If you send order emails from Klaviyo too, give them their own subdomain later (Klaviyo suggests updates for Transactional). Most small stores send order emails from Shopify, so one marketing domain is enough.

One rule that catches people: the subdomain is not your From address. Keep sending from hello@yourshop.com. Send from hello@send.yourshop.com and, as Klaviyo warns, you won't receive replies.

Step 3: Choose Dynamic or Static routing

On the same screen, Routing type offers Dynamic (marked Recommended) or Static. For you, the difference is the record type:

DynamicStatic
Records4 NS records and 1 TXT record.3 CNAME records and 1 TXT record.
What it doesHands the whole subdomain to Klaviyo, which then maintains SPF, DKIM and the rest.Points three names at Klaviyo. You keep the subdomain.
Works atProviders that allow NS records, like Cloudflare and GoDaddy.Every provider, including Shopify-managed domains.
My pickWhenever your provider allows NS records.On a Shopify-managed domain, or wherever NS isn't possible.

Here's the trap. Shopify-managed DNS supports A, CNAME, MX, TXT, AAAA and SRV records. No NS. A store owner on the Klaviyo forum chose Dynamic, got four NS records and found no way to add them in Shopify. If your DNS is at Shopify, pick Static from the start.

If your domain has no DMARC record yet, this step also offers an Add DMARC record toggle that publishes v=DMARC1; p=none; (Klaviyo's setup guide). Turn it on unless you'll write your own (Step 6). Click Next.

Step 4: Copy the records

Klaviyo offers Connect with Entri, which logs into your DNS provider and adds the records for you, or Set up manually. I prefer manual, so I know exactly what was added where.

After Set up manually, choose your provider under Select your domain provider (GoDaddy, Cloudflare, Shopify, IONOS or Other) and Klaviyo shows where its DNS page is. Click Next to reach Add DNS records, the screen at the top of this guide.

With Dynamic (your own subdomain and code):

TypeNameValueWhat it does
NSsendns1.klaviyo.comHands send.yourshop.com to Klaviyo.
NSsendns2.klaviyo.comHands send.yourshop.com to Klaviyo.
NSsendns3.klaviyo.comHands send.yourshop.com to Klaviyo.
NSsendns4.klaviyo.comHands send.yourshop.com to Klaviyo.
TXT@klaviyo-site-verification= plus your codeProves you own yourshop.com.

With Static:

TypeNameValueWhat it does
CNAMEsend<your numbers>.klaviyodns.comPoints the subdomain at Klaviyo. SPF and bounces are handled here.
CNAMEkm1._domainkeykm1._domainkey.<your numbers>.klaviyodns.comYour first DKIM key.
CNAMEkm2._domainkeykm2._domainkey.<your numbers>.klaviyodns.comYour second DKIM key, so Klaviyo can rotate keys.
TXT@klaviyo-site-verification= plus your codeProves you own yourshop.com.

@ means the root domain itself. Use the copy buttons; typing a long value by hand is how a 0 becomes an O. You don't need any SPF record for Klaviyo: the NS or CNAME records connect your subdomain to SPF that Klaviyo manages (Klaviyo's SPF help).

Step 5: Add them, verify, and fix what fails

Add each record at your DNS provider with the type, name and value from Klaviyo. On Shopify that's Settings, Domains, your domain, Manage under DNS settings, then Add custom record. On Cloudflare it's DNS, Records, Add record.

Back in Klaviyo, click Verify, then Finish. The status shows Verifying for up to 48 hours. When it says Verified, open the action menu on the domain's row and click Activate. Klaviyo suggests pausing campaigns and flows while you activate your first marketing domain, then resuming them once you have tested (Klaviyo's setup guide).

If it doesn't verify within a day, it's almost always one of these.

The records went to the wrong DNS provider

Still the number one cause. If your nameservers point to Cloudflare, records at GoDaddy or Shopify do nothing.

The provider added your domain twice

Most providers, Shopify included, add .yourshop.com to the name automatically. Klaviyo already gives you the short name (send, km1._domainkey), so paste exactly that. Paste send.yourshop.com and you get send.yourshop.com.yourshop.com.

It can happen in the value too. If a lookup shows something.klaviyodns.com.yourshop.com, add a period at the end of the value (Klaviyo's troubleshooting). A few providers refuse @ in the TXT name; then type yourshop.com instead.

Cloudflare's proxy is on

Cloudflare can proxy a CNAME record (the orange cloud). That's great for a website and wrong for email: it hides the target Klaviyo needs to see. For Static, set each Klaviyo CNAME to DNS only (grey cloud) and leave it that way. NS records can't be proxied at all, so with Dynamic on Cloudflare this problem doesn't exist.

An existing record is in the way

  • An old TXT record on the root domain. Fine. Add Klaviyo's as a separate TXT record on the same name and leave the old one alone.
  • Two SPF records. A name may have only one record starting with v=spf1. If another tool asks for SPF, add it to the existing record.
  • Two DMARC records. Exactly one TXT record at _dmarc, ever. Shopify warns that two make DMARC fail.
  • Something already on the subdomain. Pick a different subdomain. Don't delete records you don't recognize; some tool depends on them.

You didn't wait long enough

Klaviyo allows up to 48 hours, Shopify up to 24 hours for its DNS. Don't delete and re-add everything after an hour. That restarts the clock.

Step 6: Add a DMARC record that does the job

If Klaviyo didn't add one and your domain has none, add this at your DNS provider:

TypeNameValue
TXT_dmarcv=DMARC1; p=none; rua=mailto:dmarc@yourshop.com

That's the minimum Gmail and Yahoo accept. Google requires DMARC from anyone sending more than 5,000 emails a day to Gmail, with the From domain aligned with SPF or DKIM, and says the policy can be none. Yahoo asks bulk senders for at least p=none, and DMARC must pass. Add it even if you're smaller.

p=none means "don't block anything, just watch". rua= is where receivers send daily reports. It's optional, but Yahoo strongly recommends it. The reports are unreadable XML, so point them at a free DMARC report service, not your inbox.

When to tighten it. For a small store: stay on p=none for four to six weeks. Use that time to check that every tool sending as your domain passes: Klaviyo, Shopify's order emails, your Google Workspace or Outlook mailbox, your helpdesk. Then move to p=quarantine, which sends failing mail to spam. That stops strangers spoofing your shop, and a mistake costs you spam placement, not lost mail.

I wouldn't go to p=reject unless somebody actually reads the reports. One forgotten review app sending from your domain, and its emails silently vanish.

Step 7: Check it yourself

Don't trust the green check mark alone.

  1. Look up the records. In MxToolbox, check the NS records of send.yourshop.com (Dynamic) or each CNAME (Static), the TXT on yourshop.com, and the TXT on _dmarc.yourshop.com. Capital letters and a trailing period in the answer don't matter.
  2. Read a real email. Send a Klaviyo test to a Gmail address, open it, click the three dots, then Show original (Google's help). You want PASS next to SPF, DKIM and DMARC, with your domain in the DKIM line, not klaviyomail.com.

What changes after you switch

The "via klaviyomail.com" disappears, and Gmail starts judging your mail by your own domain's reputation. So don't send your biggest campaign of the year on day one.

Klaviyo's rule: an existing customer whose domain is at least 30 days old and has already sent email doesn't need to warm. A new account, or a domain registered in the last 30 days, should warm for 2 to 4 weeks. Warming means starting with your most engaged people and widening slowly. Klaviyo's warming guide sends to people engaged in the last 30 days for two weeks, then 60 days, then 90, moving on only while open rates stay above 20%.

Even if you don't strictly need to warm, I'd send the first week to engaged people only. It costs nothing and you see problems while the audience is small.

Mailchimp: where it lives

Click your profile icon, then Account & billing, then the Domains tab. Next to your verified email domain, click Start authentication, pick your DNS provider and choose Entri or manual (Mailchimp's guide). Manual asks for 2 CNAME records (DKIM) and 1 TXT record at _dmarc (DMARC). The status goes from Authentication in progress to Authenticated, usually in minutes, at most 48 hours. If your provider doubles the domain, Mailchimp's fix is to enter only k2._domainkey as the name. If you already have a DMARC record, don't add a second one.

Shopify Email: where it lives

Shopify Email is now Shopify Messaging, but authentication sits in store settings: Settings, Notifications, then Email domain authentication under Sender email (Shopify's help). A domain bought through Shopify is set up automatically, DMARC included. For Cloudflare, GoDaddy or IONOS, Authenticate automatically adds the CNAME records but no DMARC, so add that yourself. Anywhere else, add the CNAME records Shopify shows plus a DMARC record. Skip it, and Shopify rewrites your sender to something like store+123@shopifyemail.com.

Frequently asked questions

Should I choose Dynamic or Static routing in Klaviyo?

Dynamic, if your DNS provider lets you add NS records, because Klaviyo then maintains the records for you. If Shopify manages your DNS, choose Static. Switching later on the same subdomain means deleting the domain and starting over, so decide first.

Do I need this if I send fewer than 5,000 emails a day?

Gmail's DMARC and alignment rules strictly apply only above 5,000 a day. Do it anyway. Without it you share Klaviyo's domain with every other sender, and your own domain never builds a reputation.

Will my From address change?

No. Keep sending from your normal address, like hello@yourshop.com. The subdomain only shows up in technical headers.

Klaviyo, Shopify and Mailchimp all want a DMARC record. Do I add three?

No. A domain has exactly one DMARC record, at _dmarc.yourshop.com, and every tool uses it. Two records make DMARC fail for all of them. If one exists, keep it.

Your first audit is five minutes away.

Start free trial

14 days free$19.95/monthCancel anytime