Foxcolab

Glossary

DKIM (DomainKeys Identified Mail)

Definition

DKIM (DomainKeys Identified Mail): An email authentication standard (RFC 6376) that adds a cryptographic signature to outgoing messages. Receivers verify it with a public key the sending domain publishes in DNS, proving the domain authorized the message and it wasn't altered.

Also known asDomainKeys Identified MailDKIM signatureDKIM record

In short

DKIM (DomainKeys Identified Mail, RFC 6376) is an email authentication standard that adds a cryptographic signature to each outgoing message. The receiving server fetches the sending domain's public key from DNS and checks the signature, which proves the domain authorized the message and that the signed parts weren't altered in transit.

Key takeaways

  • The sending server signs selected headers and the body with a private key.
  • The public key lives in DNS at selector._domainkey.yourdomain.
  • Current rules set a minimum key length and recommend longer keys, and you rotate a key by publishing a new selector.
  • DKIM usually survives forwarding, but mailing lists that edit messages break it.

Last reviewed 30 November 2026 by Foxcolab Team

DKIM, DomainKeys Identified Mail, is an email authentication standard defined in RFC 6376. The sending mail server adds a cryptographic signature to each outgoing message. The receiving server looks up the sending domain's public key in DNS and verifies the signature. If it checks out, the receiver knows the domain authorized the message and that the signed parts weren't changed along the way.

How DKIM works#

The signature travels in a DKIM-Signature header. It covers the message body and a list of headers, always including From, and names two values the receiver needs:

  • d= the signing domain, for example example.com
  • s= the selector, which says which key was used

The receiver fetches the public key from a TXT record at <selector>._domainkey.<domain>:

Text
selector1._domainkey.example.com  TXT  "v=DKIM1; p=MIIBIjANBgkqh..."

Selectors let several services sign for one domain, each with its own key, and let you rotate keys without downtime: publish a new selector, switch signing to it, then retire the old one.

Keys#

RFC 8301 sets a minimum length for signing keys, recommends a longer one and forbids signing with a weak hash function. Receivers may treat a signature made with a key that's too short as no signature at all. RFC 8463 adds a second signature method with much shorter keys. A key of the recommended length is longer than 255 characters, so DNS stores it as several strings; most DNS hosts split it for you.

What DKIM proves, and what it doesn't#

DKIM is a signature on the message itself, so it usually survives forwarding, where SPF fails. Mailing lists that add footers or rewrite subjects break it. And a valid DKIM signature only proves some domain signed the message. It's DMARC that requires the signing domain to match the From address people see. DKIM is an everyday example of public-key cryptography.

In Foxcolab#

Foxcolab generates a dedicated DKIM key for each domain you connect and signs your outgoing mail with the selector foxcolab, so the record you publish goes at foxcolab._domainkey. It won't collide with selectors other services use, and you copy the record exactly as the Domains tab shows it. DKIM proves your mail came from your domain. Mail from one Foxcolab user to another is also end-to-end encrypted, so its message body stays unreadable to every server it passes.

See SPF, DKIM and DMARC explained.

Keep exploring

All terms

Foxcolab

Private work tools, without the ads.

Mail, files, documents, spreadsheets and meetings in one account. Files, documents and spreadsheets are end-to-end encrypted.

Jump to