Skip to main content
Start your own AI-powered blog — freeGet started →

SPF, DKIM, and DMARC Explained Plainly (For People Who Don't Speak DNS)

Podcast episode2 voices
3:22
SPF, DKIM, and DMARC Explained Plainly (For People Who Don't Speak DNS)
Photo by Mariia Shalabaieva on unsplash

SPF, DKIM, and DMARC Explained Plainly (For People Who Don't Speak DNS)

If you've ever tried to set up email for an app or a domain, you've hit three acronyms that sound like rejected Star Wars droids: SPF, DKIM, DMARC. The documentation explains them in dense networking jargon, you copy-paste some DNS records hoping for the best, and you never really understand what you did.

Let's fix that. Here's what these three actually do, in plain English, and why your email is doomed without them.

Quick Answer

SPF, DKIM, and DMARC are three DNS records that together prove your email is really from you so providers trust it instead of dumping it in spam.

  • SPF says: "These servers are allowed to send email for my domain."
  • DKIM says: "This message is genuinely mine and wasn't tampered with."
  • DMARC says: "If something fails the above checks, here's what to do — and tell me about it."

You need all three. In 2026, major providers basically require them.

DNS and network configuration on a screen Photo by Jordan Harrison on Unsplash

The problem they solve

Email was designed in a more trusting era. By default, anyone can send an email claiming to be from your domain — there's nothing in the basic protocol stopping a spammer from putting your address in the "from" field. That's how phishing and spoofing work.

SPF, DKIM, and DMARC are the patches that fixed this. They give providers a way to verify that email claiming to be from your domain actually is. Without them, you look exactly like a spoofer — and get treated like one.

SPF: the guest list

SPF (Sender Policy Framework) is a list, published in your DNS, of the servers allowed to send email on behalf of your domain.

Think of it as a bouncer's guest list. When an email arrives claiming to be from you, the receiving provider checks: "Is the server that sent this on the approved list?" If yes, it passes SPF. If a random server sent it, SPF fails — a strong spam signal.

The catch: SPF alone checks the envelope, and it can break when email is forwarded. It's necessary but not sufficient — which is exactly why you need the other two.

DKIM: the tamper-proof seal

DKIM (DomainKeys Identified Mail) adds a cryptographic signature to every message. Your sending server signs the email with a private key; the matching public key lives in your DNS. The receiving provider checks the signature against that public key.

If they match, two things are proven: the email genuinely came from your domain, and it wasn't altered in transit. Think of it as a tamper-evident seal on a package — if the seal is intact and genuine, you know it's the real thing, untouched.

DKIM survives forwarding better than SPF, which is part of why you want both working together.

DMARC: the policy and the report

DMARC (Domain-based Message Authentication, Reporting and Conformance) ties it all together. It does two jobs:

  1. Policy: It tells providers what to do with email that fails SPF and DKIM — do nothing, quarantine it (spam folder), or reject it outright.
  2. Reporting: It sends you reports about who's sending email claiming to be from your domain — including spoofers trying to impersonate you.

DMARC is what turns SPF and DKIM from passive checks into an enforced policy. Without it, failures are just… noticed. With it, you decide the consequence and gain visibility into abuse.

How they work together

Here's the whole system in one table:

RecordQuestion it answersAnalogy
SPFIs this server allowed to send for the domain?Guest list at the door
DKIMIs this message genuine and unaltered?Tamper-proof seal
DMARCWhat to do if checks fail, and who's spoofing me?Security policy + report

Each covers a gap the others leave. SPF can break on forwarding; DKIM handles that. Neither tells providers what to do on failure; DMARC does. Together they form a complete trust chain — which is why "just set up SPF" isn't enough.

Setting them up

The good news: this is a one-time job. The broad steps:

  1. SPF: Publish a TXT record listing your authorized senders (your email service provides the exact value).
  2. DKIM: Your sending service generates a key pair; you publish the public key as a DNS record.
  3. DMARC: Publish a TXT record with your policy (start with monitoring, then tighten to quarantine/reject) and a reporting address.

Any decent transactional email API or email automation platform gives you the exact records to paste in and a way to verify they're passing. Start DMARC in monitoring mode, confirm your legitimate mail passes, then ratchet up enforcement. This whole setup is the foundation of email infrastructure that actually works.

The bottom line

SPF, DKIM, and DMARC aren't optional networking trivia — they're the trust chain that decides whether your email reaches humans or rots in spam. SPF is the guest list, DKIM is the tamper-proof seal, DMARC is the policy and the alarm. You need all three working together.

Set them up once, start DMARC in monitoring mode, confirm your mail passes, then tighten enforcement. It's an afternoon of DNS work that quietly determines whether everything else you do with email even matters.

The Hidden Risks of Partial Implementation

Deploying only one or two of these protocols creates a false sense of security while leaving critical gaps. For example, SPF alone might pass initial checks, but forwarded emails (e.g., via mailing lists or auto-forwarding rules) will fail SPF because the forwarding server isn’t on your original guest list. DKIM signatures, however, remain intact during forwarding, which is why providers like Gmail and Microsoft now prioritize DKIM over SPF for forwarded messages. If you’ve only set up SPF, your forwarded emails—including legitimate ones—will likely land in spam or be silently discarded. Similarly, skipping DMARC means providers have no guidance on how to handle failures, often defaulting to quarantine or rejection even for minor misconfigurations. The takeaway: partial implementation is worse than none at all because it lulls you into thinking you’re protected while still triggering the same penalties as a spoofer.

Another underappreciated risk is the interaction between these protocols and third-party services. Many businesses use multiple tools (e.g., CRM, marketing automation, support ticketing) that send emails on their behalf. If you’ve only authorized your primary email service in SPF but not your CRM, those CRM-sent emails will fail SPF checks. DKIM can mitigate this if properly configured for each service, but it requires generating and publishing unique DKIM keys for every sender. DMARC reports will surface these failures, but only if you’re actively monitoring them. The lesson here is that every new tool added to your email ecosystem must be explicitly accounted for in your DNS records—or it will undermine your entire authentication chain.

How Providers Actually Use These Records (And Why It Matters)

Email providers don’t treat SPF, DKIM, and DMARC as binary pass/fail checks. Instead, they use them as inputs to complex, often opaque reputation algorithms. For instance, Gmail’s spam filters assign different weights to each protocol based on context. A message that passes DKIM but fails SPF might still be delivered if the DKIM signature is strong and the sending domain has a long history of good behavior. Conversely, a message that passes both SPF and DKIM but comes from a domain with no DMARC policy might be deprioritized because the provider has no way to know if the sender is legitimate or a spoofer. Microsoft’s Outlook.com takes this further by actively penalizing domains that lack DMARC, even if SPF and DKIM pass, because the absence of a DMARC policy is itself a red flag.

The enforcement landscape is also evolving. In 2024, Google and Yahoo began requiring DMARC for bulk senders (those sending over 5,000 messages per day), with non-compliant domains facing automatic spam folder placement or outright rejection. Other providers are following suit, with smaller ESPs (Email Service Providers) increasingly adopting similar policies. What’s more, providers are getting stricter about alignment—meaning the domain in the "from" address must match the domains used in SPF and DKIM checks. A mismatch (e.g., sending from @yourdomain.com but using a DKIM key for @emailservice.com) can trigger failures even if the records technically pass. This is why it’s critical to:

  • Ensure all sending services use your domain (or a subdomain) in the "from" address.
  • Configure DKIM keys for each service using the same domain (or a subdomain) as the "from" address.
  • Publish DMARC policies that enforce alignment (using the "aspf" and "adkim" tags set to "s" for strict alignment).

Failure to align domains is one of the most common causes of deliverability issues, yet it’s rarely explained in setup guides.

Troubleshooting: What to Do When Emails Still Go to Spam

Even with SPF, DKIM, and DMARC properly configured, emails can still land in spam. The culprit is usually one of these overlooked issues:

1. DNS Propagation Delays and Caching DNS changes can take up to 48 hours to fully propagate, and some providers cache records aggressively. If you’ve recently updated your records, wait at least 24 hours before testing. Use tools like MXToolbox or Google’s Admin Toolbox to verify that your records are live and correct. If you’re testing from a corporate network, your local DNS resolver might be caching old records—try testing from a different network or using a VPN to rule this out.

2. Subdomain Misconfigurations Many businesses use subdomains (e.g., mail.yourdomain.com) for sending emails, but forget to configure SPF, DKIM, and DMARC for those subdomains. Providers treat subdomains as separate entities, so a DMARC policy on your root domain (yourdomain.com) won’t apply to mail.yourdomain.com unless explicitly inherited. To fix this:

  • Publish SPF and DKIM records for each subdomain used for sending.
  • Add a DMARC record to the subdomain (e.g., _dmarc.mail.yourdomain.com) or use the "sp" tag in your root domain’s DMARC record to specify a subdomain policy.

3. IP Reputation and Warmup Even with perfect authentication, a poor IP reputation can doom your emails. If you’re using a new IP address (e.g., from a new email service), providers will treat it with suspicion until it’s "warmed up"—a process of gradually increasing sending volume to build trust. Skipping warmup or sending large volumes too quickly will trigger spam filters. Similarly, if your IP was previously used by a spammer (common with shared IP pools), your emails will be penalized. Use tools like SenderScore or Google Postmaster Tools to check your IP reputation and follow a structured warmup schedule.

4. Content and Engagement Signals Authentication is just one part of the equation. Providers also analyze content (e.g., spammy keywords, excessive links) and engagement (e.g., open rates, spam complaints). A message that passes SPF, DKIM, and DMARC can still be flagged if recipients mark it as spam or ignore it. To mitigate this:

  • Avoid spam trigger words (e.g., "urgent," "free," "guaranteed") in subject lines and body copy.
  • Maintain a healthy subscriber list by regularly removing inactive or unengaged recipients.
  • Monitor engagement metrics (open rates, click-through rates) and adjust your content strategy accordingly.

If you’ve ruled out all of the above, the next step is to analyze DMARC reports. These XML reports, sent daily by providers like Google and Microsoft, detail every authentication failure and the IP addresses responsible. Look for patterns—e.g., failures from a specific service or region—to pinpoint misconfigurations or spoofing attempts. Most email services offer DMARC report parsers to simplify this analysis.

Key Takeaways

  • SPF, DKIM, and DMARC are mandatory DNS records that collectively prove your email’s legitimacy—without them, major providers will increasingly treat your messages as spam or reject them outright by 2026.
  • SPF acts as a 'guest list' for authorized sending servers, but it breaks during email forwarding; DKIM compensates by adding a cryptographic signature that survives transit and proves the message wasn’t tampered with.
  • DMARC ties SPF and DKIM together by defining enforcement policies (monitor, quarantine, or reject) and providing visibility into spoofing attempts via detailed failure reports sent to your domain.
  • Always deploy DMARC in monitoring mode first (p=none), verify legitimate mail passes checks, then gradually tighten to quarantine (p=quarantine) or reject (p=reject) to avoid blocking your own emails.
  • Each new email service or tool you use must be explicitly authorized in SPF and configured with DKIM; DMARC remains a single, domain-wide policy that governs all senders.
  • Misconfigurations (e.g., missing senders in SPF or incorrect DKIM keys) are the most common cause of deliverability failures—use your email provider’s verification tools to confirm records are correct before enforcing DMARC.

Frequently Asked Questions

Can I get away with just SPF and DKIM, skipping DMARC?

Increasingly no. Major providers now expect DMARC for bulk senders, and without it you have no protection against spoofers impersonating your domain and no visibility into who's trying. Set up all three.

Will setting these up wrong block my own email?

A misconfigured DMARC policy set to "reject" can block legitimate mail — which is exactly why you start in monitoring mode, confirm your real mail passes, then tighten gradually. Done in that order, it's safe.

Do I need to redo these for every email tool I use?

You need to authorize each sending service. Adding a new tool usually means adding it to SPF and setting up DKIM for it. DMARC stays as your overall policy. Keep your records updated as you add or remove senders.

C
Corvex

1 followers

Comments

Sign in to join the conversation

No comments yet. Be the first to share your thoughts!

More from Corvex

Recommended for you