How to Set Up DKIM for Your Domain

Find the correct DKIM record for your email service, publish it at your DNS provider and check that outgoing messages are signed.

Email Deliverability contains the DKIM information for mail sent through the cPanel service. Account details are excluded. Email Deliverability contains the DKIM information for mail sent through the cPanel service. Account details are excluded.

Use the record from the service that sends your mail

DKIM adds a digital signature to outgoing email. A receiving service checks that signature against a public key published in DNS. The private signing key remains with the sending service and must not be shared.

The right record depends on where messages are sent. Mail hosted in cPanel, Microsoft 365, Google Workspace and a newsletter service can each have their own DKIM setup. Configuring one provider does not automatically configure the others. More than one selector can exist on a domain when different services use different names.

For email sent through your cPanel hosting

  1. Open Email Deliverability in cPanel.
  2. Choose Manage beside the intended domain and find the DKIM section.
  3. Review the suggested public DNS name and value. Copy them exactly; do not invent a selector or reuse another domain’s key.
  4. If cPanel is authoritative for the domain, use its offered installation or repair control where appropriate. If DNS is hosted elsewhere, add the supplied record at that provider instead.

If the interface is missing, the suggested record is unavailable or you are using a separate outgoing email relay, contact us so we can check the sending configuration.

For Microsoft 365, Google Workspace or another sender

Use that provider’s administration area to obtain its DKIM instructions. Providers may require TXT records, CNAME records or more than one record. They may also require you to enable signing after DNS has been verified.

  1. Open the DNS editor at the provider hosting your authoritative nameservers.
  2. Add each record with the exact type, selector name and public value supplied by the sending service.
  3. Check whether the editor appends your domain automatically, so you do not create a duplicated name.
  4. Save the records, allow for DNS caching and complete any verification or enable-signing step in the email provider’s administration area.

Do not replace an existing selector used by a different sender without checking what depends on it. A DNS-only proxy or web proxy setting must not rewrite an email authentication record; follow the DNS provider’s guidance for the required record type.

Verify a newly sent message

Send a fresh test message from each configured service to an external mailbox. Review the received message headers for the DKIM result and signing domain. An older email will not gain a signature after you change DNS.

A published record alone does not prove that the service is signing messages. If verification fails, compare the selector and record type with the provider’s instructions and check that the public key was not truncated. For DMARC, the passing DKIM signing domain must also align with the visible From domain unless SPF supplies the aligned pass.

Send support the affected domain, the sending service and the reported result. Do not include the private key, login credentials or confidential message content.

Related help

Further information: cPanel Email Deliverability · Microsoft DKIM guidance.

Need help? Open a support ticket with the affected domain and exact error. Never include your password.

Was this article helpful?
Still need help? Open a support ticket and our team will assist you directly.
Open a Ticket

Powered by WHMCompleteSolution