In short
DKIM (DomainKeys Identified Mail) adds a cryptographic signature to each email, generated using a private key held by the sending service. The corresponding public key is published in the domain’s DNS under a “selector” (selector._domainkey.your-domain.fr). The recipient can thus verify that the message actually comes from the domain and has not been altered in transit. DKIM is one of the two mechanisms on which DMARC relies.
How it works
- The sending service signs certain headers and the message body with its private key.
- The signature is added to the DKIM-Signature header, along with the domain (d=) and the selector (s=).
- The receiving server retrieves the public key from the DNS and verifies the signature.
- DMARC then verifies that the signing domain matches the one displayed in the “From” field.
Best Practices
- Enable DKIM in every service that sends email on behalf of your domain, using your own domain name rather than the service provider’s.
- Use RSA keys of at least 2048 bits.
- Renew keys periodically using selectors.
Frequently asked questions
How do I find my DKIM selector?
In the DKIM-Signature header of an email sent from your domain (s= parameter), or in the configuration of your email service.
Sources
Find out where an attacker would get in.
Our AI agents actually attack your scope, fully automated, and hand you the proof of every vulnerability.
