Email security

How to Enable DKIM Signing in cPanel (Email Deliverability Guide)

DKIM signing in cPanel takes minutes with the Email Deliverability tool. Here is the exact path, how to handle external DNS, and how to verify it worked.

Cysoro Security TeamPublished · 9 min read
Email DeliverabilityDomainexample.comDKIM ValidSPF ValidRepairManagedefault._domainkeyv=DKIM1; p=MIGfMA0... EMAIL SECURITY DKIM in cPanel Sign every email. Prove it is yours.
Quick answer

To enable DKIM signing in cPanel, open Email, then Email Deliverability, find your domain, and click Repair or Manage and install the suggested DKIM record. cPanel generates a key pair, keeps the private key on the server, and publishes the public key as a DNS TXT record at default._domainkey, so outgoing mail is signed automatically.

Key takeaways

  • In cPanel, Email Deliverability is the one place to enable DKIM: click Repair and cPanel generates the key pair and publishes the public key.
  • If your DNS lives elsewhere, cPanel cannot publish the record for you — copy the suggested TXT record into your external DNS provider.
  • Verify DKIM by sending a test email and checking for dkim=pass in the headers, then add SPF and DMARC to complete the trio.

DKIM signing is one of the fastest security wins in cPanel. It adds a cryptographic signature to every email your domain sends, so receiving servers can prove the message really came from you and was not altered on the way. cPanel does almost all of the work for you.

What is DKIM signing?

DKIM, or DomainKeys Identified Mail, is an email authentication method that lets your mail server sign outgoing messages with a private key. The receiving server checks the signature against your public key, which you publish in DNS, to confirm the message came from your domain and was not changed in transit.

RFC 6376, the standard that defines DKIM, puts it this way: DKIM lets the owner of a domain claim responsibility for a message, and that claim is validated through a cryptographic signature and by querying the signer's domain to retrieve the public key. Read the standard itself at RFC 6376 on the IETF datatracker.

Without DKIM, anyone can send mail that claims to be from your domain, and receiving servers have no cryptographic way to tell the real mail from the fake. With DKIM, a forged message fails the check, which is why Gmail and Yahoo now require it for bulk senders.

What do you need before you enable DKIM in cPanel?

You need three things before you start: a cPanel account, a domain with a DNS zone on the server, and access to your DNS provider if your DNS is managed elsewhere. Most of the setup takes under ten minutes.

  • A cPanel login. Your hosting provider gives you the cPanel address and credentials. If you only have a reseller or WordPress login, ask your host for cPanel access.
  • Email Deliverability enabled. Your host must enable the Email Deliverability feature in WHM. If you cannot find it under Email in cPanel, ask your host to enable it.
  • Know where your DNS lives. If your nameservers point to your host, cPanel can publish the DKIM record itself. If they point to Cloudflare, your registrar, or another provider, you will need to copy the record there by hand.
  • A domain that sends mail from this server. DKIM only signs mail sent through your cPanel server. Mail sent through Gmail or Microsoft 365 needs DKIM set up in that service instead.

How do you enable DKIM signing in cPanel?

Enable DKIM in cPanel through the Email Deliverability tool: open it, find your domain, and click Repair. cPanel generates the key pair and publishes the public key for you when it controls your DNS.

Enable DKIM in cPanel in four steps1Open the toolcPanel, then Email,then Email Deliverability2Find your domaincheck the DKIM statuscolumn for a warning3Click RepaircPanel generates the keyand installs the record4Wait for Validreload the page after afew minutes to confirmIf Repair is greyed out, your DNS is external — copy the record manually instead.
Four steps to enable DKIM signing in cPanel. Illustration by Cysoro.

Step 1: Open Email Deliverability

Log in to cPanel and scroll to the Email section. Click "Email Deliverability". The page lists every domain with a DNS zone on the server, along with the status of its SPF and DKIM records. cPanel's own documentation for the tool is at Email Deliverability in cPanel.

If you do not see Email Deliverability at all, your host has not enabled it for your account. Contact your host and ask them to enable it in WHM's Feature Manager.

Step 2: Find your domain and check the DKIM status

Find your domain in the table. If DKIM shows a warning or an error, the record is missing or wrong. If it already shows Valid, DKIM is already enabled and you can skip to the verification section below.

Click "Manage" next to the domain to see the details. The DKIM section shows the current record, if one exists, and the suggested record cPanel wants to install.

Step 3: Click Repair to generate and install the key

