Era Host hosting
EraHost – Free Domain, Cheap Hosting!
Client Area
Support 24/7
Menu

Fixing t_dkim_invalid (DKIM Signature Issue) in Emails

2 min read
30.09.2025

Check DKIM Signature on Your Domain

Before troubleshooting, verify your DKIM records.

Fix t_dkim_invalid DKIM Signature Issue
t_dkim_invalid — Exim flag for failed DKIM at sign or send.

For other DKIM/SPF/DMARC fixes, see "DKIM signature, not necessarily valid", DKIM Temperror, check-auth@verifier.port25.com, and Configuring Mail Records (MX, SPF, DKIM, DMARC) in ISPmanager.

Test Your DKIM Configuration

Run this command to check DKIM on your domain:

dig TXT default._domainkey.yourdomain.com +short

Replace yourdomain.com with your actual domain.

If you get a valid response, it should look like this:

"v=DKIM1; k=rsa; p=MIGf... (your public DKIM key)"

If it's missing or incorrect, proceed to Step 2.

Verify DKIM in cPanel or Your DNS Provider

Check DKIM in cPanel (If Using cPanel)

  1. Log in to cPanel (https://yourdomain.com:2083).
  2. Go to Email Deliverability.
  3. Find your domain and check the DKIM status.
  4. If DKIM is missing, click Generate DKIM Record and copy the TXT record.

If using Cloudflare, Namecheap, or GoDaddy DNS, manually add the TXT record.

Correct the DKIM DNS Record

If your DKIM record is missing or incorrect, update it manually.

Correct DKIM TXT Record Format

In your DNS provider (Cloudflare, GoDaddy, Namecheap, etc.), add the following TXT record:

  • Host: default._domainkey
  • Type: TXT
  • Value:
v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQE... (your public DKIM key)
  • TTL: 3600 (1 hour)

Save changes and wait for DNS propagation (can take 24-48 hours).

Restart Mail Services (For Mail Servers)

If your mail server is not signing emails correctly, restart the necessary services.

For Exim (cPanel Servers)

service exim restart

For Postfix

systemctl restart postfix

For OpenDKIM (If Used)

systemctl restart opendkim

Send a test email after restarting.

Linux Hosting
Reliable and fast web hosting!
  • Free domain
  • Modern servers
  • NVMe disks
  • 7-day free trial
Linux Hosting

Verify DKIM with an Online Tool

After fixing your DKIM record, test it using:

If DKIM passes, your email authentication is fixed.

Summary of Fixes

Issue Fix
DKIM record missing Add a TXT record (default._domainkey.yourdomain.com)
Incorrect DKIM format Use v=DKIM1; k=rsa; p=...
Emails not signed with DKIM Restart exim, postfix, or opendkim
Verify DKIM Use dig, MXToolBox, or Mail-Tester

Now your emails should pass DKIM validation and avoid spam filters!

Frequently asked questions
Exim's t_dkim_invalid is set when DKIM signing fails — usually because the private key is missing, mismatched, or the published DKIM TXT differs from the public key Exim has. It's distinct from "DKIM verify failed" on incoming mail; t_dkim_invalid is about outgoing signing.
Common: DNS provider truncated the TXT record on save (DNS records support strings up to 255 chars; longer must be split). Or someone edited the TXT and accidentally added/removed a character. Or the DKIM key was rotated in cPanel/WHM but the TXT wasn't updated. Run `dig +short TXT default._domainkey.yourdomain.com` and compare byte-for-byte with what WHM shows.
Yes, 2048 is the modern standard; 1024 is being phased out. But 2048-bit keys produce TXT values > 255 chars, which trips up some DNS UIs that don't auto-split. Either: use a registrar that supports long TXT correctly (Cloudflare, Route53), or split manually into multiple quoted strings: `"..." "..."` — DNS concatenates them at query time.
Click "Manage" next to the domain. WHM shows exactly which check fails (DKIM, SPF, PTR, etc.) and offers an "Install the Suggested Record" button — generates the correct DNS records and copies them to clipboard if you self-manage DNS, or auto-installs if WHM has DNS authority. Trust this UI; it's usually right for the recommended fix.
Related articles
Fix: "The Record We Detected Doesn't Match All the Expected Values" (MSOID CNAME Issue)
DKIM=Temperror: No Key for Signature
"Retry Timeout Exceeded" in cPanel: What It Means and How to Fix It