What DKIM does
DomainKeys Identified Mail (DKIM) adds a digital signature to every email you send. The sending service signs the message with a private key; your domain publishes the matching public key in DNS. Receiving servers use it to confirm two things: the email came from a service you authorised, and it was not changed on the way.
Together with SPF and DMARC, DKIM is how you stop people spoofing your domain.
Why DKIM matters even with SPF
- It survives forwarding. SPF often fails when mail is forwarded; DKIM signatures stay valid.
- It aligns with the visible sender. DMARC can pass on DKIM alone when SPF fails.
- It proves integrity. A tampered message fails the signature check.
What a DKIM record looks like
DKIM records live at a "selector" under _domainkey, for example selector1._domainkey.yourdomain.co.uk. The value contains v=DKIM1; k=rsa; p= followed by a long public key. Each sending service has its own selector, so you can have several DKIM records at once.
How to enable it
Microsoft 365
In the Microsoft Defender portal, open the DKIM settings for your domain, publish the two CNAME records Microsoft provides, then switch signing on.
Google Workspace
In the Admin console, go to Gmail authentication, generate a key (2048-bit where your DNS host supports it), add the TXT record, then start authentication.
Newsletters, CRMs, shops and helpdesks
Most services have a "domain authentication" or "sender authentication" page with DNS records to add. Do this for every service that sends as your domain — otherwise its mail will fail DMARC once you enforce it.
Checking DKIM is working
Send an email to a Gmail account, open the message menu and choose "Show original". Look for DKIM: PASS with your domain. DMARC aggregate reports will also show DKIM results for every sender.
Good practice
- use 2048-bit keys where supported
- rotate keys periodically and remove selectors for services you no longer use
- never share private keys between services
Check your email security
Yrzo AI checks your domain's email authentication records as part of every scan and explains what to fix. Run a free scan.
Related reading: SPF Record Explained: How to Write One Correctly · How to Set Up DMARC: A Step-by-Step Guide for UK Businesses · Shopify App Security Risks: What Store Owners Should Check