SPF, DKIM and DMARC for Cold Email: Step-by-Step Setup
To set up SPF, DKIM and DMARC for cold email, add three DNS records to each sending domain: one SPF TXT record listing the services allowed to send for the domain, the DKIM key your email provider generates, and a DMARC TXT record at _dmarc that starts with p=none. Then send a test email and check that SPF, DKIM and DMARC all show "pass" in the message headers before you warm up the domain.
Authentication is the part of cold email infrastructure that nobody sees and everybody depends on. Without it, Gmail and Outlook have no way to confirm the email really came from you, so they treat it with suspicion. With it, every other part of your deliverability has a chance to work.
This guide assumes you send from Google Workspace or Microsoft 365 inboxes on secondary domains, which is how most B2B outbound is set up. If you have not separated your outreach from your main domain yet, read why cold emails go to spam first.
What do SPF, DKIM and DMARC actually do?
| Record | What it proves | Where it lives |
|---|---|---|
| SPF | The server sending the email is allowed to send for this domain | TXT record on the domain itself |
| DKIM | The email was signed by the domain and not changed on the way | TXT or CNAME at selector._domainkey |
| DMARC | What receivers should do if SPF or DKIM fail, and where to send reports | TXT record at _dmarc |
DMARC also checks alignment: the domain in your visible "From" address has to match the domain that passed SPF or DKIM. Sending through Google Workspace or Microsoft 365 on your own domain gives you alignment automatically once DKIM is on.
What do you need before you start?
- Access to the DNS settings for each sending domain (at your registrar or DNS host).
- Admin access to Google Workspace or Microsoft 365, with the domain already added and verified.
- A list of every service that sends email as the domain. For cold email domains this is usually just the mailbox provider, because sending tools like Smartlead connect to your Google or Microsoft inboxes and send through them.
Do the steps below in order, on every sending domain.
Step 1: How do you set up SPF?
- Open the DNS settings for the domain and check for an existing TXT record that starts with
v=spf1. If one exists, edit it rather than adding a second. - Add (or edit) one TXT record on the root of the domain (host
@):- Google Workspace:
v=spf1 include:_spf.google.com ~all - Microsoft 365:
v=spf1 include:spf.protection.outlook.com -all
- Google Workspace:
- If another service sends as this domain using its own servers, add its
include:to the same record. Never create a second SPF record. - Keep the record under 10 DNS lookups. Each
include:counts, and so do the includes inside it. Going over the limit makes SPF fail completely.
~all (soft fail) and -all (hard fail) both work for cold email. What matters more is that every legitimate sender is listed.
Step 2: How do you set up DKIM?
Google Workspace
- In the Google Admin console, go to Apps → Google Workspace → Gmail → Authenticate email.
- Choose the domain and click "Generate new record". Use a 2048-bit key and the default selector (
google). - Copy the TXT record name (
google._domainkey) and value into your DNS. - Wait until the record is visible, then return to the same screen and click "Start authentication".
Microsoft 365
- In the Microsoft Defender portal, open the DKIM settings under Email & collaboration → Policies & rules → Threat policies → Email authentication settings.
- Select the domain. Microsoft shows two CNAME records,
selector1._domainkeyandselector2._domainkey, with values unique to your tenant. - Add both CNAMEs to your DNS exactly as shown.
- Once they resolve, switch "Sign messages for this domain with DKIM signatures" on.
The most common DKIM mistake is the last step: the record is in DNS but signing was never switched on, so emails go out unsigned.
Step 3: How do you set up DMARC?
- Add a TXT record with the host
_dmarc. - Start with a monitoring-only policy:
v=DMARC1; p=none; rua=mailto:[email protected] - The
ruaaddress receives daily aggregate reports. Use a mailbox you actually check, or a DMARC reporting tool that turns the XML into something readable. - If the reports go to an address on a different domain (for example, your main company domain), that domain must publish an authorisation record, or receivers will not send the reports. The record is a TXT at
sendingdomain.com._report._dmarc.maindomain.comwith the valuev=DMARC1.
p=none already satisfies the Google, Yahoo and Microsoft requirements. Tighten it to p=quarantine only after a few weeks of reports showing that your own mail passes.
Step 4: How do you test that it all works?
- Send a plain email from each new inbox to a Gmail address you control.
- Open it, click the three-dot menu and choose "Show original".
- Check the summary at the top: SPF, DKIM and DMARC should each say PASS, and the DKIM line should show your sending domain, not your provider's.
- Repeat for every domain. One domain with a broken record is enough to hurt a whole campaign.
Only after every domain passes should warmup begin. Warming a domain that fails authentication wastes the weeks you spend on it.
What else should you set up on a cold email domain?
- MX records so replies reach your inboxes. Your mailbox provider gives you these when you add the domain.
- A website redirect from the secondary domain to your main site, so anyone who checks the domain finds a real company.
- A custom tracking domain (a CNAME your sending tool provides) if you track opens or clicks, so you are not sharing a tracking domain with other senders.
- Daily monitoring. Records get edited by accident, especially when several people have DNS access. Check them regularly, not just at setup.
How does this fit into a full outbound system?
Authentication is one layer. You also need the right number of domains and inboxes for your volume (see how many inboxes per domain for cold email), verified lists, warmup and copy worth replying to.
At Witrame we set up secondary domains, DNS, warmup schedules and inbox networks as part of Revenue Architecture, and monitor deliverability and SPF records daily through Pipeline Operations. We start with read-only access to your domain DNS settings. To see what a steady flow of meetings would be worth before you invest in the setup, try the pipeline ROI calculator.
Frequently asked questions
Do I need SPF, DKIM and DMARC for cold email?
Yes. Google and Yahoo have required all three for bulk senders since February 2024, and Microsoft added the same requirement for Outlook.com in 2025. Even below those volume thresholds, unauthenticated email is far more likely to land in spam, so set up all three on every domain you send from.
Can a domain have two SPF records?
No. A domain must have exactly one SPF record. If you send through more than one service, combine them into a single record with several include: entries, for example v=spf1 include:_spf.google.com include:other-service.com ~all.
What DMARC policy should I use for cold email domains?
Start with p=none and a reporting address so you can see who is sending as your domain without blocking anything. Once the reports show only your own mail services passing, you can move to p=quarantine. Change one domain at a time and watch the reports after each change.
How long do DNS changes take to work?
Most DNS changes are visible within an hour, but they can take up to 48 hours to reach every resolver. Google Workspace will not activate DKIM until it can see the record, so if activation fails, wait and try again before changing anything.
How do I check that SPF, DKIM and DMARC are working?
Send an email from the new inbox to a Gmail address, open the message, choose "Show original" from the three-dot menu, and check that SPF, DKIM and DMARC all show PASS. Repeat the test for every sending domain.
Want this built and run for you?
Witrame designs, builds and manages the outbound systems, CRM and pipeline behind predictable B2B growth. Tell us where you are and we'll tell you what we'd fix first.
Talk to Witrame