All Articles
MarTech 5 min read

SPF, DKIM and DMARC Explained for Marketers

A non-technical guide to email authentication — what SPF, DKIM, and DMARC actually do, why they affect your deliverability, and how to set them up without calling your IT team every five minutes.

Deenadhayalan Pongiyanan
Deenadhayalan Pongiyanan
Digital Marketing & MarTech Specialist

Why Email Authentication Matters

If your marketing emails land in spam, or worse — get rejected entirely — email authentication is the first place to look.

Most marketers know these three acronyms exist, but few actually understand what they do or how to verify they’re working correctly. This guide fixes that.


The Problem: Email Spoofing

Email was designed in an era when trust was assumed. Anyone can send an email claiming to be newsletter@yourcompany.com. Spam filters and inbox providers (Gmail, Outlook) needed a way to verify that emails actually come from the domain they claim to be from.

SPF, DKIM, and DMARC are the three-layer solution to this problem.


SPF — Sender Policy Framework

What it is: A DNS record that lists which IP addresses and servers are authorised to send email on behalf of your domain.

How it works:

When Gmail receives an email claiming to be from @yourbrand.com, it checks your domain’s DNS for an SPF record and verifies that the sending IP is on the approved list.

Example SPF record:

v=spf1 include:_spf.google.com include:salesforce.com include:amazonses.com ~all

Breaking it down:

  • v=spf1 — declares this is an SPF record
  • include:_spf.google.com — authorises Google’s mail servers
  • include:salesforce.com — authorises Salesforce Marketing Cloud
  • ~all — softfail: emails from other IPs will be tagged as suspicious (not rejected)

Marketer tip: Every ESP (email service provider) you add — Mailchimp, HubSpot, Salesforce MC — needs to be included in your SPF record.

Common mistake: Adding too many include: directives. SPF has a 10 DNS lookup limit. Exceeding this causes your SPF to fail silently.


DKIM — DomainKeys Identified Mail

What it is: A cryptographic signature added to every email you send. The receiving server uses a public key (published in your DNS) to verify the signature.

How it works:

  1. Your ESP generates a public/private key pair
  2. The private key signs each outgoing email’s headers and body
  3. The public key is published as a DNS TXT record on your domain
  4. Gmail checks the signature against the public key

Example DKIM DNS record:

mail._domainkey.yourbrand.com  TXT  "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQ..."

Why it matters: DKIM proves the email was not tampered with in transit. It’s the “wax seal” on your digital envelope.

Marketer tip: If you switch ESPs or add a new sending domain, always generate new DKIM keys and update your DNS records.


DMARC — Domain-based Message Authentication Reporting and Conformance

What it is: A policy that tells inbox providers what to do with emails that fail SPF or DKIM — and sends you reports when they do.

DMARC is the orchestrator: It ties SPF and DKIM together and enforces your policy.

Example DMARC record:

_dmarc.yourbrand.com  TXT  "v=DMARC1; p=quarantine; rua=mailto:dmarc@yourbrand.com; pct=100"

Breaking it down:

  • p=quarantine — emails failing authentication go to spam (not inbox)
  • p=reject — emails failing authentication are rejected entirely
  • p=none — monitoring mode only (useful for initial setup)
  • rua=mailto: — where to send aggregate reports
  • pct=100 — apply policy to 100% of emails

DMARC Rollout Strategy

PhasePolicyGoal
Week 1–2p=noneCollect reports, identify all sending sources
Week 3–4p=quarantine; pct=10Test impact on 10% of traffic
Week 5+p=quarantine; pct=100Full quarantine enforcement
Month 2+p=rejectFull rejection (maximum protection)

Checking Your Current Status

Quick tools to verify your setup:

# Check SPF
nslookup -type=txt yourdomain.com

# Check DMARC
nslookup -type=txt _dmarc.yourdomain.com

Or use these web tools:


Google’s 2024 Sender Requirements

As of February 2024, Google requires bulk senders (1,000+ emails/day to Gmail) to have:

  1. ✅ Valid SPF record
  2. ✅ Valid DKIM signing
  3. ✅ DMARC policy (p=none at minimum)
  4. ✅ One-click unsubscribe header

Brands that don’t meet these requirements see significantly lower inbox placement rates.


Lessons from Implementation at Scale

At Health & Glow and Kushals, setting up proper email authentication was part of a broader CRM infrastructure overhaul:

  • Tracking loss reduced by 40% after implementing proper domain authentication alongside MMP setup
  • Open rates improved 12% after moving from shared IPs to dedicated sending domains with proper DKIM
  • WhatsApp Business verification also benefited from having a properly authenticated domain

The technical setup takes 2–4 hours. The deliverability dividend lasts for years.


Quick Checklist

  • SPF record exists and includes all your ESPs
  • SPF has fewer than 10 DNS lookups
  • DKIM keys configured for all sending domains
  • DMARC record exists (p=none at minimum)
  • DMARC reporting email set up and being monitored
  • Listed in Google Postmaster Tools

Need help auditing your email authentication setup? Get in touch →

#email #deliverability #SPF #DKIM #DMARC #email-marketing