Skip to the content
Start free

DKIM

DKIM (DomainKeys Identified Mail) adds a hidden digital signature to every email you send, and receiving mail servers check it against a public key published in your domain’s DNS. A valid signature shows that a domain took responsibility for the message and that the signed parts have not changed since it left. It is one of three records, with SPF and DMARC, that decide whether your mail is trusted.

What is DKIM? #

DKIM is an internet standard, RFC 6376, published in September 2011. Your mail service signs each outgoing message with a private key that only it holds. It publishes the matching public key as a TXT record in your DNS. Any receiver can fetch that key and check the signature. The key sits under your own domain name, so the signature ties the message to you, not to the service that sent it.

What does a signature prove? #

Less than people think. RFC 6376 says verifying the signature shows the hashed content “has not changed since it was signed” and asserts nothing else. It does not prove the sender is honest, and it does not stop spam on its own. A criminal can sign mail for a domain they own. What DKIM gives you is a stable, checkable name on every message. DMARC then asks whether that name matches the From address people see.

How does DKIM work? #

  1. Your mail service hashes the message body and chosen header fields, then signs the result with its private key.
  2. It adds a DKIM-Signature: header. RFC 6376 says the From header field “MUST be signed”.
  3. The receiver reads two tags: d= (the signing domain) and s= (the selector, which picks one key).
  4. It looks up the key at selector._domainkey.domain and checks the signature.
  5. It records the result, usually in an Authentication-Results header, defined in RFC 8601.

What do Gmail, Yahoo and Outlook ask for? #

All three big mailbox providers now expect DKIM from anyone sending in volume.

  • Gmail: since 1 February 2024, Google’s sender guidelines ask every sender for SPF or DKIM, and senders of more than 5,000 messages a day to personal Gmail accounts for both, plus DMARC. Google asks for DKIM keys of at least 1024 bits and recommends 2048.
  • Yahoo: its sender best practices ask bulk senders for both SPF and DKIM, and a DMARC policy of at least p=none.
  • Outlook: Microsoft’s April 2025 post says domains sending over 5,000 emails a day to outlook.com, hotmail.com and live.com addresses must pass DKIM. From 5 May 2025, non-compliant mail goes to Junk.

DKIM records are read by mail servers, not by search crawlers such as Googlebot. The link to search is the domain. The name that ranks your landing pages is the same name that signs your mail. Search visits often end in an email: a quote, a booking, an order confirmation. If that email lands in spam, the visit from organic search is wasted, and your conversion tracking never sees the sale.

Why does DKIM matter for AI answers? #

An AI assistant that recommends your business often ends with “email them”. An AI agent that books or buys for a person often waits for an emailed confirmation or code. Mail rejected at the door never reaches the person, or the assistant summarising their inbox. Signed mail also gives receivers a reliable name to judge, which matters more as fake messages written with generative AI get harder to spot by their wording. A signature does not make the content safe, though: an email can still carry hidden text aimed at an assistant, a form of prompt injection.

A worked example #

RFC 6376 shows a signed message whose header begins like this:

DKIM-Signature: v=1; a=rsa-sha256; s=brisbane; d=example.com;
      c=simple/simple; q=dns/txt; i=joe@football.example.com;

The receiver reads s=brisbane and d=example.com and fetches the public key from brisbane._domainkey.example.com. The record there is a TXT record that starts v=DKIM1; p= followed by the key itself.

Tag What it holds
v= the version; signatures use 1
a= the signing method, such as rsa-sha256
d= the domain that takes responsibility for the message
s= the selector, which picks one key within that domain
c= canonicalisation for header and body: simple (the default) or relaxed
h= the header fields covered by the signature
bh= a hash of the message body
b= the signature itself

A bakery that sends shop mail from Google Workspace and offers from a newsletter tool may end up with two selectors, one for each service, both under its own d= domain. Google’s DKIM setup page names its default selector google, so its record lives at google._domainkey and reads v=DKIM1; k=rsa; p= plus the key.

How strong should the key be? #

RFC 8301 (January 2018) updated the rules. Signers must use RSA keys of at least 1024 bits and should use at least 2048. The old rsa-sha1 method “MUST NOT be used for signing or verifying”. Verifiers must not treat keys under 1024 bits as valid. RFC 8463 (September 2018) added a shorter, newer method, ed25519-sha256, with key records starting v=DKIM1; k=ed25519;. Signers can add both signatures to one message for older receivers.

