DKIM signature validator

Short answer

How do I check the DKIM signature in an email?

Open the email as original or download the .eml file, and paste it into the DKIM signature validator. We find the DKIM-Signature header, fetch the public key from DNS with the selector in s= and the domain in d=, and check both the body hash (bh=) and the signature itself. Everything happens in the browser.

Paste the whole email with headers (show original or download .eml).

How it works

We canonicalise the headers and the body according to c= in the signature, compute the hash and verify the signature with WebCrypto. Only the public key is fetched from DNS. The email is not sent to us.

Why it can fail here

Email programs often change line breaks, character sets or spaces when you copy. Use the original .eml file for the best result.

How to get the original

  • Gmail: open the email, choose the three-dot menu and Show original or Download message.
  • Outlook on the web: choose more actions, View and View message source.
  • Apple Mail: View, Message and Raw Source.
  • Thunderbird: save the email as an .eml file.

What the results mean

  • The body (bh) fails: the text was changed after signing, often by a mailing list or an antivirus program that adds a footer.
  • The signature fails: a signed header was changed, or the key in DNS does not match.
  • No key: the selector does not exist in DNS.
  • Several signatures are common, for example one from the domain and one from the service that sent.

Questions and answers

Which algorithms are supported?

rsa-sha256 and ed25519-sha256. rsa-sha1 is outdated and not checked.

Why does the signature fail after forwarding?

Mailing lists and some forwarding change the subject or add text. Then the signature no longer matches. ARC can then show what the first receiver measured.

Does a valid signature mean the email passes DMARC?

Only if the domain in d= matches the domain in From. A valid signature from the service's own domain does not help DMARC.

Is the email sent to you?

No. Only the public key is fetched from DNS. The rest happens in the browser.