Blog
DMARC, SPF & DKIM Explained: Stop Hackers from Spoofing Your Email

Key Takeaways
- SPF, DKIM, and DMARC are three email authentication protocols that work together to stop hackers from sending emails that look like they came from your domain.
- Think of them as a guest list (SPF), a wax seal (DKIM), and a bouncer (DMARC) — each plays a different role, and you need all three.
- As of February 2024, Google and Yahoo require DMARC for anyone sending more than 5,000 emails per day.
- Without email authentication, your legitimate emails are more likely to land in spam — and scammers can impersonate your business at will.
- Setting up all three typically takes under an hour if you know what you’re doing.
Why Email Authentication Matters More Than Ever
Before we get into the technical details, let’s talk about why this matters right now.Google and Yahoo’s 2024 DMARC Requirement
In February 2024, Google and Yahoo rolled out new sender requirements. If you send more than 5,000 emails per day, you must have DMARC, SPF, and DKIM properly configured — or your emails may be rejected outright. Even if you send far fewer emails, these protocols affect whether your messages land in the inbox or the spam folder. Studies consistently show that domains with proper email authentication see 10–20% higher deliverability rates compared to unauthenticated domains.The Real Cost of Email Spoofing
When a hacker spoofs your domain, the damage goes beyond a single phishing email:- Customers lose trust when they receive scam emails “from” your business
- Your domain reputation drops, making it harder for your real emails to reach inboxes
- You could face legal liability if spoofed emails are used to defraud your clients
- Search engines may flag your site as unsafe if your domain is associated with spam activity
The Three Protocols: SPF, DKIM & DMARC Explained
Here’s the simplest way to understand how these three protocols work together. Imagine your email domain is a VIP party:| Protocol | Analogy | What It Does |
| SPF | The guest list | Specifies which mail servers are allowed to send emails on behalf of your domain |
| DKIM | The wax seal on an envelope | Adds a cryptographic signature to prove the email hasn’t been tampered with in transit |
| DMARC | The bouncer | Tells receiving servers what to do when an email fails SPF or DKIM checks |
SPF: The Guest List
What Is SPF?
SPF (Sender Policy Framework) is a DNS record that lists every mail server authorized to send email from your domain. When someone receives an email claiming to be from yourdomain.com, their mail server checks your SPF record to see if the sending server is on the “guest list.” If the server isn’t listed? The email is flagged as suspicious.How SPF Works Step by Step
- You publish an SPF record in your domain’s DNS settings
- Someone sends an email from your domain
- The receiving mail server looks up your SPF record
- It checks whether the sending server’s IP address matches your list
- If it matches → SPF passes. If not → SPF fails.
Setting Up SPF
Your SPF record is a TXT record in your DNS that looks something like this: v=spf1 include:_spf.google.com include:sendgrid.net -all Here’s what each part means:- v=spf1 — Identifies this as an SPF record
- include:_spf.google.com — Authorizes Google Workspace to send on your behalf
- include:sendgrid.net — Authorizes SendGrid (or whatever email service you use)
- -all — Tells receivers to reject any email from servers not on this list (use ~all for a softer “mark as suspicious” approach)
Common SPF Mistakes
- Multiple SPF records: Having two TXT records starting with v=spf1 breaks everything. Merge them into one.
- Too many DNS lookups: SPF allows a maximum of 10 DNS lookups. Exceeding this causes your SPF to fail silently.
- Forgetting third-party senders: If you use Mailchimp, HubSpot, or any other platform that sends email on your behalf, they need to be included.
DKIM: The Wax Seal
What Is DKIM?
DKIM (DomainKeys Identified Mail) adds a digital signature to every email you send. Think of it as a wax seal on a letter — it proves the message actually came from you and hasn’t been altered in transit. Unlike SPF (which checks the sending server), DKIM verifies the message itself.How DKIM Works Step by Step
- Your mail server generates a pair of cryptographic keys: a private key (kept secret on your server) and a public key (published in your DNS)
- When you send an email, your server uses the private key to create a unique signature for that message
- The receiving server retrieves your public key from DNS
- It uses the public key to verify the signature
- If the signature checks out → the email is authentic and untampered
Setting Up DKIM
DKIM setup varies by email provider, but the general process is:- Generate DKIM keys through your email provider’s admin panel (Google Workspace, Microsoft 365, etc.)
- Add the public key as a TXT or CNAME record in your DNS. It usually looks like:
- Enable DKIM signing in your email provider’s settings
- Test it by sending a test email and checking the headers for dkim=pass
Common DKIM Mistakes
- Not enabling DKIM after adding the DNS record: The DNS record alone isn’t enough. You have to activate signing in your provider.
- Key rotation neglect: DKIM keys should be rotated periodically (every 6–12 months) for security. Most businesses never do this.
- Using a key that’s too short: Use at least a 1024-bit key. 2048-bit is the current best practice.
DMARC: The Bouncer
What Is DMARC?
DMARC (Domain-based Message Authentication, Reporting & Conformance) ties SPF and DKIM together and tells receiving servers what to do when an email fails authentication. It’s the bouncer who checks the guest list and the wax seal — and decides whether to let the email in, quarantine it, or reject it entirely. DMARC also gives you reporting, so you can see who’s sending email using your domain (both legitimate senders and attackers).How DMARC Works Step by Step
- You publish a DMARC policy in your DNS
- A receiving server gets an email claiming to be from your domain
- It checks SPF and DKIM
- If either one passes and the domain aligns (this is called “alignment”), DMARC passes
- If both fail, the receiving server follows your DMARC policy: none (do nothing), quarantine (send to spam), or reject (block entirely)
- The receiving server sends you aggregate reports about what it saw
DMARC Setup Guide: Step by Step
Here’s how to create your DMARC record: Step 1: Start with a monitoring-only policy Add this TXT record to your DNS at _dmarc.yourdomain.com: v=DMARC1; p=none; rua=mailto:dmarc-reports@yourdomain.com; ruf=mailto:dmarc-reports@yourdomain.com; pct=100- p=none — Monitor only; don’t take action on failures yet
- rua=mailto: — Where to send aggregate reports
- ruf=mailto: — Where to send forensic (failure) reports
- pct=100 — Apply this policy to 100% of emails
- Move to p=quarantine (sends failing emails to spam)
- Monitor for another 1–2 weeks
- Move to p=reject (blocks failing emails entirely)
Common DMARC Mistakes
- Jumping straight to p=reject: This can block legitimate emails if SPF and DKIM aren’t perfectly configured. Always start with p=none.
- Ignoring the reports: DMARC reports tell you exactly what’s happening. Not reading them defeats the purpose.
- Forgetting subdomain policies: By default, DMARC applies to your main domain. Use sp=reject to cover subdomains too.
How to Check If Your Email Authentication Is Set Up
You don’t need to guess whether SPF, DKIM, and DMARC are working. Here are three ways to verify your email authentication setup:1. MXToolbox (Free)
Go to mxtoolbox.com and use their SuperTool:- Enter your domain and select SPF Record Lookup, DKIM Lookup, or DMARC Lookup
- It will show you exactly what’s configured (or missing)
2. Google’s Check MX Tool
If you use Google Workspace, Google’s Check MX tool validates your DNS records and flags issues.Get a FREE Audit
We'll perform a comprehensive SEO, AEO, GEO & CRO audit of your website — completely free — and show you exactly how to outrank your competitors.
Don't have a site yet? Get in touch →
3. Send a Test Email
Send an email to a Gmail account and open it. Click the three dots → “Show original.” Look for:- spf=pass
- dkim=pass
- dmarc=pass
What Happens Without Email Authentication?
Let’s be blunt about what you’re risking if you skip this:| Without Authentication | With Full SPF + DKIM + DMARC |
| Anyone can spoof your domain | Only authorized servers can send as you |
| Emails land in spam more often | Higher inbox placement rates |
| No visibility into spoofing attempts | Regular reports on who’s using your domain |
| Violates Google/Yahoo sender requirements | Fully compliant with 2024 requirements |
| Brand reputation at risk | Brand and customers protected |
Why You Need All Three (Not Just One)
A question we hear often: “Can’t I just set up SPF and call it done?” No. Here’s why:- SPF alone verifies the sending server but doesn’t check if the message was altered. A hacker could intercept and modify the email after it leaves an authorized server.
- DKIM alone verifies the message integrity but doesn’t tell receivers which servers are authorized to send for you.
- DMARC alone is meaningless without SPF or DKIM to check against. It’s a policy layer — it needs the other two to function.
Frequently Asked Questions
How long does it take to set up SPF, DKIM, and DMARC?
Does email authentication affect SEO?
Do I need email authentication if I don’t send bulk emails?
Can I set up DMARC, SPF, and DKIM myself, or do I need a professional?
Get Your Email Authentication Done Right
Setting up SPF, DKIM, and DMARC correctly is one of the highest-impact, lowest-cost security improvements you can make for your business. But the technical details matter — one misconfigured record can block your own emails or leave gaps that hackers exploit. Want this done right? eSEOspace handles technical SEO and security setup so you can focus on your business. Our team configures and monitors email authentication as part of our comprehensive technical SEO services, ensuring your domain is protected, compliant, and delivering emails to inboxes — not spam folders. 👉 Contact eSEOspace to get your email authentication set up correctly the first time.Put this into action with eSEOspace
We help businesses grow with maintenance & support that actually performs. Explore the services behind this guide:
Get a FREE GEO/AEO/SEO Audit
We'll analyze your site's SEO, GEO, AEO & CRO — completely free — and show you exactly how to get found across Google and AI answers.
Don't have a site yet? Get in touch →
Great — your audit is on the way!
We'll send your free SEO/GEO/AEO/CRO audit within the next few hours. Where should we send it?
You're all set! ✓
Your free audit is being prepared — check your inbox in the next few hours. Talk soon!
On this page
- Key Takeaways
- Why Email Authentication Matters More Than Ever
- The Three Protocols: SPF, DKIM & DMARC Explained
- SPF: The Guest List
- DKIM: The Wax Seal
- DMARC: The Bouncer
- How to Check If Your Email Authentication Is Set Up
- What Happens Without Email Authentication?
- Why You Need All Three (Not Just One)
- Frequently Asked Questions
- Get Your Email Authentication Done Right






