DKIM Explained: How Email Signing Works and How to Enable It

What DKIM is, how email signatures prove a message is genuine, how to enable it in Microsoft 365, Google Workspace and other tools, and how to check it.

Yrzo AI28 November 2026 2 min read

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.

Is your site exposed to this?

Run a free, non-intrusive check of what attackers can see from outside. No account needed.

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

DKIM explainedhow to set up DKIMDKIM recordDKIM Microsoft 365 Google Workspace
Share

Check your own website in 60 seconds

Free check, no account needed. Want the full picture? Full reports start at £149, with up to 110 checks with a 14-day money-back guarantee.

Keep reading