What happens when mail is forwarded? #

RFC 6376 says simple forwarding that does not change the message usually keeps the signature valid. That is why DKIM matters more than SPF for forwarded mail: SPF checks the forwarding server’s IP address, which is not on your list. A mailing list that adds a footer or changes the subject is likely to break the signature. ARC, RFC 8617 (July 2019, Experimental) lets each handler record the results it saw, so later receivers can judge the chain.

Common mistakes #

  • Only one service signs. Your mailbox signs, but the shop platform, booking system or newsletter tool does not. Each needs DKIM switched on, with its own selector.
  • Signing with the service’s domain. A tool that signs with d= set to its own domain passes DKIM, but does not line up with your From address, so it does not help DMARC.
  • A 1024-bit key forever. Google recommends 2048 bits where your DNS provider supports it.
  • A broken record. The key is a long string of characters. One missing character or a stray space breaks it, so paste it exactly as the service gives it.
  • A test system sending as you. A staging site that sends order emails from your domain without a key fails DKIM and can confuse your DMARC reports. Point it at a test address or sign it properly.
  • Forgetting old keys. RFC 6376 says an empty p= value means the key is revoked. Revoke keys you no longer use instead of leaving them live.

How to check it #

  1. Send an email from your domain to a Gmail address. Open it, click More next to Reply, then “Show original”, as Gmail Help describes. Copy the full header.
  2. Paste it into the Email Header Analyser. It turns the header into a delivery path with the SPF, DKIM and DMARC results. Look for dkim=pass and check that d= is your domain, as SPF, DKIM and DMARC explained shows.
  3. Note the selector (s=). Look up selector._domainkey.yourdomain with the DNS Lookup tool, which shows every TXT record. Our DNS records entry explains the record types.
  4. Paste the key record into the DKIM Record Decoder. It shows the key type, key strength, test flags and revoked keys.
  5. Run the whole domain through the Email Security Checker. It checks SPF, DKIM, DMARC, MX, MTA-STS and BIMI live from the DNS.
  6. Just changed a key? The DNS Propagation Checker asks 11 public resolvers at once. Google says DKIM can take up to 48 hours to start working.
  7. List every service that sends as you. The tech stack checker shows the shop and other platforms your site is built with; each one that emails customers must sign with your domain.
  8. Check the SPF record and DMARC record too. DKIM alone does not tell receivers what to do with a failure; see DMARC.
  9. Marketing mail needs one-click unsubscribe, and RFC 8058 says the DKIM signature must cover those headers. Check the unsubscribe address answers with a 200 status using the HTTP header checker, and that its certificate is valid with the SSL checker.
  10. Check where your email links go. The redirect checker shows every hop of a click-tracking redirect (a long redirect chain slows the click), and the broken link checker finds broken links on the page you send people to.
  11. Watch for fake domains that copy yours. The Lookalike Domain Checker catches names built from letters that look the same. DKIM cannot stop mail from a domain that is not yours.
  12. On WordPress, mail sent by plugins also needs signing. The WordPress security checker shows exposed user lists and open APIs on the same site.

Single checks on each tool page: free, no account (2 a day). The full audit: a free account (sign in with an emailed code), 1 a day.

What URSY.com counts #

URSY.com counts visits to your website, not email. When someone clicks a link in your email, our cookie-free counter records a page view if their browser runs it. The counter never stores query strings, only the path, so UTM tags are not kept in URSY.com. See methodology.

Questions #

Is DKIM the same as encryption? #

No. DKIM signs a message so changes can be detected. It does not hide the content. Encryption on the way between servers is TLS, which Gmail also asks for.

Can I have more than one DKIM key? #

Yes. Each selector is a separate key, so each service that sends for you can have its own. RFC 6376 uses selectors for exactly this.

Does DKIM stop people spoofing my domain? #

Not by itself. A spoofer simply does not sign. You need a DMARC policy that tells receivers what to do with unsigned or failing mail.

Do I need DKIM if I only send a few emails? #

Google asks every sender for SPF or DKIM, and having both helps. DKIM also survives simple forwarding, where SPF fails.

How long does a new key take to work? #

Google says up to 48 hours after you add the record.

Sources #

Updated 24 November 2026 by URSY.com.

Cite this page: DKIM. URSY. Updated 26 November 2026. https://ursy.com/wiki/dkim/ · Section links

Tools for this

All 871 wiki entries, A to Z →