Facebook tracking pixel

MailGenius

DKIM vs SPF: Which Check Your Mail Needs

Most advice on DKIM vs SPF tells you to pick the stronger one. That's the mistake. They don't check the same thing, they don't break in the same places, and a pass from either one doesn't put you in the inbox.

Think of a real send. Your ESP connects from its server, your brand shows in the visible From line, and somewhere in the headers sits a signature. The receiver checks those three pieces separately. If you only fix the DNS record someone told you was "more important," you can still fail on forwarding, hit a lookup ceiling, or pass for the wrong domain entirely.

SPF and DKIM Compared on What Each Proves

Verdict first. SPF checks the sending server. DKIM checks the signed message. Neither replaces the other.

SPF answers one question. Was this server allowed to send for the envelope domain on this message? DKIM answers a different one. Did the domain named in the signature sign this message, and did the signed parts arrive unchanged?

What the receiver actually checks

With SPF, standardized in RFC 7208, you publish a DNS policy listing the servers authorized to send for a domain, as Valimail's summary of the Google and Yahoo requirements explains. The receiver evaluates that policy against the SMTP envelope sender, usually called the Return-Path or MAIL FROM domain, and the connecting server. It doesn't cryptographically protect the From address your reader sees.

With DKIM, standardized in RFC 6376, the sender attaches a cryptographic signature over selected headers and the body. The receiver retrieves the public key from DNS for the signing domain and selector, then verifies whether the signed content is intact. That signature travels with the message, so it often survives a forward that breaks SPF. It still doesn't, on its own, prove the visible From is trustworthy.

A message can pass SPF for a vendor domain and pass DKIM for that same vendor, while your brand in the From line gets no credit from either check.

SPF and DKIM compared on the checks that matter

Criterion SPF DKIM
Question it answers Was this sending server authorized? Was this message signed and unchanged?
Standard RFC 7208 RFC 6376
Published in DNS Authorized IPs, includes, and a final all Public key at selector._domainkey
Checked against Envelope sender (Return-Path or MAIL FROM) and connecting IP Selected headers and body in the DKIM-Signature
Protects visible From alone No No
Usual break Forwarding, or more than 10 DNS lookups A signed header or body rewritten in transit
After a typical forward Often fails Often still passes if signed content is intact
Bulk-sender requirement Required together with DKIM Required together with SPF

The rows people misread

Protects visible From alone is No for both, and that's where most confusion starts. People see spf=pass in the headers and assume the From they recognize was verified. It wasn't. SPF verified an envelope domain readers never see, and those two domains don't have to match.

DKIM gets misread the opposite way. A valid signature feels stronger because it's cryptographic, so teams assume it verifies the sender they display. It verifies the d= signing domain in the signature. If your platform signs with its own domain, DKIM passes for the platform, not for your brand. DMARC is the layer that later asks whether either passing domain matches From.

After a typical forward also matters more than it looks. Say a subscriber forwards your newsletter to a work address, or a mailing list redistributes it. The forwarding server usually isn't listed in your SPF record, so SPF fails for a legitimate message. If the forwarder leaves your signed headers and body alone, DKIM can still pass. That's not DKIM being "better." It's DKIM checking something that doesn't depend on the last connecting server.

Why bulk senders don't get to choose

The choice became non-optional in February 2024, when Google and Yahoo introduced requirements that made SPF and DKIM essential for high-volume senders, according to EmailLabs' timeline of the Google and Yahoo sender requirements. Google defines a bulk sender as an organization sending approximately 5,000 or more messages in a 24-hour period to personal Gmail accounts. Once a domain hits that threshold, it's treated as a bulk sender on an ongoing basis.

Bulk senders must authenticate with both SPF and DKIM, publish DMARC, and align the authenticated domain with the visible From domain. They also have to keep spam complaint rates below 0.3% as measured through Postmaster Tools. Regular senders need at least SPF or DKIM, so volume changes the minimum, not the logic.

For a marketer, sales team, or SaaS platform, that policy turned authentication from good practice into a delivery requirement. Troy Ericson's team at MailGenius sees the same pattern in plain terms. A record exists, but the delivered message tells a different story. Read the table for what each check proves, then look at the limit that breaks SPF before forwarding even enters the picture.

