What DKIM does
DKIM (DomainKeys Identified Mail) puts a digital signature on every email you send. Your mail provider signs the message with a private key; the receiving server fetches the matching public key from your DNS and checks that the message was not changed on the way and really comes from someone allowed to sign for your domain.
The public key lives in a TXT record at selector._domainkey.your-domain. The selector is just a name, so a domain can have several keys at once: one for Google Workspace, one for Klaviyo, one for your helpdesk.
Why selectors make DKIM hard to check
Unlike SPF and DMARC, there is no single place to look. Without the selector, nobody can list your keys; they can only guess. The checker reads your SPF record to see which providers send for you, tries the selectors those providers use (google for Google Workspace, selector1 and selector2 for Microsoft 365, s1 and s2 for SendGrid, k1 for Mailchimp and Mailgun…), then a list of common ones.
If you know the selector, type it in. You find it in any email you sent: open the original message, look for the DKIM-Signature header and read the s= value. d= next to it is the domain that signed.
What a good key looks like
- An RSA key of 2048 bits. 1024-bit keys still work but are weak; Google recommends 2048 bits.
- Ed25519 keys are small and strong, but not every receiver checks them yet, so they are published next to an RSA key, not instead of it.
- An empty p= means the key was revoked on purpose. Fine for an old selector, a problem if your provider still signs with it.
DKIM and DMARC alignment
A valid signature is not enough for DMARC. The signing domain (d=) must match the domain in your From address, or be a subdomain of it. Many email tools sign with their own domain by default, such as klaviyomail.com or sendgrid.net. The signature passes, but it does nothing for your DMARC.
The fix is to "authenticate your domain" in the tool's settings: it gives you two or three CNAME records, and from then on it signs as your domain. Shopify Email, Klaviyo, Mailchimp and Omnisend all have this step. Once it is done, their mail passes DMARC for your domain.
Rotating keys
Good practice is to change keys every six to twelve months: publish a new selector, switch signing to it, and revoke the old one after a week or two. Most providers that use CNAME records rotate for you. If you manage keys yourself, keep the old one published until no mail signed with it is still in transit. In Google Workspace a new key is made in the Admin console under Apps, Google Workspace, Gmail, Authenticate email.
Run this check after every change of email provider: the most common DKIM problem is a new tool that sends without one, which shows up as a provider in your SPF with no key found here.