DKIM signing: setup and troubleshooting Print

  • 0

Quick answer

DKIM adds a verifiable signature to outgoing mail. Enable it at the sending service, publish that service's public TXT or CNAME records, then test a new message. Keep private signing keys at the sender.

1. Get the sender's public records

  • cPanel mail: Email > Email Deliverability > Manage > DKIM. Copy the suggested public Name and Value. Do not regenerate a working key to fix an unrelated service.
  • Google Workspace: administrator > Apps > Google Workspace > Gmail > Authenticate email. Select the domain and generate the required TXT record. Return after publication to activate signing.
  • Microsoft 365: open Microsoft Defender's DKIM page. Copy both current CNAME names and targets, publish them, then enable signing. Do not reconstruct targets from older examples.
  • Other senders: use their domain-authentication instructions. Each service can require its own selectors.

2. Publish the exact records

A selector identifies a public key. For selector tutorial and signing domain example.com, its lookup name is tutorial._domainkey.example.com. A DKIM-Signature shows the selector as s= and domain as d=.

  • cPanel DNS: use the reviewed installation/repair control for cPanel's signer. For external keys, use Domains > Zone Editor > Manage.
  • Cloudflare: domain > DNS > Records > add/edit the supplied TXT or CNAME. Keep DKIM CNAMEs DNS only. TXT has no proxy setting.
  • Other DNS: follow the overview's provider paths and relative/full-name rules. Avoid appending the domain twice.

Use the sender's exact type and full value. Do not place TXT and CNAME at the same selector name. Different selectors can coexist. Follow the editor's long-TXT rules, preserving one logical key without truncation or added line breaks.

A cPanel public key cannot sign mail sent by Google, Microsoft or another unrelated service. Publishing DNS alone does not activate signing; complete the sender's enable/verify step.

3. Verify a new message

nslookup -type=TXT tutorial._domainkey.example.com
nslookup -type=CNAME tutorial._domainkey.example.com

Use your actual selector/domain. For a CNAME, check its target and final public key. Send through the intended service and inspect its signature plus the trusted receiver's dkim=pass. Compare the signing and From domains for DMARC alignment.

Troubleshooting and rotation

  • No signature: confirm the sending route and enable DKIM there.
  • Selector not found: compare s=/d= with public DNS. Check doubled suffixes and caches.
  • Key/signature mismatch: compare the complete record with current provider values and check for changes to signed content in transit.
  • DKIM passes, DMARC fails: enable the sender's supported custom-domain authentication.
  • Only one sender fails: inspect its selector without replacing other working keys.

For rotation, follow the provider's process: publish the new public record, test newly signed mail and retain old verification records for the recommended overlap. Queued mail can still need the old key. Keep a recovery record and ask support before replacing an established cPanel key.

Contact support

For cPanel or hosting questions, send the domain, sending service, exact error, time zone and redacted mail headers or bounce message. Keep passwords, cookies, private keys and tokens out of the ticket. Your external DNS or email administrator must supply that service's current records and access.

Related help

Official references

Source review: Interactive Online, November 2, 2026. Controls vary by service, version and permissions.


Was this answer helpful?

« Back