DKIM Checker

Look up a DKIM key and check its type, size and flags.
Optional: leave it empty to try the selectors of common mail services.

A DKIM checker looks up the public key a domain publishes at selector._domainkey.domain, which receivers use to verify the signature on its email, and checks the key's type, length and flags.

Find the Selector from an Email

Paste the headers of a message from the domain: the DKIM-Signature header names the domain (d=) and selector (s=).

Read in your browser: the headers are not sent anywhere.

    To see headers: Gmail, ⋮ then "Show original"; Outlook, File then Properties (desktop) or "View message source"; Apple Mail, View then Message then All Headers. The email header analyzer also shows the DKIM result of the message.

    What Is DKIM?

    DKIM signs each outgoing message with a private key; the matching public key sits in DNS, so any receiver can check that the message wasn't changed and really comes from the signing domain.

    The key is a TXT record (or a CNAME to your mail provider's record) at selector._domainkey.yourdomain. Each mail service you use signs with its own selector. For DMARC, the signing domain (d=) must match the From domain. Keys can't be listed from DNS, which is why a checker needs the selector.

    ServiceUsual selectors
    Google Workspacegoogle
    Microsoft 365selector1, selector2 (CNAMEs to Microsoft's keys)
    Mailchimpk1, k2, k3
    SendGrids1, s2
    Proton Mail · Fastmailprotonmail, protonmail2, protonmail3 · fm1, fm2, fm3

    How DKIM Works

    The sending server signs the message; the receiving server fetches the public key from DNS and checks that the signature still matches.

    The sending server signs with its private key and adds a DKIM-Signature header with d=example.com and s=google; the receiving server reads d= and s=, fetches the public key from the TXT record at google._domainkey.example.com and checks the signature: DKIM pass
    The selector (s=) and domain (d=) in the signature tell the receiver where the key is.
    1. Sign. The sending server hashes the body (bh=) and the headers it chose to sign (h=, always including From), and signs the result with the private key (b=).
    2. Add the header. It adds a DKIM-Signature header naming the signing domain (d=) and the selector (s=).
    3. Fetch the key. The receiver looks up the TXT record at s._domainkey.d, for example google._domainkey.example.com.
    4. Verify. If the signature matches, the signed headers and the body weren't changed on the way: DKIM passes for the d= domain. For DMARC, that domain must also match the From address.

    DKIM proves who signed a message and that it wasn't altered; it doesn't encrypt anything. A mailing list that adds a footer or edits the subject breaks the signature, which is why lists add an ARC seal (RFC 8617) to record the result they saw before changing the message.

    DKIM Record Syntax, Tag by Tag

    A DKIM record is a TXT record that starts with v=DKIM1 and holds the public key in p=; every other tag is optional.

    google._domainkey.example.com TXT "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA…"

    Tag (DNS record)Meaning
    v=DKIM1Version. Optional, but if present it must come first
    k=Key type: rsa (default) or ed25519 (RFC 8463). Ed25519 keys are short, but not every receiver checks them: sign with RSA as well
    p=The public key, base64. Empty (p=) means the key is revoked
    t=y: testing, receivers shouldn't treat a failure differently from no signature. s: the i= domain of the signature must equal d= exactly (no subdomains)
    h=Hash algorithms accepted, such as sha256. SHA-1 must not be used (RFC 8301)
    s= · n=Service type (email or *) · notes for people, ignored by receivers

    The DKIM-Signature header in each message uses its own tags:

    Tag (signature)Meaning
    d= · s=Signing domain · selector: together they give the key's DNS name
    a=Algorithm: rsa-sha256 or ed25519-sha256
    h=The headers that were signed, in order
    bh= · b=Hash of the body · the signature itself
    c=Canonicalization, how strictly whitespace changes are tolerated: relaxed/relaxed is the usual choice
    t= · x=When it was signed · when the signature expires (optional)

    A 2048-bit RSA key is longer than the 255 characters one TXT string can hold. DNS hosts split it into several quoted strings in the same record, which receivers join: that's correct. Two separate TXT records for the same selector are not.

    How to Set Up DKIM: Google Workspace, Microsoft 365 and cPanel

    Your mail service creates the key pair; you publish its public key (or a CNAME it gives you) in DNS, then switch signing on.

    ServiceSteps
    Google WorkspaceAdmin console › Apps › Google Workspace › Gmail › Authenticate email. Generate a 2048-bit record (selector google), add it as a TXT record at google._domainkey, wait for DNS, then click Start authentication.
    Microsoft 365Microsoft Defender portal › Email & collaboration › Policies & rules › Threat policies › Email authentication settings › DKIM. Select your domain, publish the two CNAME records it shows (selector1._domainkey and selector2._domainkey) exactly as given, then turn on signing.
    cPanel hostingEmail › Email Deliverability (your host must have it switched on). If cPanel runs your DNS, click Repair; if your DNS is elsewhere (Cloudflare, for example), click Manage and copy the suggested DKIM (TXT) record there.
    Your own mail server (OpenDKIM, rspamd, Exim)Create the key pair with the DKIM record generator, publish its TXT record at selector._domainkey, and give the private key to the signing software.
    Mailchimp, SendGrid, other sendersIn the service's domain authentication settings: it gives you CNAME records to publish, so it can sign with your domain instead of its own.

    Then send yourself a message and check the result above or in its headers. In the DNS host's name field, enter only selector._domainkey if the host adds your domain by itself; typing the full name there creates google._domainkey.example.com.example.com.

    Common DKIM Errors and How to Fix Them

    Most DKIM failures come from the DNS record, not the mail server: a missing key, a key broken when pasted, or a domain that doesn't match.

    ErrorCauseFix
    No key for selectorThe record is at the wrong name (domain added twice), the selector is misspelled, or it was never publishedLook the selector up above; publish the record at exactly selector._domainkey.yourdomain
    Key invalid or can't be readSpaces, line breaks or extra quotes inside p= after a copy and pastePaste the key again as one string, or as several quoted strings in the same TXT record
    Body hash did not verifyThe message was changed after signing: mailing list footer, forwarding rule, security gateway, antivirus bannerSign after the last system that edits mail; for lists, rely on ARC
    DKIM passes, DMARC failsThe provider signs with its own domain (d=sendgrid.net), not yoursSet up domain authentication in that service, so d= is your domain
    Weak or test key1024-bit RSA, or t=y left from testingGenerate a 2048-bit key under a new selector; remove t=y once it works
    Fails after a key changeThe old key was deleted while signed mail was still in transitRotate under a new selector and keep the old key for about a week

    How This DKIM Check Works

    QueryLive TXT query through Google Public DNS, no cache, at selector._domainkey.domain; a CNAME to the mail provider is followed
    Without a selectorThe default selectors of common services are tried (Google Workspace, Microsoft 365, Mailchimp, SendGrid, Proton, Fastmail, Zoho, HubSpot and generic names)
    Key checksKey type and length (RSA under 1024 bits refused, 1024 weak, 2048 good; Ed25519), test mode (t=y), revoked key (empty p=)
    Not checkedWhether a real message's signature verifies: that needs the message itself (see the email header analyzer)
    Same asThe DKIM part of the TXT lookup
    Runs onOur server in the US (AWS, N. Virginia). Pasted headers stay in your browser

    Last verified 10 November 2026.

    Frequently Asked Questions

    How do I check a DKIM record?
    Enter the domain and its selector above. Leave the selector empty to try the default selectors of common mail services. In a terminal: nslookup -type=txt selector._domainkey.example.com.
    How do I find my DKIM selector?
    Open an email sent from the domain, show its headers ("Show original" in Gmail), and find the DKIM-Signature header: s= is the selector and d= the domain. Paste the headers in the box on this page and it reads them for you.
    What does DKIM stand for?
    DomainKeys Identified Mail. It's defined in RFC 6376: the sending server signs each message with a private key, and receivers check the signature with the public key the domain publishes in DNS.
    Why does DKIM fail?
    The most common causes: no key at the selector the message names (a typo, or the DNS host added the domain twice), a key broken by spaces or quotes when it was pasted, or a message changed after it was signed, usually by a mailing list or a forwarding rule that edits the subject or adds a footer. The reason is written in the receiver's Authentication-Results header; the email header analyzer shows it.
    Do I need DKIM if I have SPF?
    Yes. SPF breaks when mail is forwarded, because the forwarding server isn't in your SPF record; a DKIM signature survives forwarding as long as the message isn't changed. Gmail requires both SPF and DKIM from senders of more than 5,000 messages a day to its users, Yahoo from its bulk senders, and Microsoft's Outlook.com from senders of more than 5,000 a day since May 2025.
    Can a domain have several DKIM keys?
    Yes: one per selector, so each mail service can sign with its own key, and keys can be rotated without downtime. Only one record should exist per selector name.
    How often should I rotate DKIM keys?
    M3AAWG, the anti-abuse industry group, recommends at least every six months. Publish the new key under a new selector, switch signing to it, and keep the old key for about a week so mail already in transit still verifies; then revoke it by emptying its p= value. Microsoft 365 has a "Rotate DKIM keys" button that does this for you; in Google Workspace you generate a new record under a new selector; for your own server, the DKIM record generator creates the new key.
    Should my DKIM key be 1024 or 2048 bits?
    2048-bit RSA. 1024-bit keys still work but are weak, and receivers refuse keys shorter than 1024 bits (RFC 8301). If your DNS host limits the record length, split the key into several strings in the same TXT record.

    Next steps

    Related Tools

    DKIM Record Generator
    Create a new key pair and its TXT record, in your browser.
    DMARC Checker
    The policy receivers apply when SPF and DKIM fail, with a report reader.
    SPF Record Checker
    Validate SPF: include tree, 10-lookup count, IP test.
    Email Header Analyzer
    The DKIM, SPF and DMARC results of a real message.
    TXT Lookup
    Every TXT record of a domain, labelled.
    Back to top