[{"data":1,"prerenderedAt":355},["ShallowReactive",2],{"tool-dkim-lookup":3},{"id":4,"title":5,"body":6,"description":329,"extension":330,"faq":331,"h1":347,"intro":348,"meta":349,"navigation":350,"path":351,"seo":352,"stem":353,"__hash__":354},"tools\u002Ftools\u002Fdkim-lookup.md","DKIM Checker: DKIM Record Lookup and Key Test",{"type":7,"value":8,"toc":323},"minimark",[9,14,39,55,62,71,74,78,200,207,211,221,230,239,255,261,270,285,294,298,319],[10,11,13],"h2",{"id":12},"what-a-dkim-record-is","What a DKIM record is",[15,16,17,18,25,26,30,31,34,35,38],"p",{},"DKIM (",[19,20,24],"a",{"href":21,"rel":22},"https:\u002F\u002Fwww.rfc-editor.org\u002Frfc\u002Frfc6376",[23],"nofollow","RFC 6376",") lets the sending server sign each message with a private key. The receiver reads the ",[27,28,29],"code",{},"DKIM-Signature"," header, takes the selector (",[27,32,33],{},"s=",") and domain (",[27,36,37],{},"d=","), fetches the public key from DNS, and verifies the signature.",[40,41,46],"pre",{"className":42,"code":43,"language":44,"meta":45,"style":45},"language-txt shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","DKIM-Signature: v=1; a=rsa-sha256; d=example.com; s=s2026; ...\n","txt","",[27,47,48],{"__ignoreMap":45},[49,50,53],"span",{"class":51,"line":52},"line",1,[49,54,43],{},[15,56,57,58,61],{},"The verifier fetches the TXT record at ",[27,59,60],{},"s2026._domainkey.example.com",":",[40,63,65],{"className":42,"code":64,"language":44,"meta":45,"style":45},"s2026._domainkey.example.com.  TXT  \"v=DKIM1; k=rsa; p=MIIBIjANBgkqh...IDAQAB\"\n",[27,66,67],{"__ignoreMap":45},[49,68,69],{"class":51,"line":52},[49,70,64],{},[15,72,73],{},"A domain can have any number of selectors, one per sending service or key generation, which is how you rotate keys without downtime.",[10,75,77],{"id":76},"how-to-read-the-result","How to read the result",[79,80,81,94],"table",{},[82,83,84],"thead",{},[85,86,87,91],"tr",{},[88,89,90],"th",{},"Tag",[88,92,93],{},"What it means",[95,96,97,112,136,145,170,184],"tbody",{},[85,98,99,105],{},[100,101,102],"td",{},[27,103,104],{},"v",[100,106,107,108,111],{},"Version. Optional, but if present it must be ",[27,109,110],{},"DKIM1"," and come first.",[85,113,114,119],{},[100,115,116],{},[27,117,118],{},"k",[100,120,121,122,125,126,129,130,135],{},"Key type: ",[27,123,124],{},"rsa"," (default) or ",[27,127,128],{},"ed25519"," (",[19,131,134],{"href":132,"rel":133},"https:\u002F\u002Fwww.rfc-editor.org\u002Frfc\u002Frfc8463",[23],"RFC 8463",").",[85,137,138,142],{},[100,139,140],{},[27,141,15],{},[100,143,144],{},"Public key in base64. Empty means revoked.",[85,146,147,152],{},[100,148,149],{},[27,150,151],{},"t",[100,153,154,155,158,159,162,163,166,167,169],{},"Flags: ",[27,156,157],{},"y"," means testing, ",[27,160,161],{},"s"," means the ",[27,164,165],{},"i="," domain must equal ",[27,168,37],{}," exactly.",[85,171,172,177],{},[100,173,174],{},[27,175,176],{},"h",[100,178,179,180,183],{},"Allowed hash algorithms. If present it needs to include ",[27,181,182],{},"sha256",".",[85,185,186,190],{},[100,187,188],{},[27,189,161],{},[100,191,192,193,196,197,183],{},"Service type: ",[27,194,195],{},"*"," or ",[27,198,199],{},"email",[15,201,202,203,206],{},"The checker decodes ",[27,204,205],{},"p="," to read the RSA modulus, so the reported key size comes from the key itself, not from a guess based on its length.",[10,208,210],{"id":209},"common-failures-and-how-to-fix-them","Common failures and how to fix them",[15,212,213,217,218,220],{},[214,215,216],"strong",{},"No record at the selector."," Either the selector is wrong or the record was never published. Check the ",[27,219,33],{}," value in a real signature. Some providers (Microsoft 365, many email services) ask you to publish a CNAME instead of a TXT record; the checker follows CNAMEs and tells you where the key really lives.",[40,222,224],{"className":42,"code":223,"language":44,"meta":45,"style":45},"selector1._domainkey.example.com.  CNAME  selector1-example-com._domainkey.example.onmicrosoft.com.\n",[27,225,226],{"__ignoreMap":45},[49,227,228],{"class":51,"line":52},[49,229,223],{},[15,231,232,235,236,238],{},[214,233,234],{},"Key truncated or mangled."," Web DNS panels sometimes cut long values, or keep the quotes you pasted. If ",[27,237,205],{}," does not decode to a valid key, compare it character by character with what your provider gave you. A 2048-bit key is about 400 base64 characters. It has to be split into strings of up to 255 characters, which are joined without spaces:",[40,240,242],{"className":42,"code":241,"language":44,"meta":45,"style":45},"s2026._domainkey  TXT  ( \"v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA...\"\n                         \"...rest of the key...IDAQAB\" )\n",[27,243,244,249],{"__ignoreMap":45},[49,245,246],{"class":51,"line":52},[49,247,248],{},"s2026._domainkey  TXT  ( \"v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA...\"\n",[49,250,252],{"class":51,"line":251},2,[49,253,254],{},"                         \"...rest of the key...IDAQAB\" )\n",[15,256,257,260],{},[214,258,259],{},"1024-bit key."," Generate a 2048-bit key under a new selector, publish it, switch signing, and remove the old record after a few days, once messages in flight have been verified.",[15,262,263,269],{},[214,264,265,268],{},[27,266,267],{},"t=y"," left on."," Testing mode lets verifiers ignore failures. It is meant for initial setup only.",[15,271,272,277,278,281,282,183],{},[214,273,274,183],{},[27,275,276],{},"h=sha1"," RFC 8301 retired SHA-1 for DKIM. Remove ",[27,279,280],{},"h="," (the default allows sha256) or set ",[27,283,284],{},"h=sha256",[15,286,287,293],{},[214,288,289,290,292],{},"Empty ",[27,291,205],{}," on a live selector."," Someone revoked the key, or the provider rotated it and your mail server still signs with the old one. Republish the current key or point signing at the active selector.",[10,295,297],{"id":296},"dkim-and-dmarc","DKIM and DMARC",[15,299,300,301,303,304,307,308,311,312,315,316,135],{},"For DMARC, a DKIM pass only counts when the signature's ",[27,302,37],{}," domain aligns with the From domain. A message signed only by your email provider (",[27,305,306],{},"d=esp-mail.net",") passes DKIM but not DMARC. Set up a custom DKIM domain with your provider so it signs as ",[27,309,310],{},"d=example.com",", then confirm it by sending a message and reading ",[27,313,314],{},"Authentication-Results"," (look for ",[27,317,318],{},"dkim=pass header.d=example.com",[320,321,322],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":45,"searchDepth":251,"depth":251,"links":324},[325,326,327,328],{"id":12,"depth":251,"text":13},{"id":76,"depth":251,"text":77},{"id":209,"depth":251,"text":210},{"id":296,"depth":251,"text":297},"Look up a DKIM record by selector, or scan common selectors. The checker reads the key type and size, and flags revoked keys, testing mode and 1024-bit keys.","md",[332,335,338,341,344],{"question":333,"answer":334},"How do I find my DKIM selector?","Open a message your domain sent, view the original or raw source, and find the DKIM-Signature header. The s= tag is the selector and d= is the domain. Your provider's DKIM setup page also lists it. Google Workspace defaults to google, and Microsoft 365 uses selector1 and selector2.",{"question":336,"answer":337},"Is a 1024-bit DKIM key still OK?","It still verifies, but RFC 8301 says signers should use at least 2048 bits. Rotate by publishing a 2048-bit key under a new selector, switching signing to it, and removing the old selector after a few days.",{"question":339,"answer":340},"What does an empty p= mean?","The key is revoked. Signatures that use this selector fail verification. That is the right way to retire an old selector, but wrong for a selector your mail server still signs with.",{"question":342,"answer":343},"Why does the selector scan find nothing for my domain?","Selectors can be any name, and the scan only tries a list of common ones. A miss does not mean the domain has no DKIM. Check the s= tag in a real message.",{"question":345,"answer":346},"Does a valid DKIM record mean my mail passes DKIM?","No. The record only holds the public key. The signature also has to match, which can break when something changes the message in transit, such as a mailing list footer or a gateway rewriting links.","DKIM record checker","Enter a domain and a DKIM selector to fetch the public key from \u003Cselector>._domainkey.\u003Cdomain>. The DKIM lookup decodes the key to report its type and size. If you do not know the selector, scan the common ones.",{},true,"\u002Ftools\u002Fdkim-lookup",{"title":5,"description":329},"tools\u002Fdkim-lookup","SNlO-cooun2ZXbsglRnt-UjEYajy1hYaWA83RxKCLuA",1795555759449]