Skip to content

GuidesDeliverability9 min read

How do you set up SPF, DKIM and DMARC for cold email?

SPF lists the servers allowed to send for your domain. DKIM puts a signature on each email. DMARC tells receivers what to do when neither matches the domain in your From line, and where to send reports. For cold email, set up all three on every sending domain, make the From domain match the domain SPF or DKIM checks, and start DMARC at p=none.

Last checked 16 October 2026 · By the ValidScout team. Drafted with AI help, checked by the founder before it went live.

Words used in this guide

  • DNS record: a line you add at your domain host (where you bought the domain) that anyone can read.
  • Sending domain: the domain after the @ in your From address, for example tryacme.example.
  • Alignment: the domain in your From line matches the domain that SPF or DKIM checked.
  • p=none: a DMARC setting that changes nothing about delivery. Receivers only send you reports.

What do SPF, DKIM and DMARC each do?

RecordWhat it provesWhere it livesWhat usually breaks it
SPFThis server is allowed to send for the domainOne TXT record on the domain, starting v=spf1Two SPF records, more than 10 lookups, a sending tool left out
DKIMThis email was signed by the domain and not changed on the wayA key at <name>._domainkey.<domain>, set up in your mailbox providerKey added but signing never turned on
DMARCWhat to do if neither SPF nor DKIM matches the From domain, and where to send reportsOne TXT record at _dmarc.<domain>, starting v=DMARC1No record, two records, or a strict policy before you read the reports

DMARC is the one that ties the other two to the address your prospect sees. Without it, SPF and DKIM can pass for some other domain while your From line says something else.

Do cold emailers really need all three?

The big mailbox providers set the rules. Here is what each one asks, from its own page:

ProviderEvery senderBulk sendersSource
GmailSPF or DKIM. DKIM key at least 1024 bits, 2048 recommendedOver 5,000 a day to Gmail: SPF and DKIM and DMARC. DMARC can be p=none. From domain alignedGoogle, "Email sender guidelines"
YahooSPF or DKIMSPF and DKIM, DMARC at p=none or stricter that passes. Relaxed alignment is fineYahoo Sender Hub, "Best practices"
Outlook.comNot stated as a listOver 5,000 a day: SPF, DKIM and DMARC at p=none or stricter, aligned, since 5 May 2025Microsoft postmaster, "Policies, Practices, and Guidelines"

Most cold senders spread mail over many small domains, so each one may stay under 5,000 a day. Set up all three anyway. It costs nothing, and Gmail says mail that fails authentication may go to spam or be refused with a 5.7.26 error. Cold email starts with little trust, so it cannot afford that.

What does alignment mean, and why does cold email break it?

Alignment means the domain your prospect sees in the From line is the same domain that SPF or DKIM checked. Here is an invented example:

