Skip to content
FunnelGuard

Fix guide by FunnelsGuard

DKIM selector record missing or wrong key: how to fix it

DLV-052High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

DKIM (DomainKeys Identified Mail) is a digital signature added to each email you send. Your email service signs the message with a private key. The receiving server looks up the matching public key in your DNS and checks the signature.

The public key lives in a TXT record at selector._domainkey.yourdomain.com. The selector is a label such as google, s1, k1 or selector1. It lets one domain have several keys, for example one per email service.

This issue means the lookup fails. Either no record exists at that selector name, or the record holds a key that does not match the private key used to sign. Typical causes are a record that was never added, a typo, a record pasted with broken line breaks or quotes, a key rotated by the provider but not updated in DNS, a CNAME that was removed, or a migration to a new email service that left the old selector in place.

Where DKIM breaks on a form notification
  1. Form submittedVisitor sends the lead form
  2. Email signedSender adds DKIM-Signature with s=selector
  3. DNS key lookupselector._domainkey record missing or wrong key
  4. Spam folder or rejectiondkim=fail, DMARC may fail too
  5. Lead unseenNobody follows up

The signature is added correctly, but the receiver cannot find a matching key, so authentication fails.

Why it costs you leads or sales

Mailbox providers use DKIM to decide whether a message really came from you. When it fails, messages are more likely to go to spam or be rejected. If you also publish a DMARC policy of quarantine or reject, a DKIM failure can sink the message completely when SPF does not align either.

The emails at risk are the ones that matter most: lead notifications to your team, auto-replies to the customer, order confirmations, booking confirmations and password resets. The form itself still looks like it works, so nobody notices. Leads sit in a junk folder or never arrive.

