Article

How to Set Up SPF, DKIM and DMARC for Cold Email: Practical Steps

By Unlimited Verifier Team ·

Diagram showing how SPF and DKIM checks feed into DMARC alignment for a cold email sending domain.

Summary

To set up SPF, DKIM and DMARC for cold email, publish one SPF record listing every sending service, sign each sender with its own 2048-bit DKIM key, and start DMARC at p=none with a reporting address. Tighten the policy only after reports confirm every legitimate source passes alignment.

To set up SPF, DKIM and DMARC for cold email, publish one SPF record listing every service that sends as your domain, enable 2048-bit DKIM signing for each sender, and add a DMARC record at _dmarc starting at p=none with a reporting address. Tighten the policy only after your reports show every legitimate source passing alignment.

Cold email domains are among the most exposed senders you will run. They are new, they have no sending reputation, and they mail people who have never heard of them. Authentication is the one identity signal you control completely from day one. This guide covers the authentication layer of cold email infrastructure, including the checks that low-volume outbound needs and that most setup guides skip.

Quick answer


What do SPF, DKIM and DMARC each do for a cold email domain?

SPF, DKIM and DMARC answer three different questions. SPF checks whether the sending server is authorised to send for the domain in the envelope (the Return-Path). DKIM checks whether the message carries a valid signature from a key the domain publishes. DMARC checks whether SPF or DKIM passes and aligns with the From domain recipients see, then tells receivers what to do when it doesn't.

Protocol What it proves Where it lives in DNS Typical cold-email failure
SPF The sending IP is authorised for the Return-Path domain TXT record on the root domain A sending tool's servers are missing, or the record exceeds 10 lookups
DKIM The message was signed with a key published for the domain, and the signed content wasn't altered TXT or CNAME at selector._domainkey.yourdomain.com The tool signs with its own domain, so the signature passes but doesn't align
DMARC SPF or DKIM passes and aligns with the From domain; the policy for failures; reporting TXT at _dmarc.yourdomain.com Authentication passes on the wrong domain, so DMARC still fails

The concept that trips up most senders is alignment. A message can pass SPF for bounce.vendor.example while the From address is you@yourdomain.com. SPF passed, but for a different domain, so DMARC fails. The fix is to make the domain that passes match the domain people see.

Publish both SPF and DKIM, even though DMARC needs only one to pass. SPF breaks when a message is forwarded, because the forwarding server isn't in your record. DKIM signatures usually survive forwarding, so DKIM is the backup that keeps DMARC passing.

Bottom line: Each protocol checks something different, DMARC needs an aligned pass, and running both gives you a fallback.

Why does cold email need stricter authentication than a newsletter?

Cold email needs stricter authentication because it has no engagement history to fall back on. An established newsletter can coast on years of opens and clicks. A new secondary domain sending 40 first-touch messages a day has only its DNS records to prove who it is.

Mailbox providers have made the requirements explicit for high-volume senders. Google's sender guidelines require every sender to authenticate with SPF or DKIM, and bulk senders above 5,000 messages a day to Gmail to set up SPF, DKIM and a DMARC record. Yahoo's sender requirements set similar expectations for bulk mail, and Microsoft has published comparable expectations for high-volume senders to Outlook.com.

Below those volumes, authentication is not formally mandated, but it is still the first thing mailbox providers check. Complaints are the other half of the picture. Google's guidance is to keep the user-reported spam rate below 0.10% and to avoid reaching 0.3%. Cold recipients never asked to hear from you, which is why complaints can climb quickly on a new domain. Broken authentication leaves a domain with little room for error.

Bottom line: Authentication is a baseline for every sender, and a cold domain starts with no reputation to absorb mistakes.

How do you write an SPF record that stays under the 10-lookup limit?

Write one SPF record per domain, starting with v=spf1, listing only the services that send mail, and ending with an all mechanism. RFC 7208 caps evaluation at 10 DNS lookups. Exceeding the cap produces a permanent error, so SPF fails even when every sending IP is technically authorised.

The detail that causes the most errors is which mechanisms count. include, a, mx, exists, redirect and ptr each trigger a lookup, and every include also triggers the lookups inside the record it points to. ip4, ip6 and all do not count. RFC 7208 also limits void lookups (queries returning no records) to two, so a stale include pointing at a deleted record can cause failures too. Two SPF records on the same domain produce an error, so merge them.

