GTM Engineering term, email infrastructure

DKIM

DKIM (DomainKeys Identified Mail) adds a cryptographic signature to outgoing email so receivers can verify it came from your domain unaltered.

Also called: DomainKeys Identified Mail, DKIM signature, DKIM record, DKIM key

DKIM lives in reach, the part of the funnel about reaching buyers, near related terms like SPF, DMARC and Cold Email Deliverability (the blue squares).

DKIM, or DomainKeys Identified Mail, adds a cryptographic signature to every email you send so the receiving server can verify it really came from your domain and wasn't changed along the way. Where SPF checks the sending server, DKIM checks the message itself. It's one of the three records every sending domain needs.

How it works

DKIM uses a pair of keys. Your email provider holds a private key and uses it to sign each outgoing message, adding a hidden DKIM-Signature header. You publish the matching public key as a DNS record on your domain, under a name called a selector, such as google._domainkey.yourdomain.com.

The signature header carries a few tags worth knowing:

  • d= the signing domain. For DMARC to pass on DKIM, this has to align with your visible From domain.
  • s= the selector, which points the receiver to the right public key.
  • h= the list of headers that were signed, like From, Subject and Date.
  • bh= a hash of the message body.

When a message arrives, the receiving server reads the selector from the header, fetches your public key from DNS and checks the signature. If the message was altered or signed with the wrong key, DKIM fails.

Setup is usually simple: your email platform, like Google Workspace or Microsoft 365, generates the key, you paste the record into your DNS host, then turn on signing in the admin panel. Every service that sends as your domain should sign with its own DKIM key on your sending domain, not with the vendor's generic domain.

Example

A team sets up three new sending domains for outbound. They add SPF to each, but forget to turn on DKIM signing in Google Workspace after adding the DNS records. Emails go out unsigned, and inbox placement suffers. A quick check of a sent message's headers shows "dkim=none." Turning signing on takes five minutes and fixes it. The lesson: verify each domain by sending a test email and reading the headers, not just by trusting that the DNS record exists.

The cost of the miss, with assumptions: three domains, two inboxes each, 40 sends a day per inbox, two weeks unsigned. That's 3,360 emails sent with a handicap, during the exact window when the domains were building their first reputation.

How to set it up

  1. In your email admin panel, generate a DKIM key, choosing 2048-bit if offered.
  2. Add the TXT (or CNAME, for some vendors) record at the selector name your provider gives you.
  3. Wait for DNS to propagate, then click "start authentication" or the equivalent.
  4. Repeat for each tool that sends as the domain: your sequencer, marketing automation, helpdesk, billing.
  5. Send a test and confirm dkim=pass with a d= value matching your From domain.
  6. Put a reminder on the calendar to rotate keys on a regular schedule.

Common mistakes

  • Publishing the DNS record but never turning on signing.
  • Copying the key wrong, with missing characters or extra spaces, or splitting a long key incorrectly.
  • Leaving third-party senders unsigned for your domain.
  • Never checking real email headers to confirm DKIM passes.
  • Letting a vendor sign with its own domain, so DKIM passes but doesn't align for DMARC.
  • Deleting an old selector while a tool is still signing with it.

Why it matters for GTM teams

Major mailbox providers expect senders to authenticate their mail, and DKIM is part of the bulk sender requirements baseline. It also makes DMARC work, since DMARC needs SPF or DKIM to pass and align with your domain. DKIM survives forwarding better than SPF, which makes it the more reliable of the two. It's also a prerequisite for BIMI, since BIMI needs an enforced DMARC policy. Skip it and you're starting every send with a handicap.

FAQ

How do I check if DKIM is working?

Send a test email to an inbox you control, open the original message or full headers, and look for dkim=pass in the Authentication-Results line. Also check that the d= domain in the signature matches your From domain, which is what DMARC alignment needs.

What is a DKIM selector?

A selector is a label that tells the receiving server where to find your public key in DNS. It lets one domain publish several keys at once, for example one for Google Workspace and one for a marketing platform, each under its own selector.

What key length should DKIM use?

Use 2048-bit keys where your provider and DNS host support them. Shorter 1024-bit keys still work in many places but are weaker, and rotating keys periodically is good practice.

See all email infrastructure terms ↳

Used in these articles