What is dkim

Last updated: April 1, 2026

Quick Answer: DKIM (DomainKeys Identified Mail) is an email authentication protocol that digitally signs outgoing emails, allowing recipients and mail servers to verify that messages genuinely originated from a domain and weren't altered in transit.

Key Facts

What is DKIM?

DomainKeys Identified Mail (DKIM) is a technical standard that adds a cryptographic signature to email headers, creating a verifiable proof that an email was sent by an authorized sender from a specific domain. This digital signature allows mail servers and recipients to confirm that emails are legitimate and have not been altered during transmission. DKIM is a critical component of modern email security infrastructure, protecting both email senders and recipients from fraud and spoofing.

How DKIM Works

DKIM operates through a public-key cryptography system. When an email is sent, the mail server signs the message using a private key stored securely on the sending server. Recipients and intermediate mail servers can verify this signature using the corresponding public key published in the sender's DNS records. If the signature is valid and hasn't been tampered with, the email is authenticated. If the signature fails or is absent, the email may be flagged as suspicious or filtered to spam.

Setting Up DKIM

Implementing DKIM requires several steps:

DKIM vs. SPF and DMARC

DKIM complements other email authentication standards. SPF (Sender Policy Framework) specifies which mail servers can send emails for your domain by IP address. DMARC (Domain-based Message Authentication) ties DKIM and SPF together and provides instructions for handling authentication failures. Together, these three protocols create a robust defense against email spoofing, impersonation, and phishing attacks.

Benefits and Impact

DKIM provides critical benefits for businesses and individuals. It improves email deliverability by reducing spam folder placement, protects your domain's reputation by preventing unauthorized senders from impersonating you, and gives recipients confidence that emails are legitimate. Major email providers like Gmail, Outlook, and Yahoo require DKIM signing for good sender reputation, making implementation essential for reliable email delivery.

Related Questions

What is a DKIM selector?

A DKIM selector is a text identifier in DNS records that specifies which public key should verify a DKIM signature, allowing multiple keys per domain for key rotation and management.

What is the difference between DKIM and SPF?

DKIM verifies email content hasn't been altered using digital signatures, while SPF verifies the sending server's IP address matches authorized mail servers for your domain.

Can emails work without DKIM?

Emails can be sent without DKIM, but they're more likely to be filtered as spam and may be rejected by mail servers if DKIM is expected but missing.

Sources

  1. Wikipedia - DomainKeys Identified Mail CC-BY-SA-4.0
  2. RFC 6376 - DKIM Specification BSD