How to set up SPF, DKIM and DMARC before sending cold email

By the LeadsPaw team · Last updated

SPF, DKIM and DMARC are three DNS TXT records on your sending domain. Google's sender guidelines require every sender to personal Gmail accounts (addresses ending in @gmail.com or @googlemail.com) to authenticate with SPF or DKIM, and anyone sending 5,000 or more messages a day to those accounts must have all three. The setup below uses Google Workspace as the example; for another provider, the records come from that provider's documentation instead.

What each record actually does

  • SPF lists which servers may send mail for your domain. Gmail's sender guidelines warn that senders missing from your SPF record are more likely to be marked as spam.
  • DKIM adds a cryptographic signature to each message. Receiving servers check it against a public key you publish in DNS to confirm the domain owner really sent it.
  • DMARC tells receivers what to do when checks fail and sends reports back to you. To pass DMARC, a message must pass SPF or DKIM with a domain that matches the From: header domain.

1. SPF: one record listing every sender

Publish a single TXT record on the domain (host field @) that includes every service you send with. If Google Workspace is your only sender, Google's own documentation gives this exact value:

v=spf1 include:_spf.google.com ~all

Sending through more than one provider? Combine them in the same record. Google's example for Workspace plus Microsoft 365 is v=spf1 include:_spf.google.com include:spf.protection.outlook.com ~all - add your email-verification, CRM or newsletter tools the same way, using the include value from each provider's docs.

2. DKIM: generate a key, publish the public half

Your email provider generates the key pair; you publish the public key as a TXT record. In Google Workspace this lives in the Admin console under Apps, Google Workspace, Gmail, Authenticate email: click Generate, then copy the DNS host name (it looks like google._domainkey) and the record value into your DNS provider. Google requires a key of at least 1024 bits for mail to personal Gmail accounts and recommends 2048 bits when your domain provider supports it.

3. DMARC: start with p=none and reports

Publish a TXT record at _dmarc.yourdomain.com. Gmail accepts p=none as meeting its bulk-sender DMARC requirement, and dmarc.org's recommended rollout starts there too: publish v=DMARC1; p=none with a rua=mailto: address for aggregate reports, read what the reports show, then tighten to quarantine and eventually reject once your legitimate mail aligns cleanly. Those reports also surface anyone impersonating your domain.

4. Confirm it is working

Gmail may mark messages that fail authentication as spam or reject them outright with a 5.7.26 error. After your records are live, watch delivery in Google Postmaster Tools - the same place you would monitor spam rate and domain reputation during a domain warm-up. Authentication gets you past the entry check; complaint rates and bounces still matter, so keep verifying every list and stay within sensible daily sending volumes.

Frequently asked questions

Do I need all three records for low-volume cold email?

Google's rules require every sender to personal Gmail accounts - addresses ending in @gmail.com or @googlemail.com - to authenticate with SPF or DKIM, and add DMARC once you send 5,000 or more messages a day to those accounts. But Google recommends setting up all three on every domain regardless of volume, and doing it before outreach avoids a mid-campaign deliverability scramble.

Can I have separate SPF records for each tool I send with?

No - keep a single SPF TXT record on the domain and list every sender in it with include: tags. Google warns that senders missing from your SPF record are more likely to land in spam, and its own examples combine providers (for example Google Workspace plus Microsoft 365) into one record.

What do DMARC policies none, quarantine and reject mean?

The policy tells receiving servers what to do with mail that fails alignment: none means deliver and just send you reports, quarantine means treat it as suspicious, and reject means refuse it. dmarc.org's recommended rollout is to publish p=none first, read the reports, and only tighten to quarantine or reject once your legitimate mail passes cleanly.

Does authentication guarantee my cold emails land in the inbox?

No. Google says messages to personal Gmail accounts that fail authentication may be marked as spam or rejected, but passing SPF, DKIM and DMARC is only the entry requirement. Spam complaint rates, bounces and engagement still affect delivery - which is why verification and gradual warm-up matter just as much.