Forwarding Failures and the Ten Lookup Limit

A record can look short and still fail on every send. That's usually the 10-lookup limit, not a missing vendor.

SPF evaluation gets a budget. The flow below shows how a normal forwarding and lookup chain spends it.

A diagram illustrating how email forwarding chains can exceed the ten DNS lookup limit for SPF records.

How the budget gets spent

Receiving servers count DNS-triggering mechanisms across the entire SPF resolution path, including nested records reached through include and redirect, and the limit is 10 terms per evaluation, as RFC 7208 on the IETF Datatracker sets out. Go over it and the receiver returns permerror. That's a permanent configuration error, not a soft warning.

Mechanisms that spend the 10-lookup budget

Mechanism Counts toward the 10-lookup limit?
include Yes, plus every lookup inside the included record
a Yes
mx Yes
ptr Yes
exists Yes
redirect Yes, with its target chain
ip4 No
ip6 No
all No

Say your visible record lists four vendors. A marketing platform, a CRM, a transactional sender, and a helpdesk. Four includes looks safe. It isn't, because each vendor's included record runs its own lookups, and some of those point to further records. The receiver counts the whole unfolded chain, not the four lines you see. Add one more tool during a busy quarter and you cross 10 without anyone editing the core record carelessly.

That's why adding platforms one include at a time is the common failure. If you're untangling stacked vendor includes, this guide to SPF troubleshooting for email marketers walks through that specific cleanup. The practical move is to remove vendors you no longer use and keep a count of the expanded chain, not just your top-level text.

This short walkthrough shows the failure on a delivered message rather than in a DNS lookup tool.

Forwarding breaks the other check differently

SPF checks the server connecting on the last hop. When a legitimate message is forwarded, that server is the forwarder, and the original domain almost never listed it. SPF fails even though nobody spoofed anything.

DKIM travels inside the message. If the signed headers and body arrive intact, the signature can still verify after the forward. Verifiers support different canonicalization modes for headers and body, which is a technical way of saying some modes tolerate harmless whitespace or line-ending changes from a gateway, while stricter handling treats the body almost exactly as signed. Neither mode survives a mailing list that appends a footer to the body or rewrites the Subject line, because those edits change signed content.

Plain rule: DKIM loses to legitimate edits. SPF loses to legitimate forwards. Neither result is universally stronger.

On a direct send that never forwards, SPF can pass cleanly while a gateway edit breaks DKIM. On a forwarded send, the reverse happens. When only one of the two survives, the receiver needs another rule to decide whether that surviving pass counts for your From domain.

How DMARC Alignment Ties Them Together

A raw pass is not a DMARC pass. That's the sentence most setups fail on.

DMARC accepts a message when at least one authenticated identifier both passes and aligns with the visible From domain. The diagram below puts SPF and DKIM under that alignment rule, instead of treating them as two separate green check marks.

A diagram illustrating how DMARC alignment connects SPF and DKIM authentication protocols for email security standards.

Relaxed and strict mean two different matches

For DMARC authentication, the domain authenticated by SPF or DKIM must match the domain in the visible From header, and DMARC can accept either mechanism, or both, provided at least one aligns, as RFC 7489 on the IETF Datatracker defines it. Alignment comes in two modes.

  • Relaxed alignment: The authenticated domain and the From domain share the same organizational domain. Mail showing From at marketing.example.com can align with authentication at mailer.example.com.
  • Strict alignment: The domains must be an exact match. That same message would need authentication at marketing.example.com itself, not a sibling subdomain.

Most brands start relaxed because different tools naturally send from different subdomains. Strict gives tighter control, but it breaks faster when a vendor authenticates on a related subdomain you didn't plan for.

One send, watched closely

Say the visible From is [email protected]. Your ESP sends with a Return-Path on its own bounce domain, something at vendor.net. The receiver sees this, step by step.

  1. SPF evaluates vendor.net. The connecting server is authorized for vendor.net, so SPF passes. But vendor.net doesn't share an organizational domain with brand.com, so that pass is unaligned.
  2. DKIM evaluates the d= domain. If the ESP also signs with d=vendor.net, DKIM passes and is also unaligned. Two passes, zero alignment.
  3. DMARC fails. Neither passing domain matches brand.com under your published mode, so the checks worked for the wrong organization.

