Black Friday ExclusiveUnlock an EXTRA 35% OFF on all annual plans.Claim 35% OFF
Blog
/
SPF, DKIM and DMARC Explained for Cold Email (With Real Examples)

SPF, DKIM and DMARC Explained for Cold Email (With Real Examples)

Ask AI about this article
Cold Email
17 min read
By Shubham K.
Prosyo blog cover: SPF, DKIM and DMARC Explained for Cold Email (With Real Examples)

Updated November 2026 ยท 13-minute read ยท SPF DKIM DMARC explained with real example records, plus the order to set them up

Quick answer: SPF lists which servers may send mail for your domain, DKIM adds a cryptographic signature that proves the message was not altered, and DMARC tells receivers what to do when both checks fail to match your visible From address. This SPF DKIM DMARC explained guide shows each record, a working example, and the setup order. Since 2024, Gmail and Yahoo expect all three from bulk senders.

Set these up before you send a single cold email. Everything else in cold email deliverability (warm-up, volume, copy) sits on top of this foundation, and none of it fixes a domain that fails authentication.

All examples use example.com. Swap in your own domain and your own provider details.

What are SPF, DKIM and DMARC?

Email authentication is a set of DNS records and message signatures that let a receiving server check whether a message really came from the domain it claims. SPF, DKIM and DMARC are the three standards that do it, and they answer three different questions.

RecordQuestion it answersWhere it livesWhat it checks
SPFIs this server allowed to send for this domain?One TXT record at the domain rootThe IP address that connected to the receiver
DKIMWas this message signed by the domain, and is it unchanged?A TXT record at selector._domainkey.yourdomainA signature in the message header
DMARCDo SPF or DKIM match the From address, and what should happen if not?A TXT record at _dmarc.yourdomainAlignment of the SPF or DKIM domain with the From domain
The three checks side by side. Examples in this guide use example.com.

SPF and DKIM each verify a domain. The catch is that the domain they verify is not always the one your recipient sees. DMARC closes that gap, which is why it is the record that decides whether a message passes in the eyes of Gmail, Yahoo and Outlook.

Why do SPF, DKIM and DMARC matter for cold email?

Because the big mailbox providers now reject or filter mail that fails them, and cold email is the kind of mail they scrutinize most. The rules differ by provider and by volume, so here is what each one says.

ProviderApplies toWhat it requiresSource
GmailAll sendersSPF or DKIM, valid reverse DNS, TLS, spam rate under 0.3%Google sender guidelines
GmailMore than 5,000 messages a day to GmailSPF and DKIM and DMARC (p=none is enough), From domain aligned with SPF or DKIM, one-click unsubscribe for marketing mailGoogle sender guidelines
YahooAll sendersSPF or DKIM, valid forward and reverse DNS, spam rate under 0.3%Yahoo sender best practices
YahooBulk sendersSPF and DKIM, DMARC at least p=none and passing, one-click unsubscribe honored within 2 daysYahoo sender best practices
Outlook.comDomains sending more than 5,000 emails a daySPF and DKIM pass, DMARC at least p=none and alignedMicrosoft Outlook announcement
Sender requirements as published by each provider, checked November 2026.

Two things stand out. First, the 5,000-a-day threshold is a floor for the strictest rules, not a safe harbor. Google also states that sending to personal Gmail accounts needs a DKIM key of at least 1024 bits and recommends 2048. Second, the penalty is real: Microsoft says non-compliant mail from high-volume senders is rejected with a 550; 5.7.515 Access denied error, and its Safe Sender list does not bypass that.

A small cold email team will rarely hit 5,000 messages a day from one domain. That does not make authentication optional. The rules for bulk senders are the ones written down, but there is no reason to wait until you hit them.

What is SPF and how do you write an SPF record?

SPF (Sender Policy Framework) is a DNS record that lists the servers allowed to send email for your domain. A receiving server looks at the IP address that delivered the message and checks it against your list. The protocol is defined in RFC 7208.

Here is a typical record for a domain that sends through Google Workspace:

example.com. IN TXT "v=spf1 include:_spf.google.com ~all"

Read it left to right:

  • v=spf1 marks the record as SPF. It must come first.
  • include:_spf.google.com pulls in the sending servers that Google publishes. You add one include per provider that sends as you.
  • ip4:203.0.113.10 would authorize one specific IP address. Use it for a server you run yourself.
  • ~all says what to do with everyone else. A tilde means soft fail (treat as suspicious). A dash, -all, means hard fail (reject).

