DKIM (DomainKeys Identified Mail)

By Moe Ameen, founder of BILT · Published · Updated

DKIM (DomainKeys Identified Mail) adds a cryptographic signature to each email; receivers check it against a public key in the sender's DNS to confirm the domain sent it.

Key takeaways

  • DKIM proves which domain signed a message and that signed content was not changed.
  • Public keys live in DNS under a selector, such as s1._domainkey.example.com.
  • Use 2048-bit keys where your provider allows it; Google's minimum is 1024.

RFC 6376 defines DKIM. The sending server signs selected headers and the body with a private key. The receiver reads the signature, finds the selector and domain in it, and fetches the public key from DNS at selector._domainkey.domain. If the math checks out, the message was signed by that domain and not altered in the signed parts.

Google requires DKIM keys of at least 1024 bits and recommends 2048. Bulk senders to Gmail and Yahoo must have DKIM in place, and DMARC uses an aligned DKIM pass as one way to pass.

How does DKIM signing work?

Your mail server signs each message with a private key, and receivers verify it using the matching public key you publish in DNS.

The signature header names the signing domain (d=) and the selector (s=). Selectors let you run several keys at once, one per sending service, and rotate keys without downtime.

Why does a DKIM signature fail?

DKIM fails when the DNS key is missing or wrong, or when the message changes in transit after signing.

RFC 6376 notes that some mail systems modify messages in transit and can break signatures. Relaxed canonicalization tolerates small whitespace changes; simple tolerates almost none. Mailing lists that add footers or rewrite subjects are a common cause.

What does DKIM setup look like for a cold email domain?

Generate a key in your sending tool, publish its TXT record at the selector it gives you, then send a test and check the headers for dkim=pass.

Illustrative case: a cold email tool gives you selector "mail1". You publish the key at mail1._domainkey.outreachdomain.com, wait for DNS to update, and confirm a test message to Gmail shows DKIM pass with d=outreachdomain.com, which also aligns for DMARC.

Who is this for, and who should skip it?

Best for

  • Senders who want receivers to confirm which domain signed a message
  • Cold email domains set up through a sending tool that hands you a selector

Not ideal for

  • Mail that gets rewritten in transit after signing and breaks the signature
  • Telling receivers what to do with failing mail; that's DMARC's job

What else do people ask?

Do I need DKIM if I have SPF?

For bulk senders to Gmail and Yahoo, yes. DKIM also survives forwarding better than SPF.

Can I have more than one DKIM key?

Yes. Each sending service can use its own selector on the same domain.

How often should I rotate DKIM keys?

Rotate on a schedule you can maintain, and whenever a provider or employee with key access leaves.

What does d= mean in a DKIM signature?

It is the signing domain. For DMARC, it must match or share an organizational domain with the From address.

How do we know this?

We read RFC 6376, Google's sender guidelines and Yahoo's sender best practices on November 4, 2026.

Sources

  1. RFC 6376: DomainKeys Identified Mail (DKIM) Signatures (accessed November 4, 2026)
  2. Google Workspace Admin Help: Email sender guidelines (accessed November 4, 2026)
  3. Yahoo Sender Hub: Sender best practices (accessed November 4, 2026)

Related terms

Put the terms to work.

BILT AI builds outbound software for real estate investors and B2B teams. Home-services tools are on a waitlist.