Not alignedAligned
From linemaya@tryacme.examplemaya@tryacme.example
DKIM signed bymailer-shared.example (the tool's domain)tryacme.example
DMARC resultFails, even though DKIM "passed"Passes

Cold email breaks alignment in two common ways. A new domain is added to a mailbox provider but DKIM signing for it is never turned on. Microsoft 365, for example, does not sign mail from a custom domain until you add its two DKIM records and switch signing on. Or a second tool sends as your domain but is not in your SPF record and does not sign with your domain.

How do you set up all three, step by step?

Do this for every domain you send from, including each extra domain you bought for cold email. Each domain and subdomain needs its own records.

  1. List everything that sends as this domain. Your mailbox provider (Google Workspace, Microsoft 365 or another) and any tool that sends directly rather than through those mailboxes. Most cold email tools send through the mailboxes you connect, so the mailbox provider's records are the ones that count. Smartlead's help, for example, points you to the Gmail, Zoho or Outlook setup guide.
  2. Publish one SPF record. Google's line for Workspace is v=spf1 include:_spf.google.com ~all. If another service also sends for the domain, add its include: to the same line. Never add a second SPF record. Keep it to 10 lookups or fewer: each include, a, mx, ptr, exists and redirect counts, and over 10 the whole record fails.
  3. Turn on DKIM in your mailbox provider. In Google Workspace, generate the key in the Admin console (2048 bits unless your domain host cannot take it), add it as a TXT record at google._domainkey, then click Start authentication. In Microsoft 365, add the two CNAME records (selector1._domainkey and selector2._domainkey) with the exact values Microsoft shows you, then switch signing on for the domain.
  4. Wait up to 48 hours. Google says SPF and DKIM can each take up to 48 hours to start working, and asks you to wait 48 hours after them before adding DMARC.
  5. Publish one DMARC record at p=none, with reports. A pattern: v=DMARC1; p=none; rua=mailto:dmarc-reports@example.com. Google says to always include rua (the address that gets reports) and to send it to a group mailbox, because reports can be many.
  6. Check that it worked. Send a test email to a Gmail inbox you own, open it, choose "Show original" and look for SPF, DKIM and DMARC: PASS, with your own domain in each. Then send your first real campaign.

What are the most common mistakes?

MistakeWhat happensFix
Two SPF records on one domainSPF returns an error for every email, by the SPF standard (RFC 7208)Merge them into one line
More than 10 lookups in SPFSPF failsRemove services that no longer send; ask a remaining one for a shorter include
SPF ending in +allAnyone can send as you, and receivers distrust itEnd with ~all, as Google suggests
DKIM key added, signing never turned onDKIM does not match your From domain, so DMARC failsClick Start authentication (Google) or switch signing on (Microsoft)
DMARC set straight to p=rejectAny sender you forgot gets refusedStart at p=none, read the reports, then tighten
Records only on the main domainThe extra cold domains failRepeat the six steps on each domain

Should a cold domain move from p=none to quarantine or reject?

None of the three providers requires it. Gmail, Yahoo and Microsoft all accept p=none. Google's DMARC help suggests moving to quarantine or reject once the reports show your real mail passes, and raising the share step by step with the pct tag. No provider gives a fixed number of days. If you move, do it after the reports show every tool that sends for the domain is passing, not on a date.

Does fixing SPF, DKIM and DMARC fix bounces?

Only one kind. It fixes bounces about you as the sender, such as Gmail's 5.7.26 ("unauthenticated") and Outlook's 5.7.515 ("does not meet the required authentication level"). It does nothing for bounces about the address, such as 5.1.1 "user unknown". Those come from the list. Our guide on hard vs soft bounces explains how to tell them apart, and the guide on Smartlead "sender bounced" lists the sender codes.

Setup also helps with the spam folder, but it is only one of several causes. Our guide on why cold emails go to spam covers the others, and the checklist of email deliverability issues puts setup next to the list, the content and the sending pattern.

What ValidScout can and cannot tell you

ValidScout is not a DNS checker. There is no box where you type a domain and get its records. It reads your records when your bounces point at you.

  • After you send: upload your bounce export. Campaign results gives each bounce a reason from its bounce message. Bounces caused by your sending sit in their own group: "Your sending setup, not your list".
  • When bounces point at you: Campaign results reads the public SPF, DKIM and DMARC records and mail servers of that sending domain, and shows each record it read. It never says a record "passes", because only the receiving server knows that for each email. DKIM is looked for at the usual names only, so "not found at the usual names" is not proof it is missing. Blocklists are not checked.
  • Before you send: paste up to 50 emails into the free check to see which will not reach anyone and which need a look, or upload the whole list. In the full check every row gets Safe to send, Risky, Do not send or Not checked yet, with the reason next to it. That rules the list in or out; it says nothing about your records.

Here is an invented example of what Campaign results can show for two sending domains:

Sending domainWhat it readWhat it suggests
tryacme.example2 SPF records. Only one is allowed, so receivers treat SPF as brokenMistake 1 above
tryacme.exampleNo DMARC record. Gmail and Outlook require one from bulk sendersStep 5 above
getacme.exampleOne SPF record found. DKIM found (google). DMARC found, policy none (monitoring only, which is fine)Records look set up; look at the list or the sending pattern next

FAQ

Do I need DMARC if I send fewer than 5,000 emails a day? Gmail and Yahoo only require it from bulk senders, but both urge it, and it costs nothing at p=none. Set it up so a forgotten tool or a broken DKIM shows up in reports before it shows up as bounces.

Can I have two SPF records if I use two tools? No. Put both services' include: tags in one SPF record. Two records make SPF fail.

Should every cold email domain have its own SPF, DKIM and DMARC? Yes. Records on your main domain do not cover other domains. Google also says each subdomain needs its own SPF record.

How long does setup take to work? Google says up to 48 hours for SPF and for DKIM, and asks you to wait 48 hours before adding DMARC. Check with "Show original" before you start a campaign.

Does a DMARC policy of none hurt deliverability? Gmail, Yahoo and Microsoft all accept p=none from bulk senders. It does not tell receivers to block anything. With a rua address it sends you reports, which is what you need first.

Sources

  1. Google, Gmail Help, "Email sender guidelines", no date shown, read 15 Oct 2026: https://support.google.com/mail/answer/81126
  2. Yahoo Sender Hub, "Best practices", no date shown, read 15 Oct 2026: https://senders.yahooinc.com/best-practices
  3. Microsoft, Outlook.com postmaster, "Policies, Practices, and Guidelines", no date shown, read 15 Oct 2026: https://substrate.office.com/ip-domain-management-snds/postmaster/Policies
  4. Google Workspace Admin Help, "Set up SPF", no date shown, read 15 Oct 2026: https://knowledge.workspace.google.com/admin/security/set-up-spf
  5. Google Workspace Admin Help, "Set up DKIM", no date shown, read 15 Oct 2026: https://knowledge.workspace.google.com/admin/security/set-up-dkim
  6. Google Workspace Admin Help, "Set up DMARC", no date shown, read 15 Oct 2026: https://knowledge.workspace.google.com/admin/security/set-up-dmarc
  7. Microsoft Learn, "Set up DKIM to sign mail from your Microsoft 365 domain", read 15 Oct 2026: https://learn.microsoft.com/defender-office-365/email-authentication-dkim-configure
  8. Smartlead help, "DMARC, DKIM, SPF & MX Setup", no date shown, read 15 Oct 2026: https://helpcenter.smartlead.ai/en/articles/8-dmarc-dkim-spf-and-mx-setup
  9. IETF, RFC 7208 "Sender Policy Framework (SPF)", sections 4.5 and 4.6.4: https://datatracker.ietf.org/doc/html/rfc7208
  10. Suped, "How to set up DMARC, DKIM and SPF for Gmail", updated 12 Oct 2026, read 15 Oct 2026 (secondary, for the "Show original" check only): https://www.suped.com/learn/dmarc/how-to-set-up-dmarc-dkim-spf-for-gmail

Keep reading

Next step

See why each one bounced.

Explain my bounces

Create a free account and upload the bounce export from your sending tool. Each bounce gets a reason from its bounce message: bad address, mailbox switched off, or a problem with the sender. When it is the sender, you see the records we read for your domain.

Not ready to sign up? Paste up to 50 of those emails into the free check