A domain that sends through Google Workspace and a separate email platform would look like this:

example.com. IN TXT "v=spf1 include:_spf.google.com include:mail.sendingplatform.example ~all"

The rules that break SPF records

  • One SPF record per domain. Two separate SPF TXT records make the check fail. Merge them into one line.
  • Ten DNS lookups, maximum. Under RFC 7208 section 4.6.4, the include, a, mx, ptr and exists mechanisms and the redirect modifier all count toward a limit of 10. Go over it and the receiver must return a permanent error. Plain ip4, ip6 and all do not count.
  • Nested includes count too. One include can trigger several lookups inside it, so a record with only four includes can still go over.
  • Void lookups. The same RFC says an implementation should allow two lookups that return nothing. A third one is a permanent error, so delete includes for services you stopped using.

Cloudflare’s documentation on lookup limits makes the same point: each include and mx costs a lookup, and the fix for a record that is over the limit is to remove entries you do not need.

You can validate yours with the free SPF checker, which counts lookups, or build a clean one from scratch with the SPF record generator.

What SPF cannot do

SPF checks the sending server against the “envelope” sender (the return path), not the From address your recipient reads. A message can pass SPF for one domain while showing a completely different From domain. SPF also looks at the IP that connected, so a message that gets forwarded through another server will usually fail it. Those two gaps are exactly why DKIM and DMARC exist.

What is DKIM and how does a DKIM record work?

DKIM (DomainKeys Identified Mail) is a signature added to each outgoing message, which the receiver verifies using a public key you publish in DNS. If the signature checks out, the message was signed by the claimed domain and its signed parts were not changed in transit. The standard is RFC 6376.

There are two halves. Your sending server holds a private key and signs every message. You publish the matching public key as a TXT record. The signature header looks like this (shortened):

DKIM-Signature: v=1; a=rsa-sha256; d=example.com; s=s1; h=from:to:subject:date; bh=...; b=...

Two tags matter most. Per the RFC, d= is the signing domain, and s= is the selector, which lets one domain keep several keys at once (useful when you rotate keys or sign from more than one platform). The receiver combines them to find the key at s1._domainkey.example.com.

The public key record looks like this, with the key truncated:

s1._domainkey.example.com. IN TXT "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEB..."

  • v=DKIM1 is the version.
  • k=rsa is the key type, and RSA is the default.
  • p= holds the base64 public key. An empty p= means the key has been revoked.

You do not write the key yourself. Your email provider (Google Workspace, Microsoft 365, or the platform that sends your mail) generates it and gives you the selector and the record to publish.

Use 2048-bit keys where your provider supports them. Google recommends this in its sender guidelines. Some DNS panels cut long TXT values, so after you publish, test with the DKIM checker. You need the selector to look it up.

The most common DKIM mistakes

  • Enabling signing in the provider but never publishing the record (or publishing it on the wrong host name).
  • Pasting the selector name into the host field twice, so the record lands at s1._domainkey.s1._domainkey.example.com.
  • Signing with the provider’s own domain instead of yours. The signature passes, but with a domain that does not match your From address, so it does nothing for DMARC. More on that below.

What is DMARC and what do the policies mean?

DMARC (Domain-based Message Authentication, Reporting and Conformance) is a DNS record that builds on SPF and DKIM. Per dmarc.org, it lets receivers check whether a message aligns with the sender they know, and it tells them what to do with messages that do not. It also sends you reports.

A starter record:

_dmarc.example.com. IN TXT "v=DMARC1; p=none; rua=mailto:[email protected]"

  • v=DMARC1 is the version.
  • p= is your policy, the instruction to receivers.
  • rua= is where daily aggregate reports are sent. These show which servers are sending mail as your domain and whether they pass.
PolicyWhat you ask receivers to doWhen to use it
p=noneTake no action on failing mail, and send reportsDay one. Monitor and find everything that sends as you
p=quarantineTreat failing mail as suspicious (spam folder)Once reports show your real senders all pass
p=rejectBlock failing mail outrightOnce quarantine has run clean for a while
The three DMARC policies, as described by dmarc.org.

The path dmarc.org recommends is the one most teams follow: deploy SPF and DKIM, publish p=none to collect reports, analyze them, then move to quarantine and finally reject. Google, Yahoo and Microsoft only require p=none from bulk senders, so you do not have to jump straight to reject to meet their rules.

You can build the record with the DMARC generator and test what is live with the DMARC checker.

What is DMARC alignment, and why does a pass not always count?

