Understanding DKIM (DomainKeys Identified Mail) and email authentication
DKIM (DomainKeys Identified Mail) is an email authentication protocol that adds digital signatures to emails to verify they're authentic and haven't been tampered with during transmission. DKIM uses cryptographic signatures to ensure email integrity and authenticity.
DKIM prevents email spoofing, improves deliverability, and protects email integrity. It's one of three main email authentication protocols (SPF, DKIM, DMARC) that work together to provide comprehensive email security.
Verify your DKIM records and use our email authentication checker to ensure DKIM is properly configured.
Domain owners generate DKIM key pairs (public and private keys) for signing emails.
Public keys are published in DNS as TXT records, typically under a selector subdomain (e.g., selector._domainkey.example.com).
When sending emails, mail servers generate DKIM signatures using the private key and add them to email headers.
Receiving mail servers verify DKIM signatures by retrieving public keys from DNS and verifying signature validity.
DKIM verification results (pass, fail, none) are recorded in email headers and used for deliverability decisions.
DKIM results are combined with SPF results and evaluated against DMARC policies.
DKIM signatures are added to email headers in this format: DKIM-Signature: v=1; a=rsa-sha256; d=example.com; s=selector; ...
Signatures are generated by hashing selected header fields and email body, then signing the hash with the private key.
Receivers verify signatures by retrieving the public key from DNS and verifying the signature against the email content.
DKIM public keys are published in DNS as TXT records at: selector._domainkey.example.com
DKIM records contain key-value pairs: v=DKIM1; k=rsa; p=publickeydata...
Selectors identify different key pairs for the same domain, allowing key rotation and multiple signing domains.
DKIM verification produces specific results:
DKIM signature is valid and verified successfully. This confirms email authenticity and integrity.
DKIM signature verification failed. This may indicate email tampering, invalid signature, or configuration issues.
No DKIM signature found in email headers. Missing DKIM signatures hurt deliverability and reduce authentication benefits.
DKIM results are recorded in Authentication-Results headers, showing verification status and domain alignment.
Generate DKIM key pairs (public and private keys) for your domain. Many email service providers generate keys automatically.
Publish the public key in DNS as a TXT record under the selector subdomain (e.g., selector._domainkey.example.com).
Configure your mail server to sign outgoing emails with the private key using the appropriate selector.
Use our DKIM lookup tool to verify the DNS record is published correctly.
Send test emails and use our authentication checker to verify DKIM passes.
Monitor DKIM authentication results in email headers to ensure proper configuration and signature generation.