Setup guide

SPF, DKIM and DMARC for cold email, step by step

Three DNS records tell receiving servers that email from your domain really comes from you. Without them, careful copy and a slow pace won’t save you. This guide works with any mail provider and takes about twenty minutes, plus waiting time.

Before you start

You need two things: access to your domain’s DNS settings (at your registrar or DNS host) and the admin page of your mail provider. Do this for every domain you send cold email from. If you use a separate domain for outreach, it needs its own records.

Since February 2024, Google and Yahoo expect every sender to have SPF or DKIM, and senders of large volumes to have all three plus DMARC alignment. Microsoft’s Outlook.com followed in 2025. Treat all three as required.

Step 1: SPF, the list of servers allowed to send for your domain

SPF is one TXT record on the domain itself (host @). Your mail provider tells you what to include. It looks like this:

v=spf1 include:_spf.yourprovider.example ~all
  • One SPF record per domain. If one already exists, add the new include: to it instead of creating a second record. Two SPF records make both invalid.
  • At most ten DNS lookups. Each include: counts, and so do the includes inside it. Remove services you no longer use.
  • End with ~all while you set up. Move to -all once you’re sure every service that sends as your domain is listed.

Step 2: DKIM, a signature on every email

DKIM adds a signature that receiving servers check against a public key in your DNS. Your provider generates the key in its admin page and gives you a record to publish, usually a TXT or CNAME record at a name such as:

selector1._domainkey.yourdomain.example

Publish it exactly as given, then switch DKIM signing on in the provider’s admin page. Signing doesn’t start until you do. Use a 2048-bit key if you’re offered a choice.

Step 3: DMARC, the policy that ties them together

DMARC is a TXT record at _dmarc.yourdomain.example. Start in monitoring mode:

v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.example

p=none changes nothing about delivery; it asks receivers to send you daily reports (rua) about who sends as your domain. Read them for two to four weeks. How to read DMARC reports

Step 4: tighten DMARC slowly

Stage Record When to move on
Monitor p=none Reports show only your own services passing SPF or DKIM, aligned with your domain
Partly enforce p=quarantine; pct=25 No legitimate email failing for a week or two
Enforce p=quarantine Still clean
Strict p=reject You’re confident nothing legitimate fails

A domain with p=reject can’t be spoofed easily, which protects your reputation and your clients’ trust. Moving too fast blocks your own invoices and newsletters, so go one stage at a time.

Step 5: check your work

  • Send a test to a Gmail address and open “Show original”. You want SPF: PASS, DKIM: PASS and DMARC: PASS.
  • Look up the records with any DNS lookup tool, or from a terminal: dig TXT yourdomain.example, dig TXT _dmarc.yourdomain.example.
  • In Instilify, each mailbox shows whether your domain has published SPF and DMARC records, and DKIM when you give the selector. It is a check on what’s published, not a guarantee that a receiver accepts it.

Common mistakes

  • Two SPF records on one domain.
  • DKIM published but signing never switched on at the provider.
  • DMARC record on the wrong host (it must be _dmarc, not @).
  • Jumping straight to p=reject before reading a single report.
  • Forgetting the records on a new outreach domain because the main domain already has them.

Mailboxes and daily caps · Free cold email checker · Deliverability questions · Email authentication questions

Questions about SPF, DKIM and DMARC

Do I need all three for cold email?

Yes. Google and Yahoo require SPF or DKIM from every sender and DMARC from high-volume senders, and cold email from a domain without them is far more likely to be filtered.

How long do DNS changes take?

Usually minutes, sometimes up to 48 hours, depending on your DNS host and the record’s TTL. Check with a lookup tool before testing.

Should I use a separate domain for cold email?

Many agencies do, so a problem with outreach never touches the main domain’s invoices and support email. The separate domain needs its own SPF, DKIM and DMARC.

What does DMARC alignment mean?

The domain in the visible From address must match the domain that passed SPF or DKIM. Sending from your own mailbox through its own provider usually aligns by default.

Does Instilify set these records for me?

No. They live at your DNS host, and only you can change them. Instilify checks what is published for each connected mailbox and tells you what’s missing.