How to Set Up SPF, DKIM and DMARC for Cold Email (Step by Step)
A plain, step-by-step guide to setting up SPF, DKIM and DMARC for a new outreach domain, with the exact record formats and how to test them.
To set up email authentication, you add three DNS records to your sending domain: an SPF record that lists who may send for you, a DKIM record that lets receivers verify your signature, and a DMARC record that sets the policy and reporting. The whole job takes about an hour the first time, and it’s the single most useful thing you can do before you send a cold email.
If you’ve never touched DNS, don’t worry. You’re adding a few lines of text in a control panel. This guide walks through it in the order we’d do it, using Google Workspace as the example, because that’s what most outreach teams use. The same ideas apply to Microsoft 365 and other providers.
Before you start
You need three things:
- A domain you control. For cold outreach, use a separate domain from your main company one. We explain why in our deliverability checklist.
- Access to its DNS settings. That’s usually at your domain registrar or DNS host, such as Cloudflare, Namecheap or GoDaddy.
- A mail provider already set up on that domain, with at least one inbox created.
Step 1: Add your SPF record
SPF is a single line of text that says which servers may send email for your domain. For a domain that only sends through Google Workspace, it looks like this:
v=spf1 include:_spf.google.com ~all
You add it as a TXT record at the root of the domain (often shown as @). A few rules matter here:
- Only one SPF record per domain. Two records make SPF fail. If you already have one, edit it instead of adding another.
- If you send through more than one service, add each service’s
include:to the same record, before the final~all. - Stay within ten DNS lookups. Each
include:can trigger more lookups, and going past ten makes the record invalid. Fewer services means fewer problems.
The ~all at the end means “treat mail from anywhere else as suspicious”. That’s the common, safe starting choice.
Step 2: Turn on DKIM
DKIM signs every message with a private key. You publish the matching public key in DNS, and receivers use it to check the signature.
In Google Workspace, an admin does this in the Admin console: go to Apps, then Google Workspace, then Gmail, then Authenticate email. Choose your domain, click to generate a new record, and pick a 2048-bit key if offered. Google then shows you a TXT record with a host name like google._domainkey and a long value starting with v=DKIM1.
Add that TXT record at your DNS host exactly as shown. Wait a little while for DNS to update, return to the Admin console and click Start authentication. If you skip that last click, the record exists but Google isn’t signing yet, which is a very common slip.
Step 3: Add a DMARC record
DMARC ties SPF and DKIM together and tells receivers what to do when checks fail. It’s another TXT record, this time at the host name _dmarc. A safe starting record is:
v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com
Each part means something simple:
p=noneis monitor mode: nothing is blocked, you just collect reports.rua=is where daily summary reports go. Use an address you actually check, or a free report-reading service.
Later, once you’ve seen that all your legitimate mail passes, you can move the policy to quarantine and eventually reject. For a small outreach domain, many teams stay at none for a long time, and that’s a reasonable place to be.
Step 4: Test everything
Don’t assume it worked. Check it.
- Send a test email from the new inbox to a Gmail address you own.
- Open the message, click the three dots, and choose “Show original”.
- Look at the top of the page. Gmail shows SPF, DKIM and DMARC with a PASS or FAIL next to each.
You want PASS on all three. If one fails, the section below covers the usual causes. You can also look up your records with a free DNS lookup tool to confirm they’re published where you think they are.
Step 5: Make sure it keeps working
Authentication isn’t a one-time job. Each time you add a new sending service to the domain, check whether SPF needs another include: and whether the service offers its own DKIM key. Send a fresh test after every change. And keep an eye on the DMARC reports for any source you don’t recognise, which can mean someone else is sending as your domain.
Common mistakes and how to fix them
- Two SPF records. Merge them into one.
- DKIM added but never activated. Return to the mail provider and start signing.
- The record has extra quotes or line breaks from copy-pasting. Some DNS panels add quotes for you; if yours does, don’t add them twice.
- Adding the record at the wrong host. Some panels want only
_dmarc, others want_dmarc.yourdomain.com. Follow the format your host shows. - Not waiting for DNS. Changes can take from a few minutes to several hours to spread.
- Forgetting the website and reply address. Authentication is necessary but not enough. A domain with no site and no way to reply still looks thin.
If you use more than one sending service
Many teams end up sending from Google Workspace for people, a sending tool for campaigns and a CRM for notifications. Each of those can send as your domain, so each needs to be covered. For SPF, that means one record with several include: entries. For DKIM, each service usually gives you its own key under its own selector, so you can have several DKIM records side by side without any conflict. For DMARC, there is still just one record. The reports it generates will show you every service that sends as your domain, which makes it the easiest way to find a forgotten sender before it causes trouble.
Why this matters for cold email
Since February 2024, Google and Yahoo have required authentication from anyone who emails their users, and stricter rules for bulk senders. But the bigger point is practical. Receivers can’t tell a careful sender from a spammer until you give them something to check. Authentication is the first thing they look at, and it costs you nothing but an hour.
Once it’s done, the next steps are to warm up the inbox gradually and to verify your lists before sending. If you’re still deciding what to send with, our guide to the best cold email software compares your options. And if any of the terms above are new, the glossary entry on SPF, DKIM and DMARC explain them in plain words.
Frequently asked questions
Do I need all three records?
Yes, ideally. SPF and DKIM do the checking, and DMARC makes receivers act on the results and gives you reports. Bulk senders are required to have all three.
How long does it take to work?
The setup takes about an hour. DNS changes can then take anywhere from a few minutes to several hours to appear everywhere.
Can I use p=reject straight away?
It’s risky. If any legitimate mail isn’t passing yet, a reject policy will block it. Start at none, read the reports, and tighten later.
Does authentication guarantee inbox placement?
No. It removes one common reason for spam folder placement. Reputation, list quality and content still matter.
Written by
AuraSend Team
The people who build AuraSend. We write about the cold email problems we work on every day, and we say so when AuraSend doesn’t solve one yet.