Set up SPF first, enable DKIM signing next, then publish DMARC in monitoring mode before enforcing quarantine or rejection. Together, these checks provide email authentication for your store and make domain spoofing harder.
For ecommerce email deliverability, alignment matters as much as passing individual checks. Your order confirmations and campaigns may use different platforms, so start by identifying every system sending on your behalf.
Key Takeaways
- Configure every sending platform, including transactional email, marketing automation, support tools, and employee mail.
- Publish SPF and DKIM before enforcing DMARC. Monitor for at least 48 hours and a complete sending cycle to confirm legitimate emails pass.
- Authentication reduces spoofing risk, but consent, complaints, and sending reputation still affect inbox placement.
How SPF, DKIM, and DMARC Work Together
Each protocol answers a different question about an outgoing message.
| Protocol | What the receiver checks | DNS location |
|---|---|---|
| SPF | Is this server authorized to send for the envelope sender domain? | TXT at that domain |
| DKIM | Does the message’s cryptographic signature verify? | TXT at selector._domainkey.domain |
| DMARC | Does SPF or DKIM pass and align with the visible From domain? | TXT at _dmarc.domain |
SPF (Sender Policy Framework) authorizes sending IP addresses and services. DomainKeys Identified Mail uses a private key to create a digital signature over selected headers and a body hash. Receivers retrieve its public key from DNS to detect changes.
DMARC connects authentication to the address shoppers see. With default relaxed alignment, related subdomains can align through the same organizational domain.
SPF and DMARC use DNS TXT records. A DNS TXT record can also publish the DKIM signing key, although platforms may instead ask you to add a CNAME pointing to their hosted key.
Your primary MX records route inbound email. They’re separate from these outbound authentication checks.
Map Every Ecommerce Sending Service
Before editing DNS, inventory Shopify notifications, Klaviyo or Omnisend campaigns, helpdesk replies, Google Workspace or Microsoft 365, and any application using Amazon SES or SendGrid.
For each service, record the visible From address, envelope sender domain (often shown in Return-Path), DKIM signing domain, and required DNS entries.
Platforms configure these differently. One may host your DKIM key behind CNAME records; another provides a TXT value. Some manage the envelope sender themselves, so adding their SPF include to your root domain achieves nothing.
Where supported, separate marketing and transactional traffic into distinct sending streams. This improves reporting and operational control, although subdomains don’t guarantee reputation isolation.
Our ecommerce site setup guide places domain-based customer email alongside other store-launch essentials.
Step 1: Publish One SPF Policy per Sending Hostname
Build the authorization record
For a hostname sending only through Amazon SES, an illustrative SPF policy is:
v=spf1 include:amazonses.com -all
Here, v=spf1 identifies SPF, include:amazonses.com authorizes servers covered by Amazon’s policy, and -all fails other sources.
Publish it as a TXT record at the envelope sender hostname your service uses. That might be a dedicated bounce subdomain rather than your storefront’s root domain.
If a policy already exists at that hostname, merge required authorizations into it. Don’t create a second SPF record.
Avoid lookup and identity mistakes
SPF permits at most 10 DNS-lookup-causing terms during evaluation, including nested includes. Exceeding that limit can produce permerror.
An SPF pass authenticates the envelope sender domain, not automatically the visible From address. For DMARC, those domains must align unless aligned DKIM supplies the pass.
Also, don’t remove an existing authorization until the associated service stops sending. Otherwise, a DNS cleanup can break receipts or support replies.
Step 2: Enable DKIM for Every Sending Platform
Publish the platform-generated key
A DKIM record name follows this structure:
mail._domainkey.example.com
Here, mail is the selector. A typical RSA TXT value starts with v=DKIM1; k=rsa; p=, followed by the complete public key generated by your platform.
The tags identify the DKIM version, key type, and public key. Keep the private key inside the sending platform.
Publish the exact TXT or CNAME entries supplied for your domain, then activate signing in the platform. Publishing DNS alone doesn’t make a sender sign messages. Google’s DKIM setup instructions describe this distinction for Workspace.
Find the actual selector
Google Workspace commonly uses google. Microsoft 365 uses selector1 and selector2, generally with CNAME records.
SendGrid selectors vary by configuration; you may encounter sendgrid, while domain authentication commonly uses s1 and s2. Never assume a selector from the provider’s name.
Instead, open a sent message’s email header and find DKIM-Signature. Its s= value identifies the DKIM selector, while d= identifies the signing domain. Together, these values locate the DNS record for the DKIM signature.
Step 3: Start DMARC in Monitoring Mode
Publish a non-enforcing policy
For the documentation domain example.com, a monitoring DMARC record at _dmarc.example.com could contain:
v=DMARC1; p=none; rua=mailto:dmarc@example.com
Use your domain and a working reporting mailbox when configuring it. v=DMARC1 identifies the protocol, p=none requests monitoring without policy-based quarantine or rejection, and rua requests aggregate reports.
A none policy doesn’t guarantee delivery. Receivers still apply spam filtering and local rules. The DMARC specification describes authentication alignment and receiver policy handling.
Read reports before changing policy
DMARC reports usually arrive as compressed XML. A reporting dashboard makes them easier to interpret, but the important fields remain the same: source IP, message count, authentication results, alignment results, and disposition.
Match sending IPs to your inventory. Then investigate legitimate sources that fail authentication. Compare raw authentication results with policy evaluation because an SPF pass can still be unaligned.
Optional ruf reporting requests message-specific failure reports. Many receivers don’t provide them, and reports may expose message data. Aggregate reporting is the safer starting point.
Step 4: Verify Real Transactional and Marketing Messages
Test actual sending paths rather than relying solely on a DNS checker.
- Trigger an order confirmation, shipping update, password reset, and marketing message through their normal systems.
- In Gmail, choose Show original. Other clients offer message-source or header details; “Show details” may expose only a summary.
- Find the receiving server’s
Authentication-Resultsheader and look forspf=pass,dkim=pass, anddmarc=pass. - Compare the visible From domain with
smtp.mailfromfor SPF andheader.dfor DKIM to identify alignment.
DNS changes can take 24 to 48 hours to appear everywhere because of caching, although many appear sooner.
If SPF fails, inspect the envelope sender’s policy for missing authorization, duplicate records, or excessive lookups. If DKIM fails, check the selector, public key, signing activation, and message modification.
When both pass but DMARC fails, investigate alignment. Google’s common Gmail sender issues also covers authentication-related delivery problems.
Step 5: Move DMARC Toward Enforcement
Allow at least 48 hours of monitoring before DMARC enforcement. This gives DNS caches time to update and reports time to arrive, but it doesn’t prove that every legitimate sender has appeared.
Monitor through a complete sending cycle. A weekly newsletter or rarely triggered refund notice might not appear within two days.
Once legitimate traffic consistently passes, move gradually through these policies at the same _dmarc hostname.
| Policy | Requested treatment for DMARC failures |
|---|---|
p=none |
Monitor without requesting enforcement |
p=quarantine |
Treat as suspicious, often placing it in spam |
p=reject |
Refuse the message |
Keep rua reporting enabled throughout. If legitimate messages fail, fix their authentication or alignment before tightening the policy.
Receivers decide whether to apply your requested treatment. Publish DMARC for non-sending domains too, since a reject policy helps discourage impersonation.
Protect Inbox Placement Beyond Authentication
Under Google’s email sender guidelines, senders exceeding 5,000 messages daily to personal Gmail accounts need SPF, DKIM, and DMARC. The DMARC policy may remain none.
Bulk marketing and subscribed messages also need one-click unsubscribe support and a visible unsubscribe link. Purely transactional messages, such as password resets, don’t carry the same one-click requirement.
Keep bounce handling, suppression lists, and complaint monitoring connected to every automation. An authenticated campaign can still reach spam when recipients don’t want it.
For cart reminders, exclude payment details and full addresses; use a secure checkout link instead. Meanwhile, our ecommerce welcome email flow explains how to set expectations after signup.
SPF, DKIM, and DMARC FAQ
Is SPF required for DKIM?
No. DKIM works independently of SPF. However, Gmail’s bulk-sender requirements call for both, and DMARC needs at least one passing, aligned authentication method.
Does Gmail handle authentication automatically?
Personal Gmail accounts use Google’s sending infrastructure. Google Workspace custom domains still need domain-specific configuration, while separate ecommerce platforms need their own authentication setup.
Will DMARC stop every spoofed email?
No. It helps receivers identify unauthorized use of your exact domain. It doesn’t stop lookalike domains, misleading display names, or abuse of a compromised authorized account.
Keep Every Sending Path Authenticated
SPF authorizes infrastructure, DKIM verifies signatures, and DMARC ties authentication to your visible domain. Your configuration needs to cover every system that emails shoppers.
Start with monitoring, resolve legitimate failures, then enforce a stronger policy. Keep reviewing reports whenever you add an app or change providers, because authentication needs maintenance alongside your store’s other operating systems.