Now change one setting. Turn on custom-domain signing so the ESP signs with d=brand.com, or with an aligned subdomain under relaxed alignment. DKIM now passes and aligns. DMARC passes through DKIM even though SPF stays unaligned on the vendor Return-Path.

That's why several platforms can each hold their own DKIM selector while SPF remains one shared authorization list. Each selector lets a tool sign as your domain without sharing a private key across vendors. It also explains why troubleshooting from a DNS screenshot misleads people. The records exist. The question is whether the domain that passed is the domain in From.

If you want the alignment logic in more depth before you change records, you can improve deliverability with MailGenius by working through how those matches are evaluated. A passing check on an unrelated domain counts for nothing in DMARC, so stop collecting passes and start checking whose domain earned them.

Which Check Matters for Each Mail Stream

Your stack decides which failure you'll meet first. A newsletter, a CRM sequence, a helpdesk reply, and an agency send don't break in the same place.

Google recommends deploying both because SPF identifies an authorized sending server while DKIM helps prove a message was signed and not altered, as Google's guidance on SPF and DKIM for Workspace admins puts it. The useful question is narrower. What happens when this specific stream is forwarded, redistributed, or sent through another SaaS platform?

What to authenticate on four real mail streams

Mail stream What SPF must authorize What DKIM should sign Where alignment breaks
Newsletter via one ESP That ESP's include or IP range Brand domain or aligned subdomain From on the brand, Return-Path left on the ESP
CRM or cold sequence Each extra sending platform, inside 10 lookups Its own selector on an aligned domain A new tool added without a selector
Support ticket reply Helpdesk sending IPs or include Brand domain, body left intact Footer or quoted thread rewriting the signed body
Agency or reseller send Client SPF listing the real sender Client organizational domain Agency d= domain under a client From

Where each stream actually fails

A newsletter via one ESP usually fails on defaults. The team sets the From to the brand, leaves the Return-Path on the ESP, and never turns on custom signing. Authentication passes for the ESP and aligns with nobody the reader sees.

A CRM or cold sequence is a lookup problem wearing a signature costume. Each new platform wants an include and a selector. Teams remember one and forget the other, or they stack includes until SPF returns permerror. The signature is rarely the first thing to break here. The budget is.

A support ticket reply fails in the body. The helpdesk was never authorized in SPF, or it inserts a quoted thread and footer into content that was already signed. That second failure surprises people because nothing about the sending server changed. The signed bytes did.

Agency or reseller mail is the alignment trap. The agency's key signs the agency domain while the client From stays on the client domain. Both checks can pass for the wrong organization, and the client inherits the delivery problem.

The account behind each stream matters too, since a shared mailbox, a dedicated sending account, and a vendor-managed account don't authenticate the same way. If you're sorting out which setup you're running, SigFinch's guide to email account types is a useful reference to read alongside your vendor settings.

For every stream, verify the delivered message, not a DNS screenshot. Check the connecting server against SPF, the d= domain and selector against DKIM, and whether either matches From under your alignment mode. ARC can preserve an earlier authentication result across a forward, but it doesn't replace publishing both records.

Passes That Still Miss the Inbox

SPF and DKIM can both pass while a message still goes to spam. Authentication proves identity, not inbox placement. The receiver checks who authorized the sending server and which domain signed the message, but placement also depends on DMARC alignment and policy, complaints, content, infrastructure, reputation, and the recipient provider's rules. A pass is one check, not a delivery guarantee.

Read one header line before you change anything

Open a delivered message and find Authentication-Results. Read the results together. For example, spf=pass with smtp.mailfrom on a vendor domain and dkim=pass with header.d on that same vendor domain can appear alongside dmarc=fail. SPF and DKIM worked, but neither authenticated your From domain under the applicable alignment settings. The issue is identity alignment, not necessarily message content.

If you see spf=permerror, the receiver could not evaluate the SPF record successfully. Changing the subject line will not fix that. If SPF and DKIM pass and align but the message lands in spam, authentication is working; another part of sending or filtering is affecting placement.

Authentication results that look fine and still fail