A typical record looks like this (sendtool.example is a placeholder for your tool's include):

v=spf1 include:_spf.google.com include:sendtool.example -all

Worked example: counting lookups. Suppose your root domain sends through Google Workspace, a sequencing tool and a warm-up service. The counts below are illustrative, because nested lookups change as providers update their records. Count your own with a DNS tool.

Source Record Lookups counted (illustrative)
Google Workspace include:_spf.google.com 4
Sequencing tool include:sendtool.example 3
Warm-up service include:warmup.example 3
Own mail host mx 1
Total 11

Eleven exceeds 10, so the record fails. You could drop the mx mechanism if your own host doesn't send, which brings the total to 10. The better fix is structural. Send third-party tools from a custom return-path subdomain such as bounce.yourdomain.com, with its own SPF record. That subdomain has its own lookup budget, and it still aligns with the From domain under relaxed alignment.

On the final mechanism, -all tells receivers to reject unlisted senders, while ~all marks them as soft failures. Sources disagree on which to publish. Many deliverability practitioners start with ~all while sources are still being added, then move to -all once reports confirm every legitimate sender. We recommend that path, because DMARC reports reveal unlisted sources before they cause damage.

Bottom line: Count the lookups before you add a tool, and move third-party senders onto their own subdomain instead of stacking includes on the root.

How do you set up DKIM for each sending tool?

Generate one DKIM key per sending tool, publish it at a unique selector, and turn signing on inside that tool. DKIM is defined in RFC 6376. Use 2048-bit keys. Many providers and guides now recommend them, and 1024-bit keys are considered weak by current standards.

Unique selectors let you rotate or disable one key without breaking the others. Publishing the record is not enough on its own, because most platforms have a separate switch, and signing stays off until you enable it.

Sender type Where the key comes from Record type Common gotcha
Google Workspace mailboxes Generated in the Admin console's Gmail authentication settings TXT at google._domainkey Signing doesn't start until you click to start authentication
Microsoft 365 mailboxes Hosted by Microsoft under your tenant Two CNAMEs (selector1, selector2) pointing to Microsoft's keys The CNAMEs must resolve before you enable signing in the Microsoft 365 security portal
Third-party sending tool or SMTP relay The vendor generates the key, or uses a CNAME you publish TXT or CNAME, with a vendor-specific selector Without a custom sending domain, the tool signs with its own d= domain, which doesn't align

The third row is the common cold-email trap. A DKIM signature with d=vendor.example passes DKIM, but DMARC requires the d= domain to match your From domain. Set the tool's custom domain so the signature reads d=yourdomain.com.

DNS providers also cause silent failures. A 2048-bit public key is longer than the 255-character limit on a single TXT string, so the value must be split into multiple quoted strings. Some DNS interfaces truncate or mangle long values when you paste them. Check the published record with a DNS lookup, and confirm it matches the key the tool shows.

Bottom line: Give every tool its own selector, make the signing domain match your From domain, and enable signing only after the DNS records are live.

What DMARC policy should a cold email domain use?

Publish a DMARC record with p=none and a reporting address first, then move to p=quarantine once every legitimate source passes. DMARC is defined in RFC 7489. It tells receivers what to do with failing mail and sends you aggregate reports.

A typical starting record:

v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com; adkim=r; aspf=r

The tags that matter:

The rollout schedule. There is no official timetable, but a common practitioner pattern is:

Weeks Policy Move on when
1–4 p=none Every legitimate source aligns, or a fix is in progress
5–6 p=quarantine; pct=25 Failure rate stays near zero on 25% of mail
7–8 p=quarantine; pct=100 Failure rate stays near zero across all mail
9 onward Consider p=reject Several clean weeks, and every new tool is checked against DMARC first

Sources disagree on how fast to reach reject. Some guides push for it within days, which is risky when you still have unmapped senders. Others suggest staying at quarantine indefinitely. We recommend quarantine at 100% as the steady state for cold domains, because a new tool can silently break alignment, and reject would drop legitimate mail without a trace. For a deeper comparison of policy options, see our guide to the best DMARC policy for cold email domains.

One misunderstanding is worth correcting. A p=reject policy on the cold domain does not stop criminals from impersonating your brand. Your main brand domain needs its own strict DMARC record for that. The cold domain's record protects only the cold domain. If you later want a logo in recipients' inboxes, see what BIMI is and whether you need it. BIMI generally requires an enforced DMARC policy, and most cold domains gain little from it.

Bottom line: Start at p=none to learn who is sending, and keep quarantine as the steady state until you have months of clean reports.

How do you set up SPF, DKIM and DMARC step by step?

Work through these ten steps in order. Each one produces evidence you need for the next.

  1. List every sender. Include mailboxes, sequencing tools, SMTP relays, CRM email, transactional mail and warm-up services (see best email warmup tools 2026). Anything that sends as the domain must appear here. If you still need to choose where mailboxes live, compare best cold email mailbox providers.
  2. Choose the domain layout. Decide whether each tool gets its own return-path subdomain, and how many inboxes each domain carries. The trade-offs are in subdomain vs secondary domain for cold email, and the inbox math is in how many inboxes per domain for cold email. Each secondary domain also needs a believable site, so plan for redirecting secondary domains to your main site.
  3. Publish one SPF record with every include, and count the lookups.
  4. Generate a DKIM key per tool at 2048 bits, each with a unique selector.
  5. Publish the DKIM records and confirm each one resolves.
  6. Enable signing in each platform, and set its custom domain so d= matches your From domain.
  7. Publish DMARC at p=none with an rua address someone actually reads.
  8. Send test messages from every sender to at least two mailbox providers, and check the headers.
  9. Read aggregate reports for 2–4 weeks. Fix every source that fails alignment.
  10. Tighten the policy on the schedule above, and re-check DNS whenever you add a tool.

Bottom line: Inventory first, publish second, verify third, and tighten only after the reports agree.

Hands-on tutorial: how do you test the setup in about 20 minutes?

Test in two layers: first the DNS records, then what a real message shows. You need a terminal with dig (or any DNS lookup tool) and two mailbox addresses you control.

  1. Check the SPF record. Run dig TXT yourdomain.com +short. You should see exactly one line beginning "v=spf1. If you see two, merge them.
  2. Check DMARC. Run dig TXT _dmarc.yourdomain.com +short. The output should begin "v=DMARC1; and include your rua address.
  3. Check DKIM. Run dig TXT google._domainkey.yourdomain.com +short for Google Workspace, or substitute the selector your tool gave you. An empty answer means the record isn't live yet.
  4. Allow for propagation. Resolvers cache each record for its TTL, so changes can take hours to appear. Don't send until every record resolves.
  5. Send a test message from each sending source to a Gmail address you control.
  6. Read the headers. In Gmail, open the message, choose the three-dot menu, and select Show original. Look for spf=pass, dkim=pass and dmarc=pass. Confirm the header.d= value in the DKIM result matches your From domain.
  7. Repeat with an Outlook.com address, since the two providers show results in slightly different places. Then fix and re-test any failure before you move on.

For batch checks across many domains, our roundup of the best free DKIM and SPF checker tools explains which tools return the most detail.

Bottom line: Check the DNS, then check a real message's headers, because a record that looks correct can still produce a failing message.

Worked example: four domains, nine inboxes, one unlisted relay

This scenario is hypothetical, built to show the arithmetic. An agency runs four secondary domains with nine inboxes in total (2, 2, 3 and 2). All nine are Google Workspace mailboxes, and the outreach platform sends through its own SMTP relay. The team published SPF and DKIM for Google but never added the relay's sending IPs.

Week 1 aggregate reports:

2,520 messages sent as the four domains 378 failed DMARC 378 ÷ 2,520 = 15.0% failure rate

Across nine inboxes over seven days, that volume is about 40 messages per inbox per day. Whether that pace suits your domains is a separate question, covered in how many cold emails per inbox per day.

Every failure traced to the relay, which passed neither SPF nor an aligned DKIM signature.

The fix:

  1. Moved the relay's sending onto a return-path subdomain for each domain, with an SPF record there that includes the relay.
  2. Configured the relay to sign with d= set to each domain, using a CNAME the relay supplied, so DKIM aligned with the From domain.
  3. Kept the root SPF record for Google only, so the root lookup count stayed well under 10.

Week 2 aggregate reports:

2,646 messages sent 16 failed DMARC 16 ÷ 2,646 = 0.6% failure rate

The remaining failures came from a warm-up tool that wasn't yet in the SPF record. The team added it the following week.

Recipient verification for the same campaign. The prospecting list held 18,000 contacts from a database that hadn't been cleaned in a year. Authentication was fixed, but the list still needed checking. It fits inside the Pro plan's 25,000-email per-list cap, so it goes up as one file. If you verify all 18,000 in one month on the $29 Pro plan, the cost works out to $29 ÷ 18 = $1.61 per 1,000 contacts. On annual billing at $25 a month, it is $25 ÷ 18 = $1.39 per 1,000. Standard verification is unlimited on every plan, so re-checks after fixing the import carry no per-email fee. For how pricing compares across vendors, see email verification pricing.

Plan limits change, so confirm current figures before you rely on them.

Bottom line: Aggregate reports turn a vague "deliverability problem" into one failing relay you can fix in a day.

Where does email verification fit alongside SPF, DKIM and DMARC?

Authentication proves your domain is genuine. Verification proves the addresses you're mailing exist. You need both. A perfectly aligned domain that mails dead addresses still racks up bounces, and bounces erode the reputation your DNS work is meant to protect. SaaS teams that prospect from product signups face this overlap, and it is covered in email verification for ecommerce and SaaS.

Verification is one part of email verification compliance and hygiene, alongside documented consent and honouring opt-outs. It cannot prove consent. A valid address is not an opted-in one.

Unlimited Verifier checks each address for syntax, domain, MX records and the SMTP mailbox. It detects catch-all domains, flags disposable and role-based addresses, and sorts results into Valid, Risky and Invalid. The company states 99.5% accuracy for its deep verification. That is the company's own figure, not an independent benchmark. The tool checks addresses, not your SPF, DKIM or DMARC records, so the DNS checks above still need to run separately.

A practical workflow for cold lists:

  1. Create a free account. The Free plan covers 25 lists a month of up to 150 emails each, plus 750 deep verifications. That is enough to test the workflow on a sample first. Free results are kept for 24 hours, so export them the same day.
  2. Export the prospect list as CSV or Excel from your prospecting tool. Files can be up to 10MB, and the email column is detected automatically.
  3. Upload and verify a list. On Pro, each list can hold up to 25,000 emails, so split anything larger. Our guide to email verification for sales prospecting covers the decisions at this stage.
  4. Send only Valid addresses in the first sequence.
  5. Hold back anything flagged Risky or catch-all. Catch-all domains accept mail for any local part, so an SMTP check can't confirm that a specific mailbox exists. Keep these addresses out of the first sequence until the main list has proved stable. The catch-all email verification page explains how those results are handled.
  6. Suppress Invalid addresses permanently in your sending tool. Export results as CSV, Excel or JSON. Pro results are kept for 30 days, but save the summary counts yourself for your records.

For developers, the Email verification API supports email verification API and automation workflows. You can check single addresses at signup or send bulk batches of up to 10,000 emails per request. API access is part of the Pro plan, which includes 100,000 API emails a month. The Free plan has no API access. To spot-check one address, such as a key account that came back Risky, use the free email checker. The workflow has no native ESP, CRM or Zapier integrations, so you either export, verify and re-import, or call the API from your own scripts.

Bottom line: Authentication and verification fail in different ways, so run both checks before every campaign.

Common mistakes that break cold email authentication

Bottom line: Most failures come from one unlisted sender or a signing domain that doesn't match, and the reports catch both.

How we compared (and limitations)

This guide draws on public documentation: the RFCs for SPF, DKIM and DMARC, Google's and Yahoo's sender requirements, and the FTC's CAN-SPAM compliance guide for US rules on commercial email. We have not run controlled tests against mailbox providers, and we have not measured how each one scores authentication.

The SPF lookup counts are illustrative. Provider records change, and nested includes vary, so count your own records with a DNS tool before you rely on any figure. The worked example's volumes and percentages are hypothetical. Unlimited Verifier's plan details come from its published information, and the 99.5% accuracy figure is the company's own claim.

Where sources disagree, such as ~all versus -all and how fast to reach reject, we recommend the more conservative path and explain why. Thresholds and sender rules change, so check the current Google, Yahoo and Microsoft pages before a major send. Consent and marketing rules differ by country, and cold email to EU and UK recipients has separate requirements, so take legal advice on those before you send.

Bottom line: Treat these numbers as a starting point, verify your own DNS and lists, and recheck the rules before each major send.

Worked example: fixing a misaligned DMARC fail

Step Check Result Fix
1 DMARC report shows SPF pass for vendor-bounce.example SPF passes, but domain differs from From Set custom Return-Path to bounce.yourdomain.com
2 DKIM signed with d=vendor.example Signature valid, not aligned Configure custom DKIM domain to yourdomain.com
3 Add CNAME/TXT for new selector Key published Re-send test message
4 Next aggregate report DMARC pass on all volume Move from p=none to p=quarantine

Frequently asked questions

What is the SPF 10-lookup limit?

The SPF 10-lookup limit, defined in RFC 7208, means a receiver will evaluate no more than 10 DNS-triggering mechanisms (include, a, mx, redirect and similar) when checking your SPF record. Exceeding it causes a permerror, which typically fails SPF. Consolidate or flatten includes to stay under the limit.

Should I use 1024-bit or 2048-bit DKIM keys?

Use 2048-bit DKIM keys. Most current guidance favours 2048-bit because it is harder to brute-force, and most major mailbox providers and sending tools support it. Some older DNS hosts limit TXT record length, so you may need to split the key string into multiple quoted strings.

What is a DKIM selector?

A DKIM selector is a label that lets you publish multiple DKIM keys under one domain. The public key lives at selector._domainkey.yourdomain.com. Giving each sending tool its own selector lets you rotate or revoke one tool's key without affecting the others.

Why does DMARC fail even when SPF and DKIM pass?

DMARC requires alignment, not just a pass. If SPF passes for a vendor's bounce domain or DKIM is signed by the vendor's own domain, the authenticated domain does not match your From domain, so DMARC fails. Configure the tool to use a custom return-path and DKIM domain that match your sending domain.

How long should I stay at p=none?

Most teams run p=none for roughly 2 to 4 weeks while reading aggregate reports. Stay longer if you still see unknown or failing sources. Move to p=quarantine once all legitimate senders align, then to p=reject when you are confident no legitimate mail is failing.

Do I need a separate domain for cold email?

Using a separate sending domain is a common practice so that cold outreach reputation problems do not affect your main business domain. Authenticate the sending domain fully with SPF, DKIM and DMARC either way. The DMARC policy applies to that domain specifically.

Where do I add the DMARC record?

Add a TXT record at _dmarc.yourdomain.com. A basic starting value is v=DMARC1; p=none; rua=mailto:reports@yourdomain.com. The rua address receives daily aggregate XML reports, which you can review or pass to a DMARC reporting service.

Does authentication stop cold emails from going to spam?

No. Authentication is necessary but not sufficient. Inbox placement also depends on sending volume, complaint rates, list quality and content. SPF, DKIM and DMARC establish sender identity, and they help prevent spoofing and improve trust signals, but they do not guarantee delivery.

Should I publish SPF if DKIM is enough?

Yes. Publish both. DMARC passes if either SPF or DKIM passes with alignment. SPF often breaks on forwarded mail, while DKIM usually survives forwarding, so having both gives you a fallback path.

Cut Bounces and Protect Your Sender Reputation With Unlimited Email Verification

Every invalid address you send to hurts your sender reputation and your inbox placement. Verifying your list before each send means fewer bounces, healthier deliverability, and a predictable cost. With Unlimited Verifier, standard verification is unlimited on every plan, with no per-email fees.

Unlimited Verifier checks syntax, domain, MX records and the SMTP mailbox. It also detects catch-all domains and flags disposable and role-based addresses. Export a CSV from your email platform or CRM, upload and verify the list, then re-import the clean results. You can also automate checks with the email verification API.

Free Pro
Price $0 $29/month ($25/month billed annually)
Lists 25 a month, up to 150 emails each Unlimited, up to 25,000 emails each
Deep verifications 750 a month 25,000 a month
API access No Yes (100,000 emails a month)
Result retention 24 hours 30 days

Why teams choose Unlimited Verifier

Unlimited Verifier states 99.5% accuracy for deep verification.

Create a free account and verify your next list before you hit send.

Want to test a single address first? Try the free email checker.