How DKIM works
Your mail server signs selected headers and the body of each message with a private key and adds a DKIM-Signature header. The receiver looks up the public key at selector._domainkey.yourdomain.com and checks the signature. If anything in the signed parts changed, the check fails.
How to turn it on
Google Workspace: Admin console → Apps → Google Workspace → Gmail → Authenticate email, generate a key, publish the TXT record, then start authentication. Microsoft 365: publish the two CNAME records (selector1 and selector2) shown in the Defender portal, then enable DKIM. Other hosts such as Zoho or Hostinger show their selector and record in the mail settings.
Good practice
Use 2048-bit keys where your provider allows it, rotate keys periodically, and make sure every tool that sends as your domain signs with DKIM. DKIM survives forwarding better than SPF, which makes it the key signal for DMARC alignment.