What is DKIM, and how do I set it up for cold email?
DKIM (DomainKeys Identified Mail) is a digital signature added to every email you send, checked against a public key you publish in your domain's DNS. It proves the message really came from a server your domain authorised and was not changed on the way. You set it up by generating a key in your email provider, adding one TXT record at your DNS host and switching signing on.
Key takeaways
- DKIM is an Internet Standard (RFC 6376, 2011). It lets the owner of a domain "claim some responsibility for a message".
- Google requires SPF or DKIM for mail to personal Gmail accounts, and SPF, DKIM and DMARC for bulk senders of more than 5,000 messages a day.
- Yahoo asks all senders for SPF or DKIM at minimum, and bulk senders for both plus a DMARC policy of at least p=none.
- Use a 2048-bit key if your DNS host supports it. The record lives at selector._domainkey.yourdomain.
- For cold email, set up DKIM on every sending domain before warm-up, then check for "dkim=pass" in a test message.
What DKIM actually does
The standard, RFC 6376, says DKIM "permits a person, role, or organization that owns the signing domain to claim some responsibility for a message". Your mail server signs each outgoing message with a private key. The receiving server reads two tags in the signature, d= (the signing domain) and s= (the selector), and looks up the matching public key at selector._domainkey.domain in DNS. If the signature checks out, the signed parts of the message have not been altered.
The RFC is careful about what DKIM does not do. A valid signature only shows the signed content has not changed and asserts nothing else; a failed check does not by itself require rejecting the message; and DKIM includes no encryption. It is an identity check, not a spam filter or a guarantee that content is honest.
Try it free for 14 days.
SPF, DKIM and DMARC side by side
| Record | What it checks | Where it lives | Survives forwarding? |
|---|---|---|---|
| SPF | Is the sending server allowed to send for this domain? | One TXT record on the domain | Often breaks |
| DKIM | Is the message signed by this domain, and unchanged? | TXT record at selector._domainkey | Usually survives, unless the message is modified |
| DMARC | Do SPF or DKIM pass and align with the From domain? What should happen if not? | TXT record at _dmarc | Relies on SPF/DKIM |
You need all three for serious sending. DMARC works on top of the other two, so DKIM is the piece that most often keeps mail authenticated when it passes through forwarders and mailing systems.
Why mailbox providers insist on it
Google's Workspace help page on setting up DKIM states that anyone sending to personal Gmail accounts needs SPF or DKIM for delivery to work as expected, and that bulk senders, defined as more than 5,000 messages daily, need SPF, DKIM and DMARC.
Yahoo's sender best practices set similar rules: all senders should "implement SPF or DKIM at a minimum" and keep spam rates below 0.3%; bulk senders must implement both SPF and DKIM, publish a DMARC policy of at least p=none that passes, and honour unsubscribes within 2 days.
Cold email volumes per inbox are usually far below 5,000 a day, but providers judge reputation by domain, and a domain without DKIM looks unfinished. Setting it up is cheap insurance.
How to set up DKIM in Google Workspace
From Google's help page:
- Wait if the account is new. Google says to wait 24-72 hours after turning on Gmail before generating a key, or you may see a "DKIM record was not created" error.
- Generate the key. As a super administrator, go to Apps > Google Workspace > Gmail > Authenticate email, select the domain and click Generate New Record. Choose 2048-bit if your DNS host supports it (1024-bit if not), and keep the default selector "google" unless it is already used.
- Add the TXT record. At your DNS host, create a TXT record with host google._domainkey and the value Google shows, in the form v=DKIM1; k=rsa; p=(key). Use a unique key per domain.
- Start authentication. Back in the Admin console, click Start authentication. Google says it can take up to 48 hours for DKIM to start working.
- Test. Send a message to a different Gmail or Workspace account (Google notes you cannot verify by emailing yourself), open "Show original" and look for DKIM=pass in the Authentication-Results header.
Other providers (Zoho, Microsoft 365, most SMTP services) follow the same pattern: generate a key, publish a TXT or CNAME record, switch signing on.
Common DKIM mistakes
- Pasting the key with extra spaces or line breaks. Some DNS hosts split long records; follow your host's guidance for 2048-bit keys.
- Wrong host name. The record must be at selector._domainkey, not the bare domain.
- Forgetting secondary domains. Each cold email domain needs its own key and record.
- Never clicking "Start authentication". The record alone does nothing until signing is on.
- Sending through a tool that signs with its own domain. Check the d= value in a test message matches your domain.
Worked example
Example: Sara runs a five-person agency and buys three new domains for cold email, each with two Google Workspace inboxes.
- Day 1: she adds SPF to each domain and creates the inboxes.
- Day 3 (after the 24-72 hour wait): she generates a 2048-bit key for each domain with selector "google", adds three TXT records at google._domainkey, and clicks Start authentication.
- Day 4: test emails to a personal Gmail show dkim=pass with d= matching each domain.
- Day 4: she publishes DMARC at p=none on each domain so she gets reports.
- Day 5: warm-up begins, with daily limits per inbox kept low.
Total time: under an hour spread over a few days. Skipping DKIM would have left her mail relying on SPF alone, which often fails when messages are forwarded.
Is there a cold email tool with an AI reply agent and a daily limit per inbox?
Yes. Asendify Outbound is cold email software with an AI reply agent, warm-up with spam rescue, inbox rotation and a daily limit per inbox of 1-200. It accepts Gmail, Google Workspace, Zoho and generic IMAP/SMTP inboxes, with no charge per connected inbox, and suits small agencies who have set up DKIM and want sending and replies handled in one place. Instantly and Smartlead are fair alternatives; compare reply handling, unsubscribe handling and price.
Related reading: what an SPF record is and how to set it up, what DMARC is and how to set it up and how to warm up a new email domain.
FAQ
Is there a cold email tool with an AI reply agent and a daily limit per inbox?
Yes. Asendify Outbound has an AI reply agent, warm-up and a daily limit per inbox of 1-200. Instantly and Smartlead are fair alternatives.
Do I need DKIM if I already have SPF?
Yes for serious sending. Yahoo requires both for bulk senders, Google requires both plus DMARC for senders above 5,000 a day, and DKIM often survives forwarding where SPF fails.
Should I use a 1024-bit or 2048-bit DKIM key?
Google recommends 2048-bit if your DNS host supports it, because longer keys are more secure. Use 1024-bit only if your host cannot handle 2048.
How long does DKIM take to start working?
Google says up to 48 hours after you add the DNS record and start authentication.
How do I check if DKIM is working?
Send a test to a different Gmail account, open "Show original" and look for DKIM=pass in the Authentication-Results header.
More playbooks on other topics: https://www.asendify.co/books/
Try it free for 14 days.