Alignment means the domain verified by SPF or DKIM matches the domain in the visible From address. DMARC passes when either SPF or DKIM passes and aligns. Google puts it plainly: the authenticating domain must be the same domain that appears in the From header.

Here is the failure that catches people. You send through a third-party platform. SPF passes, but for the platform’s own return-path domain. DKIM passes, but signed with the platform’s domain. Both checks are green, and DMARC still fails, because neither matches example.com.

ScenarioSPF resultDKIM resultDMARC
Platform signs with its own domain, return path is its domainPass, not alignedPass, not alignedFail
You add the platform to your SPF and set a custom return path on your domainPass, alignedPass, not alignedPass
You publish the platform’s DKIM key on your domainPass, not alignedPass, alignedPass
Both configured on your domainPass, alignedPass, alignedPass (and the most resilient)
Illustrative scenarios. Exact setup steps vary by sending platform.

The two alignment modes, set with aspf and adkim tags in your DMARC record, are relaxed and strict. Relaxed (the default) lets a subdomain match its parent. Yahoo says relaxed alignment is acceptable for bulk senders. Leave it relaxed unless you have a reason not to.

Practical rule: aim for DKIM aligned on your own domain for every sending tool, since one aligned pass is enough for DMARC. Get SPF aligned too where the platform allows a custom return path.

SPF DKIM DMARC explained: how the three records work together

When a message arrives, the receiving server runs the checks in a fixed pattern. Here is the sequence in plain steps:

  1. The receiver notes the IP that delivered the message and the domain in the From header.
  2. It checks SPF: is that IP in the SPF record of the return-path domain?
  3. It checks DKIM: does the signature verify against the public key at the selector in the signature?
  4. It looks up the DMARC record for the From domain, and asks whether SPF or DKIM passed and aligned with that domain.
  5. If neither aligned, it applies your policy (none, quarantine or reject) and, later, includes the result in the report it sends to your rua address.

Think of SPF as the guest list at the door, DKIM as the wax seal on the envelope, and DMARC as the house rule that says “only accept a guest whose seal or name matches the person on the invitation”. Each is weak alone and solid together.

That is SPF DKIM DMARC explained in one line: two ways to prove the message is yours, and one rule that says what happens when you cannot.

In what order should you set up SPF, DKIM and DMARC?

SPF first, DKIM second, DMARC last, and DMARC starts at p=none. Here is the order that avoids locking yourself out of your own mail.

  1. List every system that sends as your domain. Your mailboxes, your outreach tool, your newsletter platform, your CRM, your invoicing software. Anything you miss will fail DMARC later.
  2. Publish one SPF record covering those systems. Count lookups. Use the SPF checker to confirm.
  3. Turn on DKIM in each system, publish its record, and confirm with the DKIM checker.
  4. Publish DMARC at p=none with an rua address. Use a mailbox or a reporting service you will actually read.
  5. Send a test to a Gmail address and open the original message. The headers show SPF, DKIM and DMARC results. The email header analyzer reads them for you.
  6. Read the reports for a few weeks. Fix any legitimate sender that fails. Then move to quarantine, then reject, when the reports are clean.

Run the domain health checker at the end for a single view of all three records plus the rest of your domain setup. If you work in Claude, the free email authentication setup skill walks through the same steps.

If you send cold email from a separate domain, publish all three records on that domain too. Authentication is per domain, and a new domain starts with no history, so follow with an email warm-up plan and keep volume modest. The deliverability guide covers that part.

What do correct records look like in practice?

Here is a complete, consistent set for a made-up company that sends from Google Workspace and one outreach platform. These are illustrations, not values to copy. Your includes and selectors will differ.

TypeHostValue
TXT (SPF)example.comv=spf1 include:_spf.google.com include:mail.sendingplatform.example ~all
TXT (DKIM)google._domainkey.example.comv=DKIM1; k=rsa; p=MIIBIjANBg...
TXT (DKIM)s1._domainkey.example.comv=DKIM1; k=rsa; p=MIGfMA0GCS...
TXT (DMARC)_dmarc.example.comv=DMARC1; p=none; rua=mailto:[email protected]
Example records only. Keys are truncated and the platform domain is fictional.

Notice the two DKIM records with different selectors. That is normal and is the point of selectors: each sending system signs with its own key, and all of them live under _domainkey on your domain.

