Enable DKIM for your email domain
DKIM lets a receiver verify a message’s signature using a public key in your DNS. Generate the key in the service that sends the mail.
Reviewed by Mira John Updated
Get the selector and public record
Open the sending service’s domain authentication settings and generate a DKIM key. Copy its selector, record type and full TXT value or CNAME target. A sent message identifies the signing domain in d= and selector in s=.
Publish the record
In the signing domain’s active DNS zone, add the provider’s TXT or CNAME at selector._domainkey. Check the saved full name so the domain suffix appears once. Keep the public key in one TXT record, with each tag name appearing once.
Enable signing and verify
Complete verification or enable signing in the sending service. Enter the selector under Advanced checks, then send a fresh message and confirm dkim=pass for the intended d= domain.
Check the published record
Replace example.com with your domain and selector with the signing selector.
nslookup -type=TXT selector._domainkey.example.com
The DKIM key exists, but messages still fail
NXDOMAIN at the selector
Read the signing domain (d=) and selector (s=) in DKIM-Signature. Look up that selector’s _domainkey record and publish the sending service’s assigned value.
No DKIM-Signature on a new message
Enable signing in the service that actually sends the message, then send another test. Publishing a DNS key does not start signing.
DKIM fails with a public key present
Compare the message’s selector with the current key. Test a direct message to identify changes to signed headers or body in transit.
Confirm: The receiving system reports dkim=pass for the intended signing domain on a newly sent message.