Lead emails reaching the inboxExample numbers
Lead emails reaching the inbox (example)Inbox (DKIM pass): 95 %; Inbox (DKIM fail): 60 %; Spam or rejected (DKIM fail): 40 %03673956040Inbox (DKIM pass)Inbox (DKIM fail)Spam or rejected (DKI…%

Example: illustrative numbers showing how a DKIM failure can change where 100 notification emails land. Your results will differ.

How to check if your site has it

Check DKIM on a real email
  1. Send a real test email

    Submit your own contact form, or send a message from the tool in question (CRM, newsletter or store). Send it to a Gmail address you can open.

  2. Open the original message

    In Gmail, open the email, click the three dots and choose Show original. Look at the summary at the top for DKIM: PASS or DKIM: FAIL.

  3. Find the selector and domain

    In the headers, find the line starting DKIM-Signature. The s= value is the selector and d= is the signing domain. Example: d=yourdomain.com; s=s1.

  4. Look up the DNS record

    Query the TXT record at selector._domainkey.domain. A CNAME that points to your provider is also valid. If nothing comes back, the record is missing.

  5. Compare with your provider

    Open the domain authentication page in your email service and compare the expected record name and value with what is in DNS. A mismatch in the p= key means the wrong key.

Look up a DKIM record (replace s1 and yourdomain.com)bash
dig +short TXT s1._domainkey.yourdomain.com

# If your provider uses a CNAME:
dig +short CNAME s1._domainkey.yourdomain.com
What common DKIM results in headers usually mean
Header resultLikely causeWhat to do
dkim=noneMessage was not signedTurn on domain authentication in your sender
dkim=fail (no key for signature)Selector record missing or misnamedAdd the record at the exact selector name
dkim=fail (bad signature)Record holds a different or damaged keyReplace with the value your provider shows now
dkim=fail (body hash did not verify)Message changed after signingCheck footers, forwarders or security gateways that edit mail
dkim=permerrorRecord is malformedRemove stray quotes, spaces or line breaks and republish

How to fix it

The fix is always the same idea: publish exactly what your email provider tells you to, at the exact name it gives you, in the DNS zone that is actually live for your domain.

Repair the DKIM record
  1. Identify every service that sends as your domain

    List your form plugin or SMTP service, CRM, newsletter tool, helpdesk and store. Each may use its own selector.

  2. Get the current record from the sender

    Open the sender's domain authentication or sender identity page and copy the record name and value it shows now. Providers rotate keys, so an old copy may be wrong.

  3. Find where your DNS is hosted

    Check your domain's nameservers. Edit records at that provider (registrar, Cloudflare, your host), not at a registrar whose nameservers are not in use.

  4. Add or correct the record

    Create the TXT (or CNAME, if the provider says so) at selector._domainkey. Many DNS panels add the domain automatically, so enter only selector._domainkey as the host.

  5. Paste the value cleanly

    Copy the full value with no added spaces or line breaks. For long keys, some providers need the value split into several quoted strings; others handle it for you.

  6. Remove conflicting or stale records

    Do not keep two different records at the same selector name. Delete old selectors only when you are sure no service still signs with them.

  7. Verify in the sender, then send a test

    Click Verify or Authenticate in the email service. DNS changes can take from minutes up to a few hours to show.

Where to do it on your platform
  1. Find the sending service

    Check your SMTP or form plugin settings (for example the SMTP plugin's provider and domain authentication screen). WordPress itself does not hold DKIM records.

  2. Publish the record in DNS

    Add the DKIM record at your DNS host, not in WordPress. If the plugin sends through your hosting mail server, ask the host for the DKIM record or enable DKIM in the hosting control panel.

Shape of a DKIM TXT record (example values only)text
Host/Name:  s1._domainkey
Type:       TXT
Value:      v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A...

# Always copy the real value from your email provider.
DKIM record before and after

Broken

  • No TXT or CNAME at selector._domainkey
  • Or a key from an old provider still in place
  • Headers show dkim=fail
  • Notifications land in spam

Fixed

  • Record at the exact selector name
  • Value matches the sender's current key
  • Headers show dkim=pass
  • Notifications reach the inbox

How to confirm it's fixed

Confirmation checklist
  • A DNS lookup of selector._domainkey.yourdomain.com returns the expected record
  • The email service shows the domain as verified or authenticated
  • A new test email shows DKIM: PASS in Gmail's Show original
  • The d= domain in the signature matches or aligns with your From domain
  • Every service that sends as your domain has been tested, not just one
  • DMARC reports, if you collect them, show DKIM passing for your sources

How to prevent it happening again

How DKIM quietly breaks over time
  1. Day 1

    You set up DKIM for your email service and it passes.

  2. Month 4

    You change DNS host or tidy old records and the selector TXT is deleted.

  3. Month 4

    Forms still submit and the thank-you page still shows.

  4. Weeks later

    Lead notifications start landing in spam. Someone notices a missing enquiry.

Habits that prevent it
  • Keep a list of every service that sends email as your domain, with its selector
  • Export or screenshot your DNS zone before any migration or host change
  • Copy DKIM records to the new DNS host before switching nameservers
  • Do not delete selector records unless you have confirmed they are unused
  • Re-verify domain authentication after a provider rotates keys
  • Send a test form submission after every DNS or email provider change
  • Publish DMARC with reporting so you see DKIM failures by source

How FunnelGuard handles this

FunnelGuard detects this issue today with two checks. The first looks at DKIM keys in DNS: it uses selectors it has learned from earlier emails your journeys produced, and checks that a key is published for each one. The second looks at authentication results on the test email itself and flags a DKIM fail.

A robot visitor runs your real lead form on a schedule, from the EU or the US, and checks that the test lead reaches the inbox and CRM. If a failure appears, it is re-checked from a second region before one alert goes out (email, Slack, Teams, WhatsApp, webhook or PagerDuty) with a screenshot and a likely cause. Test submissions are marked with utm_source=funnelguard and fg_test=1.

Selectors are learned from earlier emails, so a selector FunnelGuard has never seen in a message cannot be checked in advance. The free plan covers 1 site and 2 journeys with daily checks and no card. Paid plans start at $39/month with a 3-day free trial.

Questions people ask

Why is my DKIM failing?

DKIM fails when the receiving server cannot find a public key at selector._domainkey.yourdomain.com, or finds one that does not match the key the sender used to sign. Common causes are a missing record, a typo in the name, a pasted value with line breaks, or a provider that rotated keys. Check the DKIM-Signature header for the s= and d= values and compare them to your DNS.

How do I find my DKIM selector?

Open a real email you sent, view the original headers and find the DKIM-Signature line. The s= value is the selector, for example s=s1. Your email provider's domain authentication page also lists the selector name it expects.

What does 'no key for signature' mean in DKIM?

It means the signature points to a selector, but DNS has no DKIM record at that name. Add the TXT or CNAME record exactly as your email provider shows it, in the DNS zone that is live for your domain, then send a new test.

How do I fix a DKIM record with the wrong key?

Copy the current record name and value from your email provider and replace the existing record with it. Provider keys can rotate, so an old copy may be outdated. After saving, verify in the provider and send a new test email to check for dkim=pass.

Can I have more than one DKIM record?

Yes, as long as each uses a different selector, such as one for your CRM and one for your newsletter tool. You should not have two different records at the same selector name. Each service signs with its own selector.

How long does a DKIM DNS change take to work?

Often minutes, but it can take a few hours depending on the record's TTL and your DNS host. Check with a DNS lookup first, then send a fresh test email, because old messages keep their old result.

Does a DKIM failure always send email to spam?

No, but it raises the risk, especially if your DMARC policy is quarantine or reject and SPF does not align either. Some messages still reach the inbox, which is why the problem often goes unnoticed.

Can FunnelGuard tell me if my DKIM record is broken?

Yes. FunnelGuard checks DKIM keys in DNS for selectors it has learned from earlier emails, and flags a DKIM fail in the authentication results of test emails. It then alerts you with a screenshot and a likely cause.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: email_dns DKIM keys (selectors learned from earlier emails); email_auth DKIM fail.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.