Home / Guides

Guides

How to set up SPF, DKIM and DMARC for cold email

By the JasReach team. Updated . 6 min read.

What SPF, DKIM and DMARC are, the exact DNS records to add, and the order to add them in, so Gmail and Outlook trust your cold emails.

Short answer

Add three DNS records to the domain you send from: an SPF record listing your email provider, a DKIM key you switch on inside your email provider, and a DMARC record starting at p=none. Together they prove your emails are really from you, and Gmail, Yahoo and Outlook require all three from domains sending about 5,000 or more emails a day.

Key takeaways

  • One SPF record per domain, ending in ~all, with at most 10 DNS lookups.
  • DKIM is switched on in your email provider first, then published in DNS.
  • Start DMARC at p=none, move to quarantine once reports are clean.
  • Check everything with a domain checker before your first campaign.

SPF, DKIM and DMARC are three small text records you add to your domain. Together they prove to Gmail, Outlook and Yahoo that an email really came from you. Without them, even a perfect cold email is likely to land in spam or be refused. You add each one once, and it takes about 15 minutes.

What each record does, in one line

  • SPF is your approved senders list. It names the services allowed to send email for your domain.
  • DKIM is a digital signature. Your email provider signs every message, and the receiver checks the signature against a key in your DNS.
  • DMARC is your instruction to receivers. It says what to do with mail that fails SPF and DKIM, and where to send reports.

Why it matters more now

Since 2024, Gmail and Yahoo require senders of about 5,000 or more emails a day to have SPF, DKIM and a DMARC record, plus one-click unsubscribe and a low spam complaint rate. Since May 2025, Outlook.com, Hotmail and Live apply the same authentication rules to domains sending over 5,000 a day, first sending failing mail to Junk.

Smaller senders are not exempt in practice. All three providers treat unauthenticated mail with more suspicion, and cold email has no past engagement to fall back on.

Step 1: Add one SPF record

In your domain's DNS settings, add a TXT record on the root of the domain (often shown as @). It starts with v=spf1, lists your email provider, and ends with ~all. For Google Workspace it looks like this:

Type: TXT    Host: @
Value: v=spf1 include:_spf.google.com ~all
  • Microsoft 365 uses include:spf.protection.outlook.com. Hostinger, Zoho and others publish their own include in their help pages.
  • Have only one SPF record per domain. If you use two services, put both includes in the same record.
  • SPF allows at most 10 DNS lookups. Each include counts, so remove services you no longer use.

Step 2: Turn on DKIM in your email provider

DKIM is switched on inside your email provider, which then gives you a record to copy into DNS. In Google Workspace it is under Admin console, Apps, Google Workspace, Gmail, Authenticate email. In Microsoft 365 it is in the Defender portal under Email authentication settings. Hostinger and Zoho show it in their email DNS settings.

The record is published at a name like google._domainkey. After adding it, go back to the provider and press Start authentication or Enable. It can take up to 48 hours to work, but often takes minutes.

Step 3: Add a DMARC record, starting gently

Add a TXT record with the host _dmarc. Start with a policy of none. This changes nothing about delivery, but it satisfies Gmail, Yahoo and Outlook and starts sending you reports:

Type: TXT    Host: _dmarc
Value: v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com
  • After a few weeks of clean reports, you can move to p=quarantine, which tells receivers to send failing mail to spam. This also stops others from faking your domain.
  • DMARC passes only when SPF or DKIM passes for the same domain as your From address. This is called alignment, and it is why the From address should use your own domain.

Step 4: Check that it all works

Run your domain through a checker. The free JasReach domain health checker tests SPF, DKIM, DMARC, MX records and blocklists, explains each result in plain English, and shows the exact record to add for anything missing.

Common mistakes

  • Two SPF records on one domain. Receivers treat this as broken. Merge them into one.
  • Using +all instead of ~all. It lets anyone send as you.
  • Enabling DKIM in DNS but never pressing the enable button in the email provider.
  • Sending cold email from your main company domain before testing on a second domain.

Questions people ask

Do I need SPF, DKIM and DMARC if I only send a few cold emails a day?

Yes. The strict rules apply to large senders, but Gmail, Outlook and Yahoo all trust authenticated mail more. Cold email has no past replies to vouch for it, so authentication matters even more.

How long do DNS changes take?

Usually a few minutes to a few hours. Some providers say up to 48 hours. If a checker still shows the old value, wait and test again.

Which DMARC policy should I use for cold email?

Start with p=none so nothing is blocked while you check reports. Move to p=quarantine once SPF and DKIM pass reliably.

Sources

  1. Google: Email sender guidelines
  2. Microsoft: Fix error 550 5.7.515 in Outlook.com (high-volume sender requirements)
  3. Yahoo: Sender requirements and recommendations
  4. RFC 7208: Sender Policy Framework (SPF)
  5. RFC 7489: DMARC

Check your domain free ยท Start JasReach free