DKIM Checker

Find the DKIM keys of a domain and check that they are valid, strong enough and not in testing mode.

DKIM keys of cloudflare.com

  • Ok: DKIM keys found for cloudflare.com: 3.
Selectors tried (32)

google, selector1, selector2, default, dkim, mail, k1, k2, k3, s1, s2, smtp, email, key1, key2, sig1, mandrill, mailjet, everlytickey1, everlytickey2, mxvault, protonmail, protonmail2, protonmail3, fm1, fm2, fm3, zoho, zmail, pm, hs1, hs2

Selector: k1

k1._domainkey.cloudflare.com

Mailchimp
Key type
rsa
Key length
1024 bits
Testing mode
No
  • Warning: The RSA key is 1024 bits. It still works, but 2048 bits is the recommended size: rotate to a longer key when you can.
Record
k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDbNrX2cY/GUKIFx2G/1I00ftdAj713WP9AQ1xir85i89sA2guU0ta4UX1Xzm06XIU6iBP41VwmPwBGRNofhBVR+e6WHUoNyIR4Bn84LVcfZE20rmDeXQblIupNWBqLXM1Q+VieI/eZu/7k9/vOkLSaQQdml4Cv8lb3PcnluMVIhQIDAQAB;

Alias (CNAME) of dkim.mcsv.net

Selector: s1

s1._domainkey.cloudflare.com

SendGrid
Key type
rsa
Key length
2048 bits
Testing mode
No
  • Ok: RSA key of 2048 bits.
Record
k=rsa; t=s; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1m74n5R+xcz+ICbNBWRIlQeHI65Hjp67+P59XSe71jItafrcJ4/5y/UvU+uNg7KNeOcEsotGo7QvLN87hqZSZqfzVyyGnQuEUXoKPdKokD6Pa5KmJSqbA5Y/f977HpikU9Xtd7Orc7ctRLK6H5QFvGwRi+oC9NRkgNB55UUnLbbkKK+LGeTw4Ghmr5gupw7iYzFXZ1qlFNqV6s9Pmgb+b7oDv+OfQxB/MJyUzQ5eWdKlJWfmW3s77J3fHFfysUbKKUBxEXPxNiMFRG1ClllZ4+AYRh1jrFpjbvZ5j43kqahKXeHDNkF+Gpptd7ufWIevAPTQDSVdKB9vyJQN6wfcQQIDAQAB

Alias (CNAME) of s1.domainkey.u5338572.wl073.sendgrid.net

Selector: mandrill

mandrill._domainkey.cloudflare.com

Key type
rsa
Key length
1024 bits
Testing mode
No
  • Warning: The RSA key is 1024 bits. It still works, but 2048 bits is the recommended size: rotate to a longer key when you can.
Record
v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCrLHiExVd55zd/IQ/J/mRwSRMAocV/hMB3jXwaHH36d9NaVynQFYV8NaWi69c1veUtRzGt7yAioXqLj7Z4TeEUoOLgrKsn8YnckGs9i3B3tVFB+Ch/4mPhXWiNfNdynHWBcPcbJ8kjEQ2U8y78dHZj1YeRXXVvWob2OaKynO8/lQIDAQAB

What is a DKIM checker?

DKIM (DomainKeys Identified Mail) protects email with a digital signature. The server that sends a message signs some of its headers and its body with a private key. The receiver reads the DKIM-Signature header, fetches the matching public key from DNS and checks the signature. If it verifies, the message really comes from a server allowed to send for the domain and was not changed on the way.

This DKIM checker looks up those public keys. Enter a domain and, optionally, a selector. Without a selector it tries over 30 selectors used by the most common providers (Google Workspace, Microsoft 365, Mailchimp, SendGrid, Amazon SES, Zoho, Proton, Fastmail and more), shows every key it finds and checks each one.

How to use the DKIM checker

  1. Type the domain that appears after the @ in the sender address, for example example.com.
  2. If you know the selector, enter it too. Otherwise leave it empty and the tool searches the common ones.
  3. Press Enter. Each key found gets its own card: provider, key type and length, testing mode, problems and the raw record.

Finding the selector: open an email sent from the domain, choose "Show original" (Gmail) or "View message source" (Outlook) and find the DKIM-Signature header. The s= tag is the selector and d= is the signing domain: d=example.com; s=google; means the key is published at google._domainkey.example.com.

Reading a DKIM record

v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA...
TagMeaning
v=DKIM1Version. Optional, but if present it must be the first tag and exactly DKIM1.
k=rsaKey type. rsa by default; ed25519 is newer but not verified by every receiver yet.
p=The public key in base64. Empty means the key has been revoked.
t=yTesting mode: receivers should not treat failures differently from unsigned mail. Remove it once DKIM works.
h=Hash algorithms allowed. If present, it must include sha256.
s=, n=Service type and notes. Rarely used.

Common DKIM problems

No record found

Either DKIM is not enabled at your email provider or the record is at another name. Most providers require two steps: publish the record in DNS, then click "Start authentication" or "Verify" in their admin panel. Check also that your DNS panel did not append the domain twice (google._domainkey.example.com.example.com).

Key too short

Keys of 1024 bits still pass, but 2048 bits is the standard today. Generate a new key at your provider, publish it under a new selector, switch signing to it and remove the old record a few days later. That way no message is ever signed with a key that is not in DNS.

Record cut or broken

A 2048-bit key is longer than 255 characters, the limit of a single TXT string. Good DNS panels split it automatically; others need you to paste it as several quoted strings. If the key is cut or contains extra spaces or quotes, the checker reports an invalid key.

Several records for one selector

There must be exactly one TXT record per selector. With two, receivers pick one at random and DKIM fails half of the time.

DKIM, SPF and DMARC

The three work together. SPF lists the servers allowed to send for a domain; DKIM signs each message; DMARC requires that SPF or DKIM pass for the domain in the From address and tells receivers what to do when they do not. DKIM is the most robust of the three because the signature survives forwarding, which usually breaks SPF. Since 2024 Gmail and Yahoo require SPF, DKIM and DMARC from anyone who sends in bulk.

Frequently asked questions

What is DKIM?

DomainKeys Identified Mail adds a digital signature to every email. The sending server signs with a private key, and receivers verify the signature with the public key published in DNS at selector._domainkey.example.com. It proves the message was sent by an authorised server and was not modified.

What is a DKIM selector and how do I find mine?

The selector is the name of the key, so a domain can have several (one per provider). Open an email sent from the domain, show the original message or headers, and look for s= in the DKIM-Signature header: s=google means the selector is google. If you leave the selector empty, this tool tries the most common ones.

Why does the tool not find my DKIM record?

Your provider probably uses a selector that is not in the common list, or DKIM is not set up yet. Find the selector in the headers of an email you sent and enter it. Also check that the record was created at the right name: many DNS panels add the domain automatically, so google._domainkey.example.com.example.com is a common mistake.

Should my DKIM key be 1024 or 2048 bits?

2048 bits. 1024-bit keys still work but are considered weak and some providers have started to warn about them. Keys under 1024 bits are ignored by Gmail and most receivers. If your DNS panel does not accept long TXT records, split the key into several strings: DNS joins them.

What does an empty p= mean?

The key has been revoked on purpose. It is normal for old selectors after a key rotation. If your provider still signs mail with that selector, DKIM fails and you must publish the new key.

Is DKIM enough to stop spoofing?

No. DKIM proves a message was signed, but only DMARC tells receivers what to do when a message claiming to be from your domain fails. Set up SPF, DKIM and DMARC together; Gmail and Yahoo require all three for bulk senders.

Common errors

Related tools

Last updated: