DeliverabilityDecember 5, 20267 min

SPF, DKIM, DMARC: the three records to set before you send.

Before your first cold email, three lines in your DNS decide whether your messages look trustworthy. Here is what each one does, examples, the order to set them up, how to raise your DMARC policy in stages and how to check your work.

Definition

SPF, DKIM and DMARC are three DNS records that prove an email really comes from your domain. SPF lists the servers allowed to send, DKIM adds a signature to the message, and DMARC tells the receiver what to do when a check fails and sends you reports. For a cold email sender, all three get set up before the first send.

A padlock on an envelope in front of a server, a symbol of SPF, DKIM and DMARC email authentication

What SPF, DKIM and DMARC each do

An email can display any sender address. By design, nothing forces you to prove you may use the domain it shows. SPF, DKIM and DMARC add that proof, each in its own way. All three are published in your domain's DNS zone as TXT records.

SPF: the list of senders

You publish the servers and services allowed to send on behalf of your domain. The receiving server compares the address of the server talking to it against that list (RFC 7208).

DKIM: the signature

Every message leaves with a cryptographic signature. The receiver looks up the public key in your DNS and checks that the message really comes from your domain (RFC 6376).

DMARC: the rule and the reports

You say what the receiver should do with a message that fails: nothing, quarantine or reject. And you get reports on who is sending in your name (RFC 9989).

SPF checks the server, DKIM checks the message, and DMARC checks that one of them matches the address the recipient sees, then sets the rule.

The three DNS records that authenticate an email: SPF lists authorized senders, DKIM signs the message, DMARC sets the rule when a check fails
The three DNS records that authenticate an email: SPF lists authorized senders, DKIM signs the message, DMARC sets the rule when a check fails

SPF: the record and an example

SPF is a TXT record published at the root of the domain. It starts with v=spf1, lists the authorized sources and ends with a default rule. Here is an example with a fictional domain.

TypeNameValue
TXTexample.comv=spf1 ip4:203.0.113.25 include:_spf.mailservice.example.net ~all

Reading it piece by piece:

  • v=spf1: the version, required and placed first.
  • ip4:203.0.113.25: authorizes one specific IP address.
  • include:_spf.mailservice.example.net: authorizes whatever that domain authorizes. This is the usual form when a sending service publishes its own list.
  • ~all: the rule for everything else. The ~ sign gives a "softfail" result (probably not authorized), the - sign gives a "fail" (not authorized).

Two limits to know, both set by RFC 7208. A domain must publish only one SPF record: two records produce a permanent error. And evaluation is capped at 10 terms that trigger a DNS lookup (include, a, mx and similar): beyond that, the result is also a permanent error. Every sending service you add uses up part of that budget.

DKIM: the signature and the public key

For DKIM, your mailbox or sending provider generates a key pair. The private key stays with them and signs every message. You publish the public key in DNS at selector._domainkey.yourdomain (RFC 6376). The selector is just a name that lets you run several keys side by side.

TypeNameValue
TXTs1._domainkey.example.comv=DKIM1; k=rsa; p=MIIBIjANBgkq…(your public key, a long string of characters)

In the header of each sent message, a DKIM-Signature line carries, among other things, the signing domain (d=example.com) and the selector (s=s1). The receiver uses them to find the key.

Two practical points. The signing domain should be yours: a signature in your provider's name proves nothing about your domain and will not pass DMARC alignment. And key length matters: the guidelines page cited below asks for at least 1024 bits and recommends 2048 when your provider supports it.

DMARC: the policy, alignment and reports

DMARC is published as TXT at _dmarc.yourdomain. It builds on SPF and DKIM and adds two things: a rule and reports. The current standard is RFC 9989, published in May 2026, which replaces RFC 7489.

TypeNameValue
TXT_dmarc.example.comv=DMARC1; p=none; rua=mailto:dmarc-reports@example.com
  • v=DMARC1: the version.
  • p: the policy, either none, quarantine or reject.
  • rua: the address that receives aggregate reports. The standard says that mailbox must exist.
  • sp: the policy for subdomains, if it should differ from the domain's.

Alignment: the point people miss

Passing DMARC takes more than a passing SPF or DKIM check. At least one of them must pass and the domain it authenticated must match the domain in the visible From address. Alignment is "relaxed" when the domains share the same organizational domain (mail.example.com and example.com) and "strict" when they are identical. The standard adds that with p=reject you should not rely on SPF alone: a valid DKIM signature is needed.

The order to set all three up

Order matters, because DMARC assumes SPF and DKIM already work. The safest sequence:

  1. Inventory your sources

    List everything that sends with your domain: your reps' mailboxes, your sending tool, billing, the website, support. A miss here becomes a legitimate message rejected later.

  2. Publish a single SPF record

    One record that combines all sources, starting with ~all.

  3. Turn on DKIM for each source

    Generate the key at the provider, publish it under the right name, switch signing on.

  4. Send a test message

    To another mailbox of yours, then open the headers and look for the results (see the verification section).

  5. Publish DMARC at p=none

    With a rua address that really exists. No effect on delivery, but the reports start arriving.

  6. Read the reports and fix

    Every unknown or misaligned source gets fixed now, not after you move to reject.

  7. Tighten in stages

    quarantine then reject, as described below.

