SPF

Sender Policy Framework - a DNS-based email authentication protocol.

1 min readLast updated Apr 2026
Reviewed by Golden Digital·Operator-reviewed ecommerce reference

Sender Policy Framework - a DNS-based email authentication protocol.

Why It Matters

SPF tells receiving servers which IP addresses are authorized to send email on behalf of your domain. Without SPF, anyone can spoof your domain—and receiving servers may reject or spam-filter legitimate emails. SPF is the first layer of email authentication and is now required by Gmail and Yahoo.

Practical Example

Scenario

A furniture brand's emails start landing in spam. Investigation reveals their SPF record is missing their ESP (Klaviyo) as an authorized sender.

Calculation

Emails from Klaviyo's servers fail SPF checks because the domain doesn't authorize them

Result

After adding Klaviyo's include statement to their SPF record, deliverability recovers within 48 hours.

Pro Tips

  • 1Include all legitimate sending sources: your ESP, transactional email service, CRM, etc.
  • 2Use 'include:' statements for third-party services rather than listing IPs directly
  • 3Keep SPF records under the 10 DNS lookup limit (use SPF flattening if needed)
  • 4End with '-all' (hard fail) for strictest protection, or '~all' (soft fail) during testing

Common Mistakes to Avoid

Forgetting to add new email services to SPF when onboarding them
Exceeding the 10 DNS lookup limit, which causes SPF to fail entirely
Using '+all' which allows anyone to send as your domain

Frequently asked questions

Example: 'v=spf1 include:_spf.klaviyo.com include:amazonses.com ~all'. This authorizes Klaviyo and Amazon SES to send on your behalf, with soft fail for others.

Send a test email to Gmail and click 'Show Original' in the menu. Look for 'SPF: PASS'. You can also use tools like MXToolbox SPF Checker to validate your record.

Put it to work

Related Terms

ONE FREE AUDIT

Run your free Shopify audit.

50+ factors. Real fixes. Same framework we run for $10M brands.

Free · No credit card required

  • Devin, founder of Golden Digital
  • Nicole of Golden Digital
  • Ryan of Golden Digital

You'll talk directly to the people doing the work.

7.7x blended return at scale — seven figures attributed, across five straight quarters · Modern Prairie · Apr 2025–Jun 2026 Read the Modern Prairie case study