Cold Email Deliverability: SPF, DKIM and DMARC Explained (2026)
SPF, DKIM and DMARC for cold email: real records for example.com, the 10-lookup limit, key length, alignment, dig checks and what Gmail and Yahoo require.
Mailbox providers decide where a cold email lands partly on whether they can tie it to your domain. Three DNS records do that job: SPF, DKIM and DMARC. This guide uses the specifications themselves (RFC 7208 for SPF, RFC 6376 and RFC 8301 for DKIM, and RFC 9989 for DMARC) plus the published rules from Google, Yahoo and Microsoft, and shows real records you can check with dig today. Where a number appears, the sentence names where it comes from.
What do SPF, DKIM and DMARC each check?
SPF checks the sending server, DKIM checks a signature on the message, and DMARC checks that at least one of them matches the domain in the From header the reader sees. Each lives in a TXT record at a different DNS name.
| Standard | Current spec | DNS name for example.com | What it checks |
|---|---|---|---|
| SPF | RFC 7208 | example.com | Whether the connecting IP is allowed to send for the MAIL FROM (envelope) or HELO domain |
| DKIM | RFC 6376, updated by RFC 8301 | <selector>._domainkey.example.com | Whether the signature in the DKIM-Signature header verifies against the published public key for the d= domain |
| DMARC | RFC 9989 (May 2026) | _dmarc.example.com | Whether SPF or DKIM passed for a domain aligned with the From domain, and what the owner asks receivers to do if not |
A note on DMARC versions: the RFC Editor's entry for RFC 7489 now reads "This RFC is now obsolete", pointing to RFC 9989 (the protocol), RFC 9990 (aggregate reports) and RFC 9991 (failure reports). Records still start with v=DMARC1. Older guides that cite RFC 7489 or use the pct tag are out of date on those points.
What does an SPF record for example.com look like?
An SPF record is one TXT record that starts with v=spf1, lists who may send, and ends with an all term. The real example.com publishes the strictest possible version, "v=spf1 -all", which says no server may send for it. A domain that sends through Google Workspace and one email platform would publish something like this instead:
example.com. TXT "v=spf1 include:_spf.google.com include:sendgrid.net ~all"
The rules that trip people up all come from RFC 7208:
- One record only. A domain "MUST NOT have multiple records", and two SPF records produce
permerror. Add a new tool as anotherinclude, not a second record. - TXT only. The old SPF record type "has been discontinued".
- The 10-lookup limit. The terms
include,a,mx,ptr,existsandredirecteach cost a DNS query, nested includes count, and implementations "MUST limit the total number of those terms to 10". Going over returnspermerror.all,ip4,ip6andexpare free. - Void lookups. Implementations "SHOULD limit" lookups that return no answer to two, so remove includes for tools you no longer use.
- Qualifiers.
-allgives fail,~allgives softfail and?allgives neutral for any server not listed.
How do DKIM selectors and key length work?
A DKIM selector is a label that lets one domain publish several keys at once, and the key length should be 2048 bits. RFC 6376 puts every key under _domainkey: a message signed with d=example.com and s=s1 sends the receiver to s1._domainkey.example.com for the public key. Your sending tool picks the selector name and gives you the record to paste, which looks like this (key shortened):
s1._domainkey.example.com. TXT "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A..."
- Key length. RFC 6376 originally required at least 1024 bits for long-lived keys. RFC 8301 tightened this: signers "MUST use RSA keys of at least 1024 bits for all keys" and "SHOULD use RSA keys of at least 2048 bits", and verifiers must not accept signatures from keys under 1024 bits.
- Algorithm. RFC 8301 says rsa-sha1 "MUST NOT be used for signing or verifying". Use rsa-sha256.
- Long records. A 2048-bit key is longer than a single 255-character TXT string, so DNS stores it as several quoted strings that verifiers join. If your DNS host truncates it, the signature fails.
- One selector per tool. Google Workspace and your sending platform each sign with their own selector, so they never overwrite each other.
- Retiring a key. RFC 6376 treats an empty
p=as a revoked key. On 25 November 2026,dig TXT 20230601._domainkey.gmail.comreturned exactly that:"v=DKIM1; k=rsa; p=".
How does DMARC alignment decide pass or fail?
DMARC passes when SPF or DKIM passes for a domain that aligns with the From domain. RFC 9989 defines two modes. In relaxed mode, the default, the domains only need the same organizational domain, so news.example.com aligns with example.com. In strict mode they must be identical. The aspf and adkim tags pick the mode for SPF and DKIM. This is why a sending tool that passes SPF with its own bounce domain can still fail DMARC for you: the pass is for its domain, not yours. Set up a custom return-path and DKIM on your own domain in the tool.
The policy tag p takes three values. RFC 9989's wording: with none "the Domain Owner offers no expression of preference", with quarantine the owner "considers such mail to be suspicious", and with reject the owner considers failures "a clear indication that the use of the domain name is not valid". The real example.com, which sends no mail, publishes "v=DMARC1;p=reject;sp=reject;adkim=s;aspf=s". A sending domain usually moves through these steps:
- 1Monitor. Publish
v=DMARC1; p=none; rua=mailto:dmarc-feedback@example.com, the first example record in RFC 9989's appendix. Withoutrua, no aggregate reports are sent. - 2Read the reports until every service that sends as your domain passes with alignment.
- 3Test enforcement.
p=quarantine; t=y. RFC 9989 removed the oldpcttag and addedt=yas the testing equivalent ofpct=0. - 4Enforce. Drop
t=y, then move top=reject. RFC 9989 adds that a domain withp=reject"MUST NOT rely solely on SPF" and must apply valid DKIM signatures.
What do Gmail, Yahoo and Outlook.com require from senders?
All three require authentication, and all three set stricter rules for senders above 5,000 messages a day. The table summarises Google's Email sender guidelines, Yahoo Sender Hub and Microsoft's high-volume sender post as read on 25 November 2026.
| Rule | Gmail (personal accounts) | Yahoo | Outlook.com |
|---|---|---|---|
| All senders: authentication | SPF or DKIM | SPF or DKIM at a minimum | Not stated for low volume |
| All senders: spam rate | Below 0.3% in Postmaster Tools | Below 0.3% | No figure published |
| All senders: other | Forward and reverse DNS, TLS, RFC 5322 format | Forward and reverse DNS, RFC 5321 and 5322 | Not stated |
| Bulk threshold | More than 5,000 a day to personal Gmail accounts | Bulk senders (no figure on the page) | Over 5,000 emails a day |
| Bulk: authentication | SPF and DKIM, plus DMARC (p=none allowed) | SPF and DKIM, plus DMARC of at least p=none that passes | SPF pass, DKIM pass, DMARC at least p=none |
| Bulk: alignment | From domain aligned with SPF or DKIM | Aligned with SPF or DKIM; relaxed is acceptable | Aligned with SPF or DKIM, preferably both |
| Bulk: unsubscribe | One-click unsubscribe for marketing and subscribed messages, plus a visible link | One-click list-unsubscribe header, honoured within 2 days, plus a visible link | Recommends a clearly visible opt-out |
Two more points from Google matter for cold email. Its sender guidelines FAQ says bulk senders above a 0.3% user-reported spam rate are ineligible for mitigation, that bulk status is permanent once reached, and that the rules apply only to mail sent to personal Gmail accounts, not Workspace accounts. The main guidelines also advise keeping the spam rate below 0.10% and say "Don't send messages to people who didn't sign up to get messages from you." Cold email does exactly that, so a short, relevant, low-volume message to a business address is the only version with a chance. The legal side (CAN-SPAM, PECR, CASL) is covered in how to build a cold email lead list.
How do you check each record with dig?
Run dig +short TXT against each DNS name and compare the output with what you published. The rows below show real output from 25 November 2026; your own domain should show your records in the same shape.
| Check | Command | Output seen on 25 November 2026 | Bad sign |
|---|---|---|---|
| SPF | dig +short TXT example.com | "v=spf1 -all" (among other TXT records) | Two lines starting v=spf1, or none |
| SPF includes | dig +short TXT sendgrid.net | "v=spf1 ip4:... include:ab.sendgrid.net ~all" | Chains that push the count past 10 |
| DKIM | dig +short TXT s1._domainkey.example.com | Your key: "v=DKIM1; k=rsa; p=MIIB...", often split into several quoted strings | Empty answer (wrong selector) or empty p= |
| DMARC | dig +short TXT _dmarc.example.com | "v=DMARC1;p=reject;sp=reject;adkim=s;aspf=s" | No answer, or v=DMARC1 not first |
| MX | dig +short MX example.com | 0 ., a null MX meaning the domain accepts no mail (RFC 7505) | A sending domain that cannot receive replies |
DNS only proves the records exist. To confirm they pass, send a message to a Gmail address you control, open it, choose Show original, and read the SPF, DKIM and DMARC results Gmail reports for that message.
Passing authentication is the entry ticket, not the result. Google's guidelines also cover volume, bounces and spam complaints. A new domain needs a careful start: see how to warm up an email domain.
What should you fix before the first cold email goes out?
Fix authentication first, then the list, then the message. In order:
- One SPF record, 10 lookups or fewer, ending in
~allor-all. - DKIM with a 2048-bit key signed as your own domain, not the tool's.
- DMARC at p=none with rua, moving to quarantine and reject as reports come back clean.
- A From address that receives replies. Microsoft asks for a From or Reply-To address that "can receive replies".
- A checked list. Remove addresses that fail syntax or MX checks before sending; Google says to reduce volume when messages start bouncing. If your leads come from Google Maps, read Google Maps leads for cold email for where those addresses come from.
- A short, specific message with your name, postal address and a way to opt out. See cold email templates for local businesses.
CazaLead fits the list and message steps, not the sending. It collects local businesses from Google Maps with the email each one publishes on its website, audits the site, and drafts an outreach email per lead from the audit. It never sends email, so every record above belongs on the domain and mailbox you send from. Compare that with a sending platform in CazaLead vs Instantly.
Ready to find your first leads?
Start with 50 free leads every month. No credit card needed.
Frequently Asked Questions
Sources
- IETF: RFC 7208: Sender Policy Framework (SPF) for Authorizing Use of Domains in Email, Version 1
- IETF: RFC 6376: DomainKeys Identified Mail (DKIM) Signatures
- IETF: RFC 8301: Cryptographic Algorithm and Key Usage Update to DKIM
- IETF: RFC 9989: Domain-Based Message Authentication, Reporting, and Conformance (DMARC)
- Google: Email sender guidelines
- Google: Email sender guidelines FAQ
- Yahoo Sender Hub: Sender Requirements and Recommendations
- Microsoft: Strengthening Email Ecosystem: Outlook's New Requirements for High-Volume Senders