All resources

What is DKIM?

Article · 5 min read

DKIM (DomainKeys Identified Mail) is an email authentication method that adds a digital signature to every message you send. The receiving server looks up a public key in your domain's DNS and checks the signature, which proves the email was sent with your domain's permission and wasn't changed on the way.

For cold email, DKIM is one of three DNS records every sending domain needs before the first send, next to an SPF record and a DMARC policy.

How DKIM works

  1. You publish a public key in DNS, under a name called a selector.
  2. Your mail server signs each email with the matching private key, which never leaves the server.
  3. The signature travels in a header called DKIM-Signature, naming your domain and selector.
  4. The receiver fetches the key from DNS, checks the signature and records pass or fail.

The signature covers the body and chosen headers such as From, Subject and Date. Change one of them after signing and the check fails. DKIM doesn't encrypt anything: anyone can still read the message.

What a DKIM record looks like

A DKIM record is a TXT record (or a CNAME pointing to one) at selector._domainkey.yourdomain.com. The selector lets one domain hold several keys, one per sending service.

PartExample on getnorthwind.com
Hostgoogle._domainkey.getnorthwind.com
TypeTXT
Valuev=DKIM1; k=rsa; p=MIIBIjANBgkqh... (a long public key)
TagMeans
v=DKIM1This is a DKIM key record
k=rsaThe key type. RSA is the common one
p=The public key itself. An empty p= means the key was revoked

You never write the key yourself. Your mailbox provider generates it and you paste it into DNS.

The signature inside each email

Open any signed email's headers and you'll find a DKIM-Signature line. Five tags matter when you're checking a cold email domain:

TagWhat it holdsWhat to check
d=The signing domainYour sending domain, not your provider's
s=The selectorMatches the record you published
h=The headers that were signedIncludes from
bh=A hash of the bodyNothing to check by hand
b=The signatureNothing to check by hand

Tip: d= is the one that matters. If it shows your provider's domain, DKIM can pass while DMARC still fails, because DMARC needs the signing domain to match your From address.

Turn on DKIM for a cold email domain

Most cold email tools send through the Google or Microsoft inboxes you connect, so the mailbox provider does the signing. Set DKIM up there, once per sending domain.

ProviderWhereWhat you add in DNS
Google WorkspaceAdmin console, Apps, Google Workspace, Gmail, Authenticate emailOne TXT record at google._domainkey
Microsoft 365Defender portal, Email authentication settings, DKIMTwo CNAME records: selector1._domainkey and selector2._domainkey
Other SMTP providerIts domain or authentication settingsThe record it shows you, usually TXT or CNAME

Step 1: Generate the key

Pick the sending domain and generate a new record. Choose a 2048-bit key where offered: Gmail asks for at least 1024 bits and recommends 2048.

Step 2: Publish it in DNS

Copy the host and value exactly into your domain's DNS. Some DNS panels add the domain to the host for you, so enter google._domainkey, not the full name twice.

Step 3: Start signing

Go back to the provider and press start or enable. DNS changes can take up to 48 hours to spread. The provider won't sign until it can see the record.

Step 4: Repeat for every sending domain

Running three domains for volume? Each needs its own key. A key on your main domain doesn't sign mail from getnorthwind.com.

Check that DKIM passes

Send a test from each inbox to a Gmail address you own. Open it, choose Show original from the three-dot menu and read the summary at the top.

What a passing result looks like in Gmail's Show original

SPF: PASS with IP 203.0.113.25 DKIM: 'PASS' with domain getnorthwind.com DMARC: 'PASS'

The domain after DKIM must be your sending domain. If all three lines pass, the domain is ready for warm-up.

Why DKIM fails

ResultLikely causeFix
DKIM: noneSigning never switched onPress start in the provider after DNS updates
Key not foundWrong host, or the domain was added twiceLook up selector._domainkey.yourdomain.com
Bad signatureKey pasted with a break or missing characterPaste the value again as one string
Pass, wrong domainProvider signs with its own domainSet up DKIM for your domain in that provider
Fails after forwardingA server changed the body or footerNormal for some forwards. SPF and DMARC rules handle it

DKIM gets you trusted, not delivered

A signed email to a dead address still bounces. Bounces and spam complaints hurt a new domain faster than missing records. Once DKIM passes, the list decides how the domain holds up: email bounce rate shows the numbers to watch.

ContactYard gives you the list to match the setup. Search hundreds of millions of verified B2B prospects by Job Title, Employee Headcount, Industry and Location. Every work email is verified before you get it, and one credit covers the email, the mobile when available and the check.

  • Built for small first sends. Export 100 to 200 contacts for your warm-up weeks, then the rest.
  • Fresh every month. Data is refreshed every 14 days, so a saved search pulls current people.
  • Cheap to test. About $3.30 per 1,000 contacts on Scale. Apollo lists $18 publicly.

Records done? Start free and build the first list your new domain sends to.

FAQ

What is DKIM?
DomainKeys Identified Mail, a digital signature added to each email. Receivers check it against a public key in your DNS to confirm the mail came from your domain unchanged.
What is a DKIM record?
A TXT record at selector._domainkey.yourdomain.com holding your public key, in the form v=DKIM1; k=rsa; p= followed by the key.
What is a DKIM selector?
The name before ._domainkey that tells receivers which key to fetch. It lets one domain use different keys for different senders.
Is DKIM required for cold email?
Gmail requires SPF or DKIM from every sender, and both plus DMARC from anyone sending 5,000+ messages a day to Gmail. Set all three on every cold domain.
What is the difference between DKIM and SPF?
SPF lists the servers allowed to send for a domain. DKIM signs each message, so it survives most forwarding where SPF breaks.