A gradual DMARC policy: none, quarantine, reject

Never jump straight to p=reject. RFC 9989 recommends publishing p=none for at least a month, then p=quarantine, before considering p=reject, comparing results between the two stages.

  1. First month at leastp=none: observe

    No effect on delivery. The reports show who sends in your name and what fails alignment.

  2. Once the reports are cleanp=quarantine: treat as suspect

    Messages that fail are treated as suspicious, which often means they land in spam. You compare against the observation period.

  3. Once nothing legitimate failsp=reject: refuse

    Messages that fail are refused. This is the strongest protection, reserved for domains where every source is aligned.

One detail from the standard: the old pct tag, which applied the policy to a percentage of messages, has been removed. In its place, t=y asks the receiver to apply one level lower (reject becomes quarantine, quarantine becomes monitoring) while you test. Some receivers still read pct, so do not build your plan on it.

A gradual DMARC rollout in three stages: p=none to observe for at least a month, p=quarantine, then p=reject once everything is aligned
A gradual DMARC rollout in three stages: p=none to observe for at least a month, p=quarantine, then p=reject once everything is aligned

How to check that everything works

Three checks are enough, and none needs a special tool.

  • DNS publishes the records. From a terminal, nslookup -type=TXT example.com for SPF, nslookup -type=TXT _dmarc.example.com for DMARC, nslookup -type=TXT s1._domainkey.example.com for DKIM. Make sure there is only one SPF record.
  • A real message passes. Send an email to another mailbox of yours, open "show original" or the headers, and read the Authentication-Results line: you want spf=pass, dkim=pass and dmarc=pass.
  • The domains match. On that same line, the SPF domain and the signature's d= domain should match the domain of the From address.
  • Reports arrive and get read. They come as XML, usually once a day per receiver. Look for unknown sources and failing lines.
  • Recheck after every change. New sending tool, new provider, new subdomain: run the test again before the campaign.

Common mistakes

MistakeConsequenceFix
Two SPF records on the same domainPermanent error, SPF stops passingMerge them into one record
Too many nested include terms (over 10 DNS lookups)Permanent error, same effectRemove unused services
-all before the source inventoryLegitimate messages get refusedStart with ~all, tighten after the reports
DKIM key copied wrong, or wrong selectorSignature not found or invalidCopy the exact name and value, with no line breaks
From domain differs from the authenticated domainAlignment fails, so DMARC failsSign with DKIM using your own domain
A rua address that does not existNo reports, so no visibilityCreate the mailbox before publishing
Moving to p=reject without reading reportsLegitimate messages lostFollow the stages

What it changes for cold email

When you write to someone who has never heard of you, filters have no reason to trust you in advance. Authentication does not guarantee the inbox, but its absence flags you immediately. It is the foundation: the message, the targeting and the volume do the rest (see our guide to cold email).

Large mailbox providers now publish written requirements. According to Email sender guidelines (Gmail Help), accessed December 5, 2026, every sender must set up SPF or DKIM. Above 5,000 messages a day to the accounts concerned, SPF, DKIM and a DMARC record are all required, with an aligned From domain, and marketing messages must allow unsubscribing in one click. The page also sets a spam rate to keep under 0.30%, for all senders. A rep sending a few dozen messages a day is far from the volume threshold, but there is no reason to skip it.

The angle other guides skip: timing

A buying signal has an expiry date. After a funding round, the first weeks are when the company picks its vendors. If your message lands in spam during that window, you lose the edge the signal gave you. And since DMARC calls for at least a month of observation before tightening, you do not want to discover your DNS the day the signal drops: set all three records before you launch any automated prospecting.

  • A dedicated domain, or subdomain, for cold email protects your main domain if a campaign goes badly. That is a prudence tip, not a requirement.
  • Authentication does not replace a valid email. A well signed message sent to an address that does not exist still bounces. See how to find a decision maker's work email.
  • Tamlist sends from your own mailbox, after your approval, so your SPF, DKIM and DMARC records are the ones that count. See the prospecting software.
Questions

What people ask us.

Are SPF, DKIM and DMARC mandatory?

It depends on the receiver. According to the guidelines page cited above, accessed December 5, 2026, every sender needs at least SPF or DKIM, and above 5,000 messages a day to the accounts concerned, all three are required.

What is the difference between SPF and DKIM?

SPF checks that the sending server is authorized by the domain. DKIM checks the signature of the message itself. They complement each other, and DMARC relies on either one.

Can I publish DMARC without SPF or DKIM?

A DMARC record on its own will never pass: a message passes DMARC only if SPF or DKIM passes and aligns with the From domain. Set up both first.

How long before moving to reject?

The standard recommends at least a month at p=none, then p=quarantine, before considering p=reject. The real test: no legitimate message failing in your reports.

Do I need a separate domain for cold email?

Not required, but prudent: a dedicated domain or subdomain keeps your main domain clear of campaign mishaps.

How long does a DNS change take to apply?

It depends on the record's time to live (TTL) and the receiver's cache. Query the DNS, then send a test message before launching a campaign.

Related guides
Read next

Your team is ready. Your seat too.

Join the waitlist. We will email you as soon as your access opens.