Click "Repair" in the table, or "Install the suggested record" inside Manage. cPanel generates a DKIM key pair: it keeps the private key on the server, where it signs outgoing mail, and publishes the public key as a DNS TXT record.

The repair can take up to five minutes while cPanel rechecks the records. Reloading the page does not interrupt it. When it finishes, DKIM should show as Valid.

Step 4: Confirm the record exists

Inside Manage, the DKIM section should now show a valid record. The record name looks like default._domainkey.yourdomain.com and the value starts with v=DKIM1; followed by a long public key.

That is the whole setup when cPanel controls your DNS. Outgoing mail from the server is now signed automatically — there is no per-mailbox switch to turn on.

What if your DNS is managed outside cPanel?

If your DNS is managed outside cPanel, the Repair button cannot publish the record for you. cPanel will show the suggested DKIM record, and you must add it manually at your DNS provider.

This is the most common reason DKIM stays invalid in cPanel, and it is easy to miss: cPanel can install the record locally, but if your domain resolves from Cloudflare or your registrar, that local record is invisible to the rest of the internet.

  1. In cPanel, open Email Deliverability and click Manage for your domain. Find the DKIM section and the suggested TXT record.
  2. Click Copy. Copy both the Name and the Value exactly. The name is usually default._domainkey and the value starts with v=DKIM1; p= followed by the key.
  3. Open your DNS provider. In Cloudflare, go to DNS and add a record; at a registrar, open the DNS or Zone Editor for the domain.
  4. Add a TXT record. Set the name to default._domainkey and paste the full value. If your provider splits long TXT records, use the Split view in cPanel, which divides the key into 255-character parts.
  5. Save and wait. DNS changes usually appear within an hour, but allow up to 24 to 48 hours for full propagation.
  6. Return to cPanel and recheck. Reload Email Deliverability. DKIM should change to Valid once the record is visible.

One detail that trips people up in Cloudflare: the DKIM record must be DNS-only, not proxied. A TXT record cannot be proxied, but if you see an orange cloud icon on it, turn the proxy off for that record.

How do you verify DKIM is working?

Verify DKIM by sending a test email to yourself and checking the headers for dkim=pass, or by running your domain through a DKIM checker. A Valid status in cPanel is a good sign, but a real test email proves signing works end to end.

Verify DKIM in three ways1. Test email headersSend mail to a Gmail account, open it, choose Show original, and search for dkim=pass.2. DKIM checkerEnter your domain in a DKIM checker and confirm the public key is published and valid.3. cPanel statusEmail Deliverability should show DKIM as Valid — but always confirm with a real test email too.
Three ways to verify DKIM signing is working. Illustration by Cysoro.

The fastest check is Gmail. Send a test message from your domain to a Gmail address, open it, click the three dots, and choose "Show original". Search for dkim=pass in the Authentication-Results header. If you see dkim=fail instead, the signature does not match the published key.

You can also check the public record directly with our free DKIM checker, which looks up your default._domainkey record and reports whether it is published and valid.

Run the same check with our SPF checker while you are there.

The DMARC checker completes the trio.

Why is DKIM still failing? Common fixes

Most DKIM failures come down to DNS: the record is missing, it is in the wrong place, or it does not match the key on the server. Work through these causes in order.

The server is not the authoritative nameserver

cPanel warns about this directly: to install a DKIM record correctly, your server must be the authoritative nameserver. If it is not, install the record locally and also add it at the provider that actually serves your DNS. The local copy alone will not help receivers.

The public key does not match the private key

This happens when a key is regenerated — for example, after a server migration — but the DNS record still holds the old public key. In Manage, click "Generate Local DKIM Key" to create a fresh pair, then copy the new suggested record into DNS and wait for propagation.

The selector or record name is wrong

The record name must be exactly default._domainkey under your domain, unless you use a different selector. A common mistake is adding the full domain twice, or pasting the key into the wrong record type. The record must be a TXT record, not a CNAME or A record.

Mail sent from PHP shows no signature

cPanel's own documentation warns that DKIM may not verify mail sent from PHP applications if the server uses the DSO PHP handler without the MPM ITK module. In that case mail is sent as the nobody user and the signature is missing. Ask your host to enable the Exim options that identify the sender from PHP scripts, or send through SMTP with authentication instead of PHP's mail function.

You send through a third-party service

If you also send mail through a marketing platform or another provider, cPanel's DKIM does not cover it. Each sending service needs its own DKIM setup, usually with its own selector, and its own public key published in your DNS. Never share one private key between services.

