How to Create an SPF Record for Klaviyo
Learn how to create an SPF record for Klaviyo. Step-by-step guide with the correct include, e-commerce combinations, and verification tips.
Klaviyo is the go-to email marketing platform for e-commerce businesses, deeply integrated with Shopify, BigCommerce, WooCommerce, and other online store platforms. If you use Klaviyo to send abandoned cart emails, order follow-ups, product recommendations, or marketing campaigns from your own domain, you need an SPF record that authorizes Klaviyo's servers to send on your behalf. Without it, those carefully crafted emails may end up in spam folders instead of inboxes.
This guide walks you through setting up SPF for Klaviyo, combining it with other services common in e-commerce, and verifying your record is working.
The SPF Include for Klaviyo
Per Klaviyo's DNS authentication guide, the SPF include mechanism for Klaviyo is:
include:spf.klaviyo.com
This covers all email sent through Klaviyo's platform -- marketing campaigns, automated flows, transactional messages, and everything else.
A basic SPF record for Klaviyo looks like this:
v=spf1 include:spf.klaviyo.com -all
In practice, e-commerce businesses almost never use Klaviyo alone. You'll likely have a primary email provider for team communication plus other services like Shopify that also send email as your domain. Use the free SPF record generator to build a record that includes all your services in one place.
Klaviyo handles both marketing email (campaigns, flows) and transactional email (order confirmations, shipping notifications) if you enable those features. The same SPF include covers everything.
Step-by-Step: Creating Your SPF Record for Klaviyo
Check for an existing SPF record
Go to SPF Record Check and enter your domain. If your domain already has an SPF record (which it likely does if you have Google Workspace, Microsoft 365, or Shopify set up), you'll need to edit it rather than create a new one. A domain can only have one SPF record.
List all your email sending services
E-commerce businesses often have more senders than they realize. Think about your primary email provider (Google Workspace, Microsoft 365), your store platform (Shopify, BigCommerce), Klaviyo, and any other tools that send email as your domain -- helpdesk software, invoicing tools, review platforms, etc.
Build your SPF record
Use the SPF Creator tool to assemble your record. Add an include for each service. A typical e-commerce setup might look like: v=spf1 include:_spf.google.com include:spf.klaviyo.com include:shops.shopify.com -all.
Add or edit the TXT record in your DNS
Log in to your DNS provider and navigate to DNS records. If no SPF record exists, create a new TXT record with the name @ and your full SPF record as the value. If one already exists, edit it and add include:spf.klaviyo.com before the -all at the end.
Wait for DNS propagation
DNS changes typically take a few minutes to a few hours to become active. Some providers like Cloudflare propagate in seconds, while others may take longer.
Verify in Klaviyo and externally
In Klaviyo, go to Settings > Email > Domains to check your domain authentication status. Also verify at SPF Record Check to confirm the record is live, syntactically valid, and within the 10 DNS lookup limit.
Common SPF Record Combinations With Klaviyo
E-commerce email setups tend to involve more services than a typical business. Here are the combinations you're most likely to need:
| Setup | SPF Record |
|---|---|
| Klaviyo only | v=spf1 include:spf.klaviyo.com -all |
| Klaviyo + Google Workspace | v=spf1 include:spf.klaviyo.com include:_spf.google.com -all |
| Klaviyo + Microsoft 365 | v=spf1 include:spf.klaviyo.com include:spf.protection.outlook.com -all |
| Klaviyo + Google Workspace + Shopify | v=spf1 include:spf.klaviyo.com include:_spf.google.com include:shops.shopify.com -all |
| Klaviyo + Google Workspace + Zendesk | v=spf1 include:spf.klaviyo.com include:_spf.google.com include:mail.zendesk.com -all |
| Klaviyo + Microsoft 365 + Shopify | v=spf1 include:spf.klaviyo.com include:spf.protection.outlook.com include:shops.shopify.com -all |
The highlighted Klaviyo + Google Workspace + Shopify combination is especially common. Many Shopify store owners use Google Workspace for team email, Klaviyo for marketing automation, and Shopify for order-related transactional emails. All three need to be in a single SPF record.
E-commerce businesses are more likely to hit the 10 DNS lookup limit defined in RFC 7208 because of how many services send email. Each include triggers at least one lookup, and some (like Google Workspace) trigger several nested lookups. Use SPF Record Check to count your total lookups.
Monitor your email authentication
E-commerce email deliverability is critical. Get daily checks on your SPF, DKIM, and DMARC records so authentication issues never hurt your sales.
Verifying Your SPF Record
Once your DNS changes are live, verify that everything is set up correctly.
Go to SPF Record Check and enter your domain. The tool will display your published SPF record, check the syntax, count DNS lookups, and flag any issues. Confirm that include:spf.klaviyo.com is present and the record passes validation.
Send a test email through Klaviyo -- either a test campaign or a preview email -- to an external address you control. Check the email headers on the receiving side for Authentication-Results: spf=pass. If you see spf=fail, double-check that the Klaviyo include is in your SPF record and that the record has no syntax errors.
Klaviyo's domain settings page shows the authentication status for your sending domain. After adding your SPF record, Klaviyo will confirm it can detect the correct include. This is a quick way to check without leaving the Klaviyo dashboard.
Common Mistakes With Klaviyo SPF Records
Forgetting About Shopify's SPF Include
If you use Shopify alongside Klaviyo, Shopify also sends email from your domain -- order confirmations, shipping updates, and refund notifications. According to Shopify's SPF documentation, Shopify's SPF include is shops.shopify.com. Forgetting to add it means your Shopify-sent emails fail SPF authentication, even though Klaviyo emails pass just fine. Both includes need to be in the same record.
Creating a Second SPF Record
This is the most common SPF mistake, and it happens frequently when businesses add Klaviyo to an existing setup. If your domain already has an SPF record for Google Workspace, don't create a separate TXT record for Klaviyo. Two SPF records cause a permerror per RFC 7208 that breaks authentication for every email from your domain. Always edit the existing record.
Exceeding the 10 DNS Lookup Limit
E-commerce businesses stack multiple services -- email provider, store platform, marketing automation, helpdesk, reviews platform, and more. Each include adds DNS lookups. Google Workspace alone uses about 3 lookups. Add Klaviyo, Shopify, and a helpdesk, and you can easily approach or exceed the 10-lookup limit. If you're over, look into SPF flattening to reduce your lookup count.
Not Adding Klaviyo When Migrating From Another ESP
When switching to Klaviyo from Mailchimp, Constant Contact, or another email marketing platform, remember to update your SPF record. Remove the old platform's include and add Klaviyo's. Forgetting this step means your Klaviyo emails fail SPF checks while the old platform's include wastes a DNS lookup.
Complete Your Email Authentication
For e-commerce, email deliverability directly impacts revenue. SPF is the foundation, but you need all three authentication protocols for the best results:
- SPF authorizes which servers can send email for your domain (what you just configured)
- DKIM adds a cryptographic signature to each email, proving it wasn't altered in transit. Use DKIM Creator to generate your DKIM records
- DMARC tells receiving servers what to do when authentication fails. Use DMARC Creator to build your DMARC policy
Klaviyo provides DKIM signing through its domain authentication settings. Enabling DKIM alongside SPF gives you two layers of authentication -- essential for protecting your brand and ensuring your marketing emails reach your customers' inboxes.
Related Articles
Monitor Your SPF Record
Your Klaviyo SPF setup is complete -- but DNS records can change unexpectedly. A domain migration, a colleague editing DNS, or a registrar transfer can wipe out your carefully crafted record. For e-commerce businesses, broken email authentication means lost sales. Daily monitoring catches issues before they cost you revenue.
Never miss an SPF issue
Monitor your SPF, DKIM, DMARC and MX records daily. Get alerts when something breaks.
Start Monitoring