What mistakes break authentication most often?

  • Two SPF records. Merge them. A domain gets one.
  • Too many includes. Prune old tools to stay at or under 10 lookups.
  • Jumping to p=reject early. You will block your own invoices and newsletters. Spend time at p=none first.
  • Ignoring DMARC reports. A record with no one reading the rua mailbox is a decoration.
  • Forgetting subdomains. If something sends from mail.example.com, check that it authenticates too.
  • Assuming authentication equals inbox placement. It does not. It gets you into the game. Sender reputation, list quality and spam complaints decide the rest. Gmail wants spam rates under 0.3% and recommends staying under 0.10%.

Verify the addresses you send to as well. A clean authentication setup still suffers if half your list bounces, so run lists through the email verifier first.

Where Prosyo fits

Authentication lives at your domain, not inside any outreach tool, so no vendor can set it up for you without your DNS access. What a tool can do is send from your own mailbox, so every message carries your domain’s SPF and DKIM and aligns with your From address.

Prosyo works that way. It connects your Gmail or Outlook account, or any mailbox through custom SMTP and IMAP, and runs LinkedIn and email in one campaign. Your DNS records protect the sending, and Prosyo handles the work around it: finding the right people, writing openers from what they actually posted, following up on both channels, and putting every reply in one inbox.

Prosyo Settings Accounts page showing a connected LinkedIn account and the Custom SMTP / IMAP card
Connecting your own mailbox in Prosyo, so mail goes out from your authenticated domain.

The honest trade-off: Prosyo covers LinkedIn and email only, with no calling or SMS. If those two channels are where you sell, the Multichannel plan at $49 a month includes one LinkedIn account, one business inbox and one Gmail or Outlook account. See the email outreach product page and the SMTP and IMAP connection guide for setup details. Prosyo is not affiliated with LinkedIn.

Once your records pass, start a 2-day free trial and connect your mailbox.

Key takeaways

  • SPF DKIM DMARC explained in short: SPF authorizes servers, DKIM signs messages, DMARC sets the policy and requires alignment.
  • Gmail, Yahoo and Outlook.com require all three from bulk senders, and Outlook.com rejects non-compliant mail from high-volume senders.
  • One SPF record per domain, and no more than 10 DNS lookups.
  • Alignment is where most “everything is green but DMARC fails” cases come from. Sign DKIM with your own domain.
  • Start DMARC at p=none with a reporting address, read the reports, then tighten.
  • Authentication gets you eligible for the inbox. Reputation and list quality keep you there.

Frequently asked questions

Do I need SPF, DKIM and DMARC for cold email?

Yes, set up all three. Gmail and Yahoo require all of them from bulk senders, and Microsoft requires them for domains sending over 5,000 emails a day. Below those volumes the rules are looser, but the written rules are only the floor.

What is the difference between SPF, DKIM and DMARC?

SPF lists which servers may send for your domain. DKIM signs each message so receivers can verify it came from you unchanged. DMARC checks that SPF or DKIM matches your visible From address and tells receivers whether to ignore, quarantine or reject failures.

Which should I set up first?

Set up SPF first, then DKIM, then DMARC. DMARC depends on the other two, and it should start at p=none so you can read reports before enforcing anything. List every tool that sends as your domain before you begin.

What DMARC policy should I use?

Start with p=none and an rua reporting address. Once reports show all your legitimate senders passing, move to quarantine, then reject. Gmail, Yahoo and Outlook only require at least p=none from bulk senders, so reject is optional for compliance.

Can I have two SPF records on one domain?

No. A domain should publish a single SPF record, and having two makes the check fail. If you use several sending services, put all of their include statements in one record and keep the total under 10 DNS lookups.

What is DKIM alignment?

DKIM alignment means the domain in the DKIM signature matches the domain in your From address. A message can pass DKIM using a platform’s domain and still fail DMARC. Publish your own DKIM key for each sending tool so the signature uses your domain.

How do I check whether my records are working?

Use a free SPF, DKIM and DMARC checker, then send a test to a Gmail address and view the original message headers, which show the SPF, DKIM and DMARC results. Check the DMARC reports sent to your rua address over the following days.

Share this post
Start your 2-day free trial.
Launch your first AI outbound campaign across LinkedIn and email in minutes. Start free for 2 days.

Outbound that works, in your inbox every two weeks

New courses, plays that are booking meetings right now and the occasional teardown. No fluff, unsubscribe any time.

  • One email every two weeks
  • Plays that are booking meetings now
  • New courses before anyone else

Your next 10 meetings are already on LinkedIn.

2 days free, full access. Pay later and change your mind? Full refund within 7 days.