What about SPF and DMARC in cPanel?

DKIM is one of three email authentication standards, and it works best with the other two. SPF proves the sending server is allowed to send for your domain, and DMARC tells receivers what to do when SPF or DKIM fails.

StandardWhat it provesHow cPanel handles it
SPFThe sending server is authorized for your domainEmail Deliverability suggests and installs the TXT record
DKIMThe message was not altered and came from your domainEmail Deliverability generates the key pair and record
DMARCSPF and DKIM results align with the From addressManage section offers a suggested DMARC TXT record

Enable SPF in the same Email Deliverability screen, using Repair or the Customize option if you send through other services. Then add a DMARC record: start at p=none so you can read the reports without rejecting mail, and move to p=quarantine and then p=reject once you are confident everything passes.

Our guide to what DMARC is explains that path in detail.

Our what DKIM is guide covers the standard itself.

Remember that DMARC requires valid SPF and DKIM records first. cPanel's documentation states this plainly: a domain must have valid SPF and DKIM records for the DMARC record to be active.

Should you rotate your DKIM keys?

Yes, rotate your DKIM keys periodically, and immediately if you suspect the private key leaked. cPanel does not rotate keys automatically, so this is a manual job you should schedule.

To rotate safely, generate a new key with a new selector — for example, 2026q4 instead of default — publish the new public key in DNS, and wait for it to propagate before switching the server to sign with it. Keep the old key published for a few days so mail already in transit still verifies, then remove it.

Never share your private DKIM key. cPanel warns that exposing it is a security risk: anyone with the key can sign mail and impersonate you as a sender. Only give it to a trusted administrator, and only when there is no other way to set up signing.

The bottom line

Enabling DKIM signing in cPanel is a five-minute job when your DNS lives on the server: open Email Deliverability, click Repair, and wait for Valid. When your DNS lives elsewhere, the same screen gives you the exact record to copy into your provider — just do not skip that step, or DKIM will look enabled locally while remaining invisible to the rest of the internet.

Once DKIM passes, finish the job with SPF and DMARC, then prove it with a real test email. You can check the result in seconds with the free DKIM checker.

Frequently asked questions

How do I enable DKIM in cPanel?

Log in to cPanel, go to Email and then Email Deliverability, find your domain, and click Repair or Manage and install the suggested DKIM record. cPanel generates the key pair and publishes the public key as a DNS TXT record if it controls your DNS.

What is the DKIM record in cPanel?

It is a DNS TXT record at default._domainkey.yourdomain.com containing your public key, starting with v=DKIM1. Receiving servers use it to check the signature on your outgoing mail. cPanel creates the record for you when you click Repair.

How long does DKIM take to work in cPanel?

Usually a few minutes after the record is installed, once cPanel rechecks it. If your DNS is external, allow up to 24 to 48 hours for the record to propagate, although it is often visible within an hour.

Why does cPanel say DKIM is invalid?

The usual causes are DNS managed outside cPanel, a missing or mistyped TXT record, or a key that was regenerated without updating DNS. Open Manage for the domain, copy the suggested record exactly, and add it at your DNS provider.

Do I need SPF and DMARC too?

Yes. DKIM proves a message was not altered and came from your domain, SPF proves the sending server is allowed, and DMARC ties the two together and tells receivers what to do with failures. Google and Yahoo require all three for bulk senders.

Can I use DKIM if my DNS is on Cloudflare?

Yes. In cPanel, open Email Deliverability, click Manage for your domain, and copy the suggested DKIM TXT record. Add it as a TXT record at your DNS provider with the name default._domainkey, then return to cPanel to verify it.

What is the DKIM selector in cPanel?

The selector is the label before _domainkey in the DNS record name, and cPanel uses default as its selector. It lets a domain publish more than one DKIM key at once, for example one for cPanel mail and one for a third-party sender.

Is DKIM enough to stop my mail going to spam?

No, DKIM alone is not enough. It helps, but inbox placement also depends on SPF, DMARC, your sending reputation, list quality, and content. DKIM is one required layer, not a guarantee of delivery.

Sources

  1. cPanel Docs — Email Deliverability in cPanel
  2. IETF — RFC 6376: DomainKeys Identified Mail (DKIM) Signatures
  3. Google — Email sender guidelines (SPF, DKIM and DMARC requirements)
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against cPanel's official Email Deliverability documentation and RFC 6376, the DKIM standard.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free