Guarantee the integrity and authenticity of your emails with DKIM.
DKIM (DomainKeys Identified Mail) adds a cryptographic signature to each email sent from your domain. This signature allows the receiving server to verify that the email hasn't been modified in transit and that it actually comes from a server authorized by your domain.
Unlike SPF which only verifies the sender's IP, DKIM guarantees the integrity of the email content. An attacker could intercept an email and modify it, but the DKIM signature would become invalid, alerting the recipient to the manipulation.
DKIM relies on asymmetric cryptography: your email server signs with a private key, and the corresponding public key is published in your DNS for anyone to verify the signature.
DKIM uses cryptography to authenticate emails:
DKIM provides guarantees that SPF cannot offer:
DKIM configuration involves email server and DNS:
Here are DKIM record examples:
; DKIM record in DNS
; Format: selector._domainkey.domain.com
google._domainkey.example.com. IN TXT "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4..."
; Google Workspace DKIM (partial example)
google._domainkey.example.com. IN TXT "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA..."
; Verification with dig
$ dig google._domainkey.example.com TXT +short
"v=DKIM1; k=rsa; p=MIGfMA0GCS..."
; DKIM header in an email
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=example.com; s=google;
h=from:to:subject:date:message-id;
bh=2jUSOH9NhtVGCQWNr9BrIA==;
b=dP3R6h4N5klJwPQ...
v=DKIM1 identifies the format. k=rsa indicates the algorithm. p= contains the base64-encoded public key. The selector (google, s1, etc.) identifies which key to use.
Optimize your DKIM deployment:
No, they are complementary. SPF verifies the sending IP, DKIM verifies content integrity. DMARC combines them for a unified policy. Use all three.
Common causes: incorrect or missing DNS public key, email modified in transit (by a relay or antispam), misconfigured selector, or private key not installed.
The selector identifies which key to use. It allows having multiple keys (for different services or rotation). The DNS record is selector._domainkey.domain.com.
If you send emails from different subdomains, each needs its own DKIM configuration (even if the key can be shared).
DKIM guarantees integrity (non-modification) but not confidentiality. Content remains readable. For confidentiality, use encryption (S/MIME, PGP).
Annual rotation is recommended, or immediately if you suspect a compromise. Use a new selector and keep the old one active during transition.
DKIM provides a cryptographic guarantee that your emails are authentic and unmodified. Combined with SPF, it forms the foundation of modern email authentication and significantly improves your deliverability.
Deploy DKIM on all your email flows, monitor your DNS records with MoniTao, and complete with DMARC for a clear enforcement policy. Email authentication is an essential investment.
Start free, no credit card required.