How to Set Up DNS Records for Cold Email in Under 5 Minutes
Most cold email campaigns fail before a single email is sent โ because the DNS records are wrong. Here's how to configure SPF, DKIM, and DMARC correctly in under 5 minutes.
Most cold email senders lose deliverability before they write a single word of copy. They're obsessing over subject lines while their emails are quietly getting junked because their DNS is broken.
I've audited over 200 cold email setups in the last two years. The number one deliverability killer โ by a wide margin โ isn't spam words, isn't sending volume, isn't even list quality. It's missing or misconfigured DNS records. And the fix takes less time than your morning coffee.
This is your complete, no-fluff guide to DNS records cold email setup quick โ even if you've never touched a DNS panel before.
Why DNS Records Are the Foundation of Cold Email Deliverability
Here's the counterintuitive truth: Gmail and Outlook don't care how good your email is. They care whether your domain is who it claims to be. That's what DNS authentication proves.
Without proper DNS records:
- Your emails land in spam even with a pristine sending reputation
- Recipient mail servers silently reject your messages (no bounce, no notification)
- Your domain gets flagged as a phishing risk โ permanently
According to a 2023 analysis by Validity, emails with all three authentication records (SPF, DKIM, DMARC) configured correctly see up to 10% higher inbox placement rates compared to those with partial or missing authentication. That's not a marginal gain โ that's the difference between a campaign that books meetings and one that generates nothing.
There are three records you need. Let's go through each one.
The 3 DNS Records Every Cold Email Domain Needs
1. SPF (Sender Policy Framework)
SPF tells receiving mail servers which IP addresses are authorized to send email on behalf of your domain. Think of it as a whitelist for your sending infrastructure.
What it looks like:
Type: TXT
Host: @
Value: v=spf1 include:_spf.google.com ~all
If you're sending through Google Workspace, use include:_spf.google.com. If you're using a dedicated SMTP (like the inbuilt SMTP inside Cleanmails), you'll use the specific include value provided during setup.
Common SPF mistakes that kill deliverability:
- Multiple SPF records โ You can only have ONE SPF TXT record per domain. If you have two, both fail. Merge them into one line.
- Too many DNS lookups โ SPF allows a maximum of 10 DNS lookups. Exceed that and you get a
permerror, which most servers treat as a fail. - Using
-allinstead of~allโ Hard fail (-all) is aggressive and can cause issues with forwarded emails. Stick with~all(soft fail) for cold email.
The right SPF record for most cold email setups:
v=spf1 include:YOUR_SMTP_PROVIDER ~all
Replace YOUR_SMTP_PROVIDER with whatever your SMTP service specifies.
2. DKIM (DomainKeys Identified Mail)
DKIM adds a cryptographic signature to every email you send. The receiving server checks this signature against a public key stored in your DNS. If it matches, the email is verified as legitimate.
Unlike SPF, DKIM actually survives email forwarding โ which is why it's arguably more important for deliverability.
What a DKIM record looks like:
Type: TXT
Host: google._domainkey (or your selector name)
Value: v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GN...
The p= value is your public key โ a long string of characters that your email provider generates for you. You don't type this manually. Your provider gives it to you.
How to get your DKIM key:
- Google Workspace: Admin Console โ Apps โ Google Workspace โ Gmail โ Authenticate Email โ Generate New Record
- Outlook/Microsoft 365: Microsoft 365 Defender โ Policies โ Email Authentication โ DKIM
- Custom SMTP: Your SMTP provider's dashboard will have a DKIM setup section
One thing most guides don't tell you: DKIM keys can expire or get rotated. If your deliverability suddenly tanks with no other explanation, check whether your DKIM record still matches what's in your DNS. I've seen this silently break campaigns for weeks.
3. DMARC (Domain-based Message Authentication, Reporting & Conformance)
DMARC ties SPF and DKIM together and tells receiving servers what to do when authentication fails. It also gives you a reporting mechanism so you can see who's sending email using your domain.
The minimum viable DMARC record for cold email:
Type: TXT
Host: _dmarc
Value: v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com
DMARC policy options:
p=noneโ Monitor only, no enforcement. Start here.p=quarantineโ Failed emails go to spam.p=rejectโ Failed emails are blocked entirely.
For cold email, start with p=none and a reporting address. After 2-3 weeks, check your DMARC reports. Once you're confident your SPF and DKIM are working correctly, move to p=quarantine.
The surprising insight most people miss: DMARC isn't just about deliverability โ it protects your domain from being spoofed. Without it, anyone can send email that appears to come from your domain. That's how phishing attacks work. A p=reject policy eventually makes your domain significantly harder to spoof, which builds long-term sender reputation.
Stop paying monthly
Cleanmails โ self-hosted cold email infrastructure.
DNS Records Cold Email Setup Quick: Step-by-Step Walkthrough
Here's the actual process. I'll use Cloudflare as the DNS provider since it's the most common, but the fields are identical everywhere.
Step 1: Log into your DNS provider Cloudflare, Namecheap, GoDaddy, Route 53 โ wherever your domain's nameservers point.
Step 2: Add your SPF record
- Type:
TXT - Name/Host:
@ - Value:
v=spf1 include:[your-smtp-provider] ~all - TTL: Auto (or 3600)
Step 3: Add your DKIM record
- Type:
TXT - Name/Host:
[selector]._domainkey(e.g.,google._domainkey) - Value: The full
v=DKIM1; k=rsa; p=...string from your email provider - TTL: Auto
Step 4: Add your DMARC record
- Type:
TXT - Name/Host:
_dmarc - Value:
v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com - TTL: Auto
Step 5: Verify everything is live
DNS propagation usually takes 5-30 minutes (occasionally up to 48 hours, but rarely). Use our free SPF/DKIM/DMARC Checker to confirm all three records are resolving correctly before you send a single email.
Total time: Under 5 minutes of actual work. The waiting is just propagation.
What to Check If Your Authentication Still Fails
I've seen properly configured DNS records still fail validation. Here's the diagnostic checklist:
| Problem | Likely Cause | Fix |
|---|---|---|
SPF permerror |
More than 10 DNS lookups | Flatten your SPF record using a tool like dmarcanalyzer.com |
| DKIM signature invalid | Key mismatch or extra whitespace | Regenerate the key from your provider and re-paste |
| DMARC not aligned | SPF/DKIM domain doesn't match From: domain | Ensure your sending domain matches your authenticated domain |
| Multiple SPF records | Added a second SPF TXT | Merge into one record |
| DKIM record not found | Wrong selector name | Check with your provider what selector they use |
One issue I see constantly with multi-domain cold email setups: people set up DNS correctly on their primary domain but forget to configure it on their sending subdomains or alternate domains. If you're running sender rotation across multiple mailboxes, every single domain needs its own SPF, DKIM, and DMARC. No exceptions.
The Optional (But Recommended) 4th Record: MX Records for Replies
If you're sending cold email from a dedicated domain (which you should be โ never your main business domain), you need MX records set up so replies actually reach you.
Without MX records, reply emails bounce. You lose responses. Your reply rate looks artificially low. It's a simple fix:
Type: MX
Host: @
Value: mail.yourdomain.com (or your provider's mail server)
Priority: 10
If you're using Google Workspace for receiving replies, add Google's MX records. If you're on a dedicated SMTP setup, your provider will specify the correct MX values.
Should You Use Your Main Domain for Cold Email?
No. Hard no. Never.
I see this mistake constantly and it's catastrophic when it goes wrong. If your cold email domain gets flagged or blacklisted, your entire business email infrastructure goes down with it.
Buy a dedicated sending domain โ something like getresults-yourbrand.com or yourbrand-outreach.com. Configure DNS on that domain. Keep your main domain clean.
For context: I run campaigns across 8-12 sending domains simultaneously. Each one has its own full DNS setup, its own warmup sequence, and its own sending limits. If one gets flagged, the others keep running. This is the professional approach.
For warming those domains correctly before you start sending at volume, see: How to Warm Up 20 Mailboxes Simultaneously Without Getting Flagged.
Connecting DNS to Your Sending Infrastructure
Once your DNS is configured, your email platform needs to know it. If you're using a platform with inbuilt SMTP โ like Cleanmails, which handles SMTP natively without needing to route through third-party services โ the DNS verification is built into the setup flow. You paste your records, the platform verifies them, and you're cleared to send.
If you're using a fragmented stack (separate SMTP, separate sending tool, separate tracking), DNS misconfiguration compounds because each layer has its own authentication requirements. Simplifying your stack reduces the surface area for DNS errors.
Also: once your DNS is clean, run your list through our Bulk Email Verifier before sending. Clean DNS + clean list = maximum deliverability.
The Real Reason People Skip DNS Setup
It feels technical. People assume it's complicated. So they skip it, use a basic setup, and wonder why their 40% open rate estimate from their tool doesn't match the zero replies they're getting.
The reality is that configuring SPF, DKIM, and DMARC correctly takes under 5 minutes of actual effort. The setup above is copy-paste for most providers. There's no reason to skip it.
And if you want to go deeper on why authenticated emails still sometimes land in spam โ beyond DNS โ read: Why Your Cold Emails Are Landing in Spam: A Deep Dive into Email Authentication.
Quick Reference: DNS Records Checklist
- SPF record added (one TXT record at
@) - DKIM record added (TXT at
[selector]._domainkey) - DMARC record added (TXT at
_dmarc) - MX records configured for reply routing
- All records verified using DNS Checker
- Sending domain is separate from your main business domain
- No duplicate SPF records
- DKIM key matches what your email provider generated
Do this once per domain. Check it quarterly. Your deliverability will thank you.
Related:
Stop paying monthly for cold email.
Cleanmails โ self-hosted, unlimited everything, $200 one-time.



