SPF for Shopify: Email Authentication Setup
Set up SPF for Shopify stores. Configure email authentication for Shopify notifications, order confirmations, and third-party email services.
Your Shopify Order Confirmations Are Landing in Spam
A customer just placed their first order on your Shopify store. They're excited. They check their inbox for the confirmation — nothing. They check spam — nothing. They start to wonder if the order went through at all. Meanwhile, the confirmation is sitting in a void because your domain's SPF record doesn't authorize Shopify to send email on your behalf. For an e-commerce store, this isn't a minor annoyance. It's lost trust and increased support tickets from day one.
The Shopify SPF Problem
When a customer buys from your Shopify store, Shopify sends order confirmations, shipping notifications, refund receipts, and account invitations from your custom domain. These emails come from Shopify's servers, not yours. The recipient's mail server checks your domain's DNS for an SPF record that says Shopify is allowed to send for you. Without that authorization, the emails look forged.
Here's what makes Shopify email authentication particularly tricky:
- Shopify handles critical transactional emails (order confirmations, shipping updates) that customers expect instantly
- Most Shopify stores also use a marketing platform like Klaviyo or Mailchimp, which needs its own SPF authorization
- You likely also have Google Workspace or Microsoft 365 for team email — that's a third service to include
- Adding or removing Shopify apps that send email can change what needs to be in your SPF record
Shopify's SPF include is include:shops.shopify.com. This single include covers all of Shopify's email sending infrastructure — order confirmations, shipping notifications, customer account emails, and any Shopify-powered email that uses your domain.
How SPF Creator Helps
Shopify preset included
Select Shopify from the provider list and include:shops.shopify.com is added automatically. No digging through Shopify documentation.
Combine with marketing platforms
Using Klaviyo for abandoned cart emails and Mailchimp for newsletters? SPF Creator merges Shopify, your marketing tools, and your corporate email into a single, valid SPF record.
Lookup budget tracking
Shopify's include, your email provider, and your marketing platform each consume DNS lookups. SPF Creator tracks the total so you don't exceed the 10-lookup limit.
One-record guarantee
Many store owners accidentally create multiple SPF records when adding Shopify alongside other services. SPF Creator always outputs one properly merged record.
Monitor your Shopify email authentication
After setting up SPF, make sure your order confirmations and marketing emails keep passing authentication checks.
Setting Up SPF for Shopify
Check your existing SPF record
Before making changes, see what's already published. Use SPF Record Check to look up your domain. You may already have a record for Google Workspace or another service that you need to extend, not replace.
Open SPF Creator
Start a new SPF record or import your existing one. Your record begins with v=spf1 automatically.
Add Shopify
Select Shopify from the provider dropdown. This adds include:shops.shopify.com to your record.
Add your business email provider
If you use Google Workspace or Microsoft 365 for team email, add that next. Most Shopify stores need both their e-commerce platform and their business email in the same SPF record.
Add marketing platforms
If you use Klaviyo, Mailchimp, or another email marketing tool, add their includes too. A typical Shopify store record includes Shopify + Google Workspace + one marketing platform.
Review and publish
Check the DNS lookup count and copy the generated record. Log into your DNS provider and create or update the TXT record for your root domain (@). Then verify with SPF Record Check after propagation.
Common Shopify SPF Mistakes
Forgetting Shopify when adding Google Workspace
You set up Google Workspace for team email and create an SPF record for it. But you forget to include Shopify — suddenly, all your order confirmations start failing authentication.
Wrong:
v=spf1 include:_spf.google.com ~all
Right:
v=spf1 include:_spf.google.com include:shops.shopify.com ~all
Creating separate SPF records for each service
Your domain can only have one SPF TXT record. Adding a second one for your marketing platform doesn't merge them — it breaks everything. Both records become invalid.
Wrong:
v=spf1 include:shops.shopify.com ~all
v=spf1 include:_spf.klaviyo.com ~all
Right:
v=spf1 include:shops.shopify.com include:_spf.klaviyo.com ~all
Not including your marketing platform
Many Shopify stores use Klaviyo or Mailchimp for abandoned cart recovery, post-purchase flows, and newsletters. These platforms send from your domain too. If they're not in your SPF record, those marketing emails fail authentication — tanking the deliverability of your highest-ROI messages.
Common Shopify + Service Combinations
Here are typical SPF records for Shopify stores with different service stacks:
# Shopify + Google Workspace
v=spf1 include:shops.shopify.com include:_spf.google.com ~all
# Shopify + Klaviyo
v=spf1 include:shops.shopify.com include:_spf.klaviyo.com ~all
# Shopify + Google Workspace + Klaviyo
v=spf1 include:shops.shopify.com include:_spf.google.com include:_spf.klaviyo.com ~all
# Shopify + Google Workspace + Mailchimp
v=spf1 include:shops.shopify.com include:_spf.google.com include:servers.mcsv.net ~all
# Shopify + Microsoft 365 + Klaviyo
v=spf1 include:shops.shopify.com include:spf.protection.outlook.com include:_spf.klaviyo.com ~all
SPF is only one part of email authentication. For complete protection, set up DKIM for cryptographic message signing and a DMARC policy to tell receivers how to handle emails that fail authentication. Most Shopify stores see immediate deliverability improvements once all three are in place.
DNS Provider Quick Reference
| DNS Provider | Record Type | Host/Name | Value |
|---|---|---|---|
| Cloudflare | TXT | @ | v=spf1 include:shops.shopify.com include:_spf.google.com ~all |
| GoDaddy | TXT | @ | v=spf1 include:shops.shopify.com include:_spf.google.com ~all |
| Namecheap | TXT | @ | v=spf1 include:shops.shopify.com include:_spf.google.com ~all |
| Route 53 | TXT | (blank) | v=spf1 include:shops.shopify.com include:_spf.google.com ~all |
| Google Domains | TXT | @ | v=spf1 include:shops.shopify.com include:_spf.google.com ~all |
Pricing
Free
$0
- Up to 3 items
- Email alerts
- Basic support
Pro
$9/month
- Unlimited items
- Email + Slack alerts
- Priority support
- API access
Related Articles
Monitor Your New SPF Record
You've created your SPF record — now make sure it keeps working. The Email Deliverability Suite watches your SPF, DKIM, DMARC, and MX records daily and alerts you when something breaks.
Never miss an SPF issue
Monitor your SPF, DKIM, DMARC and MX records daily. Get alerts when something breaks.
Start Monitoring