What is DKIM?
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
- You publish a public key in DNS, under a name called a selector.
- Your mail server signs each email with the matching private key, which never leaves the server.
- The signature travels in a header called DKIM-Signature, naming your domain and selector.
- 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.
| Part | Example on getnorthwind.com |
|---|---|
| Host | google._domainkey.getnorthwind.com |
| Type | TXT |
| Value | v=DKIM1; k=rsa; p=MIIBIjANBgkqh... (a long public key) |
| Tag | Means |
|---|---|
| v=DKIM1 | This is a DKIM key record |
| k=rsa | The 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:
| Tag | What it holds | What to check |
|---|---|---|
| d= | The signing domain | Your sending domain, not your provider's |
| s= | The selector | Matches the record you published |
| h= | The headers that were signed | Includes from |
| bh= | A hash of the body | Nothing to check by hand |
| b= | The signature | Nothing 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.
| Provider | Where | What you add in DNS |
|---|---|---|
| Google Workspace | Admin console, Apps, Google Workspace, Gmail, Authenticate email | One TXT record at google._domainkey |
| Microsoft 365 | Defender portal, Email authentication settings, DKIM | Two CNAME records: selector1._domainkey and selector2._domainkey |
| Other SMTP provider | Its domain or authentication settings | The 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.
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
| Result | Likely cause | Fix |
|---|---|---|
| DKIM: none | Signing never switched on | Press start in the provider after DNS updates |
| Key not found | Wrong host, or the domain was added twice | Look up selector._domainkey.yourdomain.com |
| Bad signature | Key pasted with a break or missing character | Paste the value again as one string |
| Pass, wrong domain | Provider signs with its own domain | Set up DKIM for your domain in that provider |
| Fails after forwarding | A server changed the body or footer | Normal 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.
Keep reading
What is DMARC?
What DMARC checks, what each policy value does and which record to publish on a cold email domain.
What is an SPF record?
What an SPF record says, how to read each part and the two rules that break most of them.
How to run a cold email campaign
A cold email campaign from start to finish in seven steps, with a full worked example.