Deliverability

SPF, DKIM, and DMARC explained for ecommerce marketers

What SPF, DKIM, and DMARC actually do, why inbox providers require them, and how to set them up without a developer.

3 min read Updated November 2026

SPF, DKIM, and DMARC sound technical, but the idea behind them is simple: they prove to inbox providers that your emails really come from you. Without them, Gmail, Yahoo, and Outlook have less reason to trust your emails, and they are more likely to land in spam.

This guide explains each one in plain English and shows you how to set them up.

Why authentication matters

Anyone can put your brand name in the "From" line of an email. Authentication lets inbox providers check whether an email claiming to be from you was really sent by a service you approved, and whether it was changed on the way. Major providers now require it from bulk senders. See Gmail and Yahoo’s sender requirements.

SPF: who is allowed to send

SPF (Sender Policy Framework) is a DNS record that lists the servers allowed to send email for your domain.

When an inbox provider receives an email from your domain, it checks whether the sending server is on your list. If it is not, the email looks suspicious.

Key points:

  • A domain should have only one SPF record.
  • If you use several services, such as your email platform, help desk, and Google Workspace, combine them in one record.
  • SPF has a limit on how many lookups it can perform, so avoid adding services you no longer use.

DKIM: proof the email was not changed

DKIM (DomainKeys Identified Mail) adds a digital signature to every email. Your email platform signs each message with a private key, and publishes the matching public key in your DNS.

The receiving server uses the public key to check the signature. If it matches, the email really came from an approved sender and was not altered.

Your email platform generates the DKIM records. You add them to your DNS as instructed, usually as CNAME or TXT records.

DMARC: what to do when checks fail

DMARC (Domain-based Message Authentication, Reporting and Conformance) ties SPF and DKIM together. It tells inbox providers:

  • Whether the email’s visible "From" domain matches the authenticated domain.
  • What to do if an email fails: nothing, send it to spam, or reject it.
  • Where to send reports about who is sending email using your domain.

A DMARC record has a policy:

  • p=none: monitor only. Start here.
  • p=quarantine: failing emails go to spam.
  • p=reject: failing emails are blocked.

How to set them up

  1. Choose a sending domain. Many brands send marketing email from a subdomain such as send.yourbrand.com, which protects the reputation of the main domain.
  2. Add the domain in your email platform. Klaviyo, Omnisend, and others will generate the records you need.
  3. Log in to your DNS provider, which is often your domain registrar or a service like Cloudflare.
  4. Add the SPF and DKIM records exactly as provided.
  5. Add a DMARC record on your root domain, starting with p=none and an address to receive reports.
  6. Verify in your email platform, which will check the records.
  7. Send a test email to a Gmail address and open "Show original" to confirm SPF, DKIM, and DMARC all pass.

DNS changes can take a while to spread, so give it some time before testing.

After setup: monitor and tighten

  • Read your DMARC reports, or use a tool that summarizes them, to see who is sending as your domain.
  • Fix any legitimate services that fail.
  • Once everything passes, move to p=quarantine, then consider p=reject.

Common mistakes

  • Two separate SPF records instead of one combined record.
  • Leaving old services in SPF and hitting the lookup limit.
  • Sending from the platform’s shared domain instead of your own.
  • Setting DMARC to reject before checking that every legitimate sender passes.

Authentication will not fix a list full of unengaged subscribers, but without it, nothing else in deliverability works properly. For the rest of the picture, read how to improve email deliverability.

Frequently asked questions

Do I need a developer to set up SPF, DKIM, and DMARC?

Usually not. Your email platform generates the records, and you paste them into your domain provider’s DNS settings. It helps to have someone who can access the DNS account.

What DMARC policy should I start with?

Most brands start with p=none, which only monitors. Once reports show all your legitimate email passing, you can move to p=quarantine and later p=reject for stronger protection.

Can I have more than one SPF record?

No. A domain should have a single SPF record. If you use several sending services, combine them into one record with multiple include statements.

Written by the Mail Captains team

Mail Captains builds and runs email and SMS retention systems for 7 and 8 figure D2C brands, with over $25M in attributed revenue for 40+ brands. About us · Case studies