Email

Set up SPF, DKIM and DMARC at Klaviyo

In short. At Klaviyo, authentication goes through a branded sending domain: in Settings, Domains tab, you add an unused subdomain such as send, then publish either four NS records (Dynamic routing, recommended) or CNAMEs (Static routing), plus a verification TXT. Klaviyo can also generate a DMARC record, v=DMARC1; p=none;.

SPF lists the servers allowed to send for your domain, DKIM signs every message, and DMARC tells recipients what to do with messages that fail. At Klaviyo, the records of the sending subdomain carry the authentication: the help page lists no separate SPF record to create.

Last verified: November 30, 2026, against Klaviyo's official documentation.

Before you start

Only the Owner, Admin, Manager and Campaign Coordinator roles can set up a sending domain. Klaviyo distinguishes three sending types, each with its own active domain: Marketing (campaigns, flows; the default), Transactional (flow messages designated as transactional) and Service (support replies, which also needs an MX record managed by Klaviyo). The values below are the help page's examples, with example.com: always use the ones generated in your own account, because NS values vary by region.

Add the domain

  1. Click your company name at the bottom left, then Settings, then the Domains tab.
  2. Click Add domain, choose the Email type, then Next.
  3. Check the root domain, filled in automatically, then Next.
  4. Enter an unused subdomain (for example send for marketing, updates for transactional).
  5. Choose the Routing type, Dynamic or Static, then Next.
  6. If the domain has no DMARC record, turn Add DMARC record on or off, then Next.
  7. Choose Connect with Entri (automatic publishing) or Set up manually.
  8. Publish the records, click Verify, then Finish. When the status becomes Verified, click Activate.

1. SPF

Klaviyo does not ask for a separate SPF record in the documented values: the wizard shows only the NS or CNAME records of the sending subdomain and a domain-verification TXT. So add nothing more for SPF than what your wizard displays.

2. DKIM

Dynamic routing (recommended). You delegate the subdomain to Klaviyo with four NS records; the root domain and other subdomains are untouched. Because Klaviyo then hosts that subdomain's zone, your own records (TXT, MX, A, AAAA, CNAME) for it are added in Klaviyo, not at your DNS provider.

send.example.com    NS    ns1.klaviyo.com
send.example.com    NS    ns2.klaviyo.com
send.example.com    NS    ns3.klaviyo.com
send.example.com    NS    ns4.klaviyo.com
example.com         TXT   klaviyo-site-verification=public_API_key

Static routing. Choose it if your DNS does not support NS records. Three CNAMEs, two of them for DKIM, plus the TXT:

send.example.com               CNAME  1.klaviyodns.com
km1._domainkey.example.com     CNAME  km1._domainkey.1.klaviyodns.com
km2._domainkey.example.com     CNAME  km2._domainkey.1.klaviyodns.com
example.com                    TXT    klaviyo-site-verification=public_API_key

The TXT holds the full value shown in Klaviyo, case included. The DKIM selectors for Static routing depend on the sending type: km1 and km2 (marketing), kt1 and kt2 (transactional), ks1 and ks2 (service); a second marketing domain uses km3 and km4. The underscores in the DKIM names are required.

3. DMARC

If the domain has no DMARC record, the Add DMARC record option has Klaviyo generate this one:

v=DMARC1; p=none;

According to Klaviyo, this policy meets the bulk-sender DMARC requirement without asking for quarantine or reject; the other requirements still apply. For alignment, use the branded sending domain for all emails sent from Klaviyo: for example send.example.com for a sender [email protected]. For marketing and transactional, do not use the subdomain in the from address, or you will not receive replies.

Wait for validation

DNS propagation can take up to 48 hours. The Domains page shows Verifying (in progress), Incomplete (click Verify), Failed (fix the records at your DNS provider, wait a few minutes, refresh) and then Verified (click Activate). If a required record is deleted later, the domain disconnects and Klaviyo sends an alert.

Then tighten DMARC step by step

Start with p=none and read the reports for one to two weeks. Once all your legitimate senders pass, move to p=quarantine, then to p=reject after several clean weeks: otherwise a forgotten sender would see its emails filed as spam or refused.

Common mistakes

  • Root domain added twice: if your provider appends the domain to the host name itself, enter only send, or you get send.example.com.example.com.
  • Missing trailing dot: some providers expect a final dot at the end of a value, otherwise they append the domain to it.
  • Proxied records (common with Cloudflare): turn the proxy off for the Klaviyo records and leave it off.
  • "@" rejected: enter the full root domain name as the host of the TXT.
  • Underscores rejected: Static routing needs them. Ask your provider's support, switch to Dynamic if NS records are supported, or change DNS provider.
  • TXT already on the root: add Klaviyo's as a separate record at the same name, without touching the others.
  • DMARC misalignment: the sender does not match the account's domain while the domain is DMARC-protected: use the branded sending domain.

Check that it works

Replace example.com with your domain:

dig +short NS send.example.com
dig +short CNAME km1._domainkey.example.com
dig +short TXT example.com
dig +short TXT _dmarc.example.com
nslookup -type=NS send.example.com
nslookup -type=CNAME km1._domainkey.example.com
nslookup -type=TXT _dmarc.example.com

With Dynamic routing, the first command should return Klaviyo's NS records; with Static, the second should return the target km1._domainkey.1.klaviyodns.com (or the one shown in your account). You should see one v=DMARC1 line. For a full test, send a test email to a Gmail address and choose Show original: SPF, DKIM and DMARC should show PASS.

Free tool. DMARC checker · SPF checker · DKIM checker

Check your domain for free. AttackScout reads your public SPF, DKIM and DMARC records and tells you what to change. See also the pricing. Run the free check

Frequently asked questions

Klaviyo: Dynamic or Static, which one should I choose?

Klaviyo recommends Dynamic (NS records, delegation of the subdomain). Choose Static (CNAME) if your DNS provider does not support NS records.

Klaviyo: which DMARC record should I publish?

The Add DMARC record option generates v=DMARC1; p=none; if the domain has no DMARC record. You can tighten it later.

Klaviyo: how long does verification take?

Up to 48 hours for DNS propagation. The status stays Verifying in the meantime.

Klaviyo: why does verification fail with Cloudflare?

The proxy hides the CNAME target that Klaviyo needs to check: turn it off for the Klaviyo records.

Sources

Accessed on 11/30/2026.

Get the free alerts