Deliverability & Compliance

SPF, DKIM, and DMARC Explained

Justin Rondeau

Justin Rondeau · Founding Head of Growth, Spoks

Updated

Definition

SPF identifies servers authorized to send mail for a domain. DKIM lets a recipient verify the sender’s signature. DMARC ties those checks to the domain in the visible From address and publishes a policy for mail that fails.

In Shopify terms

Shopify sets up email authentication for domains purchased through Shopify. For a third-party domain, follow the CNAME instructions under Settings → Notifications → Sender email. Check the DNS records for your domain before adding anything at _dmarc. Keep an existing valid DMARC policy, including p=quarantine or p=reject. If the domain has no DMARC policy, Shopify’s minimum is a single TXT record containing v=DMARC1; p=none. A second DMARC record at the same name breaks validation and can cause Shopify to rewrite your sender address. Shopify’s sender-domain instructions

SPF, DKIM, and DMARC help a mailbox provider work out who sent an email. SPF checks the server that handed it the message. DKIM verifies a signature on the message itself. DMARC connects those results to the sender address your customer sees.

SPF (Sender Policy Framework)

SPF lets a domain owner publish which servers may send mail using that domain in the SMTP envelope. The receiving server looks up the policy and checks the IP address that delivered the message. The envelope sender can differ from the From address displayed in a customer’s inbox.

DKIM (DomainKeys Identified Mail)

With DKIM, the sending service signs the message. The receiving server uses a public key published in the signing domain's DNS to verify the signature and check that the signed content arrived intact.

DMARC (Domain-based Message Authentication, Reporting, and Conformance)

A message passes DMARC when SPF or DKIM passes for a domain aligned with the visible From domain. For example, forwarding can break SPF. If the original DKIM signature survives and its domain aligns, the forwarded message still passes DMARC. When neither check produces an aligned pass, your policy can ask the receiver to quarantine or reject the message. A policy of p=none requests no enforcement.

Gmail and Yahoo both require bulk senders to use SPF and DKIM and publish a DMARC policy of at least p=none. Smaller senders still need SPF or DKIM. These are mailbox providers’ delivery requirements. Gmail’s sender guidelines · Yahoo’s sender requirements

Gmail counts messages from the same primary domain, including its subdomains. If the combined volume reaches roughly 5,000 messages to personal Gmail accounts in 24 hours, Gmail can classify the domain as a bulk sender. That status persists if volume later falls. Yahoo assesses significant sending volume without publishing a fixed cutoff. Gmail’s bulk-sender FAQ · Yahoo’s Sender Hub FAQ

What makes authentication worth getting right in the first place is everything it protects: a domain with strong authentication and a clean sending history is also one that holds onto trust through the kind of volume swings IP warming is built to manage.

Frequently asked questions

SPF, DKIM, and DMARC explained simply, what does each one actually do?
SPF checks whether the sending server is authorized for the envelope sender’s domain. DKIM checks a signature made by the signing domain. DMARC passes when either check succeeds for a domain aligned with the From address the customer sees.
What is DMARC authentication and why do I need it?
DMARC lets receiving servers check whether a domain that authenticated the message matches the domain in the visible From address under your alignment rules. Your DMARC record tells providers how you want them to handle mail when neither SPF nor DKIM produces an aligned pass.
What are DMARC DNS records, and where do I add them?
Look for the TXT record at _dmarc.yourdomain.com in your domain’s DNS. If you already have a valid policy there, keep it. If you’re setting one up for the first time, p=none lets you start monitoring. Add a reporting address if you want to receive aggregate reports.
Do I need all three if I send fewer than 5,000 emails a day?
Gmail and Yahoo require at least SPF or DKIM from all senders. Both require bulk senders to use SPF and DKIM and publish a DMARC policy. Gmail assesses volume sent to personal Gmail accounts from the same primary domain. Yahoo uses its own bulk-sender criteria.

Related terms

Ready to make the switch?

Join hundreds of Shopify entrepreneurs who've already made Spoks their go-to marketing platform.

See pricing →
A selection of email campaigns designed and sent with Spoks