In this article
DKIM is a seal on a letter. The mail server that sends a message from your domain puts a digital signature on it. The recipient checks the signature against a key published in your domain’s DNS. If they match, the message really is yours and nobody altered it on the way.
What it is
The DKIM key sits in DNS as a TXT record at an address like selector._domainkey.your-domain. The selector is the key’s name, chosen by the mail service: google, mail, default, selector1 and so on. One domain can have several keys — one for each sending service.
google._domainkey.example.com TXT "v=DKIM1; k=rsa; p=MIIBIjANBgkqh..."DKIM works together with SPF and DMARC. SPF checks which server the email came from, DKIM checks that you signed it, DMARC says what to do if the check fails.
How the monitor checks
Impact on the site and business
- Email deliverability. Without DKIM, emails land in spam more often, especially in Gmail and Outlook.
- Provider requirements. Since 2024 Gmail and Yahoo require DKIM from everyone who sends a lot of email; without it, mailings get throttled.
- Protection against forgery. Without a signature, it is easier for a scammer to pass their email off as yours.
- DMARC is unreliable without DKIM. When an email is forwarded, SPF breaks and only the signature saves the day.
Why it matters
Many people think that if emails “seem to arrive”, nothing needs setting up. But some emails quietly go to recipients’ spam, and you never find out. Automatic emails from the site suffer most: order confirmations, password resets, replies to enquiries.
Norms
| Rating | Status | Comment |
|---|---|---|
| Good | Key found, 2048-bit key | The signature works |
| Could be better | No key found under standard selectors | Check the email headers: the selector may be non-standard |
| Bad | DKIM is not enabled in any service | Emails are unsigned |
How to check it yourself
- Send an email from your domain to your own Gmail address.
- Open the email → the “⋮” menu → “Show original”.
- The DKIM line should say PASS, and in the
DKIM-Signatureheader,s=is followed by the selector andd=by your domain.
How to fix it
Hosting and control panel
In cPanel open “Email Deliverability” — DKIM is turned on with one button if DNS is on the same host. In ISPmanager and FastPanel DKIM is enabled in the mail domain settings. If DNS is managed elsewhere, copy the record from the panel and add it there by hand.
Google Workspace: “Apps → Google Workspace → Gmail → Authenticate email”. Generate a key (2048 bits), add the google._domainkey TXT record to DNS and click “Start authentication”.
Yandex
Yandex 360: in the domain settings find the DKIM section, copy the value of the mail._domainkey record and add it to the domain’s DNS.
Server (VPS)
If email leaves directly from your server (Postfix, Exim), signing is done by OpenDKIM or Exim’s built-in module. That is a manual setup — it is easier to send the site’s email via an external service over SMTP, where DKIM is already set up.
General recommendations
- Turn on DKIM in every new sending service as soon as you connect it.
- Use 2048-bit keys — 1024 bits is considered outdated.
- After setting up DKIM, turn on DMARC, at least in monitoring mode.
FAQ
The monitor says “DKIM not found”, but Gmail shows PASS. Is that a mistake?
No: your service uses a non-standard selector that the monitor didn’t guess. That is why it is a note, not an alarm. If “Show original” says DKIM: PASS, the signature works.
Can I have several DKIM keys?
Yes, and that is normal: each service has its own selector and key. Unlike SPF, they don’t get in each other’s way.
Should the DKIM key be changed?
Ideally every year or two, or immediately if you suspect the key has leaked. Many services do it themselves.