How to Set Up SPF, DKIM and DMARC for Cold Email
Set up SPF, DKIM and DMARC for cold email in 2027: what each record does, the order to add them, and how to check they pass before you send.
Jacob Holiday, CTO at SendtoWin
9 min read

SPF, DKIM and DMARC are three DNS records that prove your emails really come from you. Gmail and Yahoo have required all three from bulk senders since February 2024, and a cold email domain missing any one of them is starting from spam. This guide sets them up in the right order and shows how to confirm each one passes before your first send.
In this SendtoWin article, we'll cover:
What SPF, DKIM and DMARC each do, in plain terms
Why cold email senders can't skip them, and what main email providers like Gmail, Yahoo and Microsoft actually require
How to set up all three
How to confirm they pass before you send a single cold email
The five mistakes that quietly break authentication even when it looks configured

This post pairs directly with the three layers of deliverability we cover here →: SPF, DKIM, and DMARC are Layer 1, infrastructure and authentication. Get this layer wrong and nothing downstream, reputation or content, gets evaluated fairly.
What SPF, DKIM and DMARC Each Do
SPF (Sender Policy Framework) publishes a list of servers allowed to send email for your domain. A receiving server checks whether the message came from one of them.
DKIM (DomainKeys Identified Mail) attaches a cryptographic signature to each message, proving it wasn't altered in transit and really was sent by a server holding your private key.
DMARC (Domain-based Message Authentication, Reporting, and Conformance) ties the two together. It tells receiving servers what to do if a message fails SPF or DKIM, and whether the domain in SPF or DKIM actually matches the visible From: address, a check called alignment.
Individually, each record answers a narrow question. Together, they answer the one question that actually matters to a receiving server: is this really you?
Why Cold Email Senders Can't Skip Them
Since February 1, 2024, Gmail and Yahoo have enforced authentication requirements for bulk senders, generally meaning domains sending 5,000 or more messages a day to their users. The requirements: SPF and DKIM both configured and passing, a published DMARC record at minimum p=none, and alignment between the From: domain and the domain authenticated by SPF or DKIM. Microsoft followed with parallel requirements for Outlook, Hotmail, and Live addresses starting May 5, 2025.
Most individual cold email senders stay under the 5,000/day bulk threshold. That doesn't mean the requirement doesn't apply in practice. Gmail still expects SPF or DKIM from every sender regardless of volume, and without all three records in place, your messages are competing for inbox placement against senders who do have them, a fight you start already behind.
Check your SPF, DKIM, DMARC records with our free tool.
Step 1: SPF
Set up SPF first, it's the simplest of the three and has no dependency on the others.
What to do:
Add one TXT record at your root domain, in the format
v=spf1 include:<your provider's SPF domain> ~all. The include value depends on who sends your email, so don't guess it. If you send through Google Workspace, it'sv=spf1 include:_spf.google.com ~all. If you send through Microsoft 365, it'sv=spf1 include:spf.protection.outlook.com ~all. Those two includes are the same for every company. For any other email provider, ask them (or check their docs) for the exact SPF record their system requires, because the format varies and not every provider uses an underscore. If you send from your own private SMTP server, your SPF record is specific to that server and lists its IP address instead, for exampleip4:203.0.113.25. Start with~all, and move to-allonce you're confident the record is correct.A domain can have only one SPF record. If you already have one (from your website's email, a marketing tool, or anything else sending as your domain), merge the new
include:into that existing record rather than publishing a second one, two SPF records on the same domain cause every message to fail authentication, not just the newer one.Stay under 10 total DNS lookups. Every
include,a,mx,redirect,exists, andptrmechanism counts toward that limit, and exceeding it causes a permanent error that fails SPF entirely, regardless of whether your actual sending IP would have passed.ip4andip6mechanisms don't count, so flattening some includes into literal IP ranges is a common fix if you're close to the limit.
Step 2: DKIM
What to do:
Google Workspace: In the Admin console, go to Apps → Google Workspace → Gmail → Authenticate email. Generate a new record, keep the key length at 2048-bit (the recommended default, use 1024-bit only if your DNS host truncates long TXT records), and leave the selector as "google" unless you have a specific reason to change it. Publish the TXT record at your DNS host first, confirm it resolves, then come back and click Start authentication. Turning on signing before the record has propagated will break outbound mail instead of fixing it.
Microsoft 365: DKIM setup runs through Exchange Online PowerShell rather than the admin UI. Publish the two CNAME records Microsoft requires for your domain's selectors, then run
New-DkimSigningConfigto enable signing. Confirm your key length withGet-DkimSigningConfig, sources differ on what Microsoft 365 defaults to, so check rather than assume, and useRotate-DkimSigningConfig -KeySize 2048if you need to move to a 2048-bit key.Whichever provider you're on, 2048-bit is the length to aim for. It's the current recommendation across Google, Microsoft, and Yahoo, and starting there avoids a key rotation later.
Step 3: DMARC
Add DMARC last, once SPF and DKIM are both confirmed passing, it depends on them to mean anything.
What to do:
Start at
p=none:v=DMARC1; p=none; rua=mailto:dmarc-reports@yourdomain.com. This is monitoring mode, it doesn't block or quarantine anything yet, it just starts collecting aggregate reports (theruatag) so you can see what's passing and failing before you enforce anything.Review reports for a few weeks. If SPF and DKIM are consistently passing and aligned, move to
p=quarantine, sending failing mail to spam rather than rejecting it outright, a safer middle step than jumping straight to reject.Move to
p=rejectonce you're confident nothing legitimate is failing. This is the only policy that actually stops someone else from spoofing your domain, p=none is reporting only, and quarantine still delivers the spoofed message, just to spam.
One update worth knowing if you're reading older DMARC guides: the core DMARC specification changed in May 2026. RFC 7489, the document nearly every existing explainer still cites, was obsoleted by RFC 9989, with aggregate and failure reporting split into their own companion documents (RFC 9990 and RFC 9991). The practical mechanics for senders, the tags, the policy levels, the alignment logic, are unchanged, but it's worth knowing the spec is no longer the 2015 document most guides still reference.
How to Check All Three Pass
Before sending a single cold email from a new domain, confirm authentication is actually working:
Send a test email to a Gmail address you control.
Open the message, click the three-dot menu, and select Show original.
Look for the Authentication-Results section. You want to see
spf=pass,dkim=pass, anddmarc=pass, each with your domain listed, not a sending provider's shared domain.
If any of the three shows neutral, fail, or permerror instead of pass, don't start a campaign yet. Fix the specific record first, SPF issues usually mean a missing include or a lookup overflow, DKIM issues usually mean signing was turned on before the DNS record propagated, and recheck before sending real volume.
Five Common Mistakes
Two SPF records on the same domain. Easy to end up here if a previous tool added one and a new one gets added alongside it instead of merged in. The result is a permanent error that fails every message, not a warning.
Too many DNS lookups in SPF. Each additional sending tool you add often means another
include:, and the 10-lookup ceiling arrives faster than people expect, especially for domains sending through more than one platform.DKIM signing never actually switched on. The DNS record exists and looks correct, but the provider-side toggle (Start authentication in Google Workspace,
Enabled $truein Microsoft 365) was never flipped, so nothing is actually being signed.DMARC stuck at p=none indefinitely. Reporting-only mode is a useful starting point, not an end state. A domain that never progresses to quarantine or reject gets zero actual protection from DMARC, it's collecting data nobody reviews.
A From: domain that doesn't align. SPF and DKIM can both pass individually and DMARC can still fail, if the domain they authenticate doesn't match the domain in the visible From: header. This is the single most common reason DMARC fails on an otherwise correctly configured domain.
These mistakes rarely announce themselves, so SendTech scans SPF, DKIM and DMARC on every domain you connect and shows you which one needs attention before your reply rates tell you. Ready to stop checking DNS records by hand? Sign up for free on SendTech.ai →
FAQ
Do I need DMARC for cold email?
Yes, if you want your mail reliably reaching Gmail, Yahoo, or Outlook inboxes. Gmail and Yahoo have required it from bulk senders since February 2024, and even below that volume threshold, a domain without DMARC is missing the one record that ties SPF and DKIM together into an enforceable policy.
How long does DNS take to update?
Most changes propagate within a few hours, but can take up to 48 hours depending on your DNS host and the record's TTL (time to live) setting. Always confirm a record resolves correctly before taking the next setup step, don't assume it's live immediately after publishing.
Can I use the same SPF record for several providers?
Yes, that's actually required if you send through more than one platform. Merge every provider's include: mechanism into a single SPF record rather than publishing separate records per provider, a domain can only have one SPF record, and multiple records break authentication for all of them, not just the newest.
About SendtoWin
SendtoWin is a B2B outbound platform that helps businesses build pipeline through email and LinkedIn campaigns. Founded by leaders with backgrounds at Google and Databricks, SendtoWin combines outbound strategy, targeting, copywriting, sequencing and deliverability infrastructure to run end-to-end sales programs for companies across more than 60 industries. They offer both a fully managed done-for-you service and a self-serve platform. SendtoWin has generated more than $2.6 billion in pipeline for its clients. To learn more, visit sendtowin.com.
Ready to Build Your Pipeline?
We've helped hundreds of companies build consistent, scalable pipeline. You could be next.