What you see Usual cause Fix
SPF permerror Nested includes push the chain over 10 DNS lookups Remove unused vendors; ip4, ip6, and all do not spend the budget
SPF pass and DMARC fail Envelope domain is the ESP while From is your brand Align the Return-Path, or pass DMARC with aligned DKIM
DKIM fail after a list or forward A signed header or the body was rewritten Sign stable headers and keep one aligned path intact
DKIM pass on the vendor domain Custom-domain signing was never turned on Sign d= with your organizational domain or an aligned subdomain
SPF and DKIM both pass, mail in spam Identity is fine; complaints, content, or reputation are not Review complaints and test the full message

A published record is not protection

Having a DMARC record does not mean the domain is enforcing a policy. In Fortra's Q2 2025 sample of the 10 million most popular domains, 18.2% had a valid DMARC record, 7.6% had an enforcing policy, and 3.9% enforced rejection, including subdomains.

That gap matters when authentication fails. A domain can have records visible in DNS while its DMARC policy asks receivers to take no action. Monitoring helps you see authentication results, but it does not itself prevent a spoofed message from being delivered.

A DNS lookup shows what you published; the delivered message shows what the receiver evaluated. MailGenius checks whether SPF follows best practices and is set up correctly, verifies that the message is signed with DKIM, and checks whether the DMARC setup matches the SPF and DKIM settings. These checks can help identify a configuration mismatch, but passing them still does not guarantee inbox placement.

Test the finished message before changing DNS.

Test Both Records on a Real Message

The decision is situational, and it fits in three lines.

  • Bulk volume: Ship SPF and DKIM together and require DMARC alignment.
  • Forwarded or list mail: Don't rely on SPF alone.
  • Several SaaS tools: Give each one an aligned DKIM selector and keep SPF inside the lookup limit.

Work the staged path before you enforce

Don't jump straight to a strict policy. Move in an order that won't block your own mail.

  1. Inventory every legitimate sender, including agencies, helpdesks, and CRM tools.
  2. Validate SPF syntax and the 10-lookup budget on the expanded chain.
  3. Turn on DKIM at each vendor with an aligned d= domain.
  4. Watch aligned DMARC aggregate reports until legitimate streams pass consistently.
  5. Tighten from p=none toward quarantine, then reject, while tracking complaints and delivery.

Then stop inspecting the zone file in isolation. Send the same message you intend to deliver and read three things. Did it land in inbox or spam? Did authentication pass or fail? Does the passing domain match From?

Our SPF and DKIM checker is built for that read. The broader spam test on the homepage at MailGenius.com simulates how providers such as Gmail and Outlook treat the message and returns a score plus ordered fixes. The personalized deliverability report includes inbox vs. spam placement, authentication pass/fail status, content triggers and formatting red flags, and sender reputation insights.

One scope detail matters once the comparison is clear. A single pass is not the policy, so the Authentication Checker runs full SPF, DKIM, DMARC, and BIMI scans in one step and guides you through fixes. Tests run in a closed environment using a unique inbox, so they do not affect your actual sending domain or IP reputation.

Run that spam test, fix the first aligned failure it names, and only then tighten your DMARC policy from none toward quarantine or reject.


Send your next campaign through MailGenius before it goes to your list, and you'll see whether SPF, DKIM, and DMARC pass on the actual message, whether the passing domain aligns with your From, and whether the email lands in the inbox or spam. Fix the first failure the report names, retest in the closed test inbox so your live reputation stays untouched, and send knowing your DKIM vs SPF setup holds up together.

Free Email Spam Test:

Will your Email Land in the Spam Folder?

Send an email to the address below to see your Spam Score:
loading...
MailGenius users test over 1M emails per year! By using our Email Tester, you will agree to our Privacy Policy and Terms of Service. The sending email address will receive emails from MailGenius. All tests are hosted on public links.

Try MailGenius Today

Run a Free Email Deliverability Test - Send an Email to the Address Below, then Click “See Your Score”:

Free Email Spam Test:

Will your Email Land in the Spam Folder?

Send an email to the address below to see your Spam Score:
loading...
MailGenius users test over 1M emails per year! By using our Email Tester, you will agree to our Privacy Policy and Terms of Service. The sending email address will receive emails from MailGenius. All tests are hosted on public links.

Try MailGenius Today