Example
How to read it
- d= is the signing domain; for DMARC it should match the From domain.
- s= is the selector used to find the public key at selector._domainkey.domain.
- The signature itself proves nothing until a receiver verifies it; check Authentication-Results for dkim=pass.
Can you trust it?
Cannot be forged without the private key, but any domain can sign its own mail. To check an email you are unsure about, paste its full headers into the email header analyzer, or receive it in a temporary inbox where the Email X-ray checks it for you.
How to view email headers
- Gmail: open the message, click the three dots, then Show original.
- Outlook: open the message, then File, Properties, Internet headers (desktop), or the three dots, View, View message details (web).
- Apple Mail: View, Message, All Headers.
- Yahoo Mail: the three dots, then View raw message.
Where DKIM-Signature sits in a real message
Every email has a header block at the top, then a blank line, then the body. Your mail app hides most of the header block and shows only a few fields. Here is a short, realistic header block with the DKIM-Signature line highlighted:
Received: from mail.example.com (mail.example.com [192.0.2.10]) by mx.yourprovider.com
Authentication-Results: mx.yourprovider.com; spf=pass; dkim=pass; dmarc=pass
From: "Example Store" <news@example.com>
DKIM-Signature: v=1; a=rsa-sha256; d=acme.example; s=selector1; c=relaxed/relaxed; h=from:subject:date; bh=...; b=...
Subject: Your order has shipped
Date: Thu, 12 Nov 2026 09:14:03 -0500
Servers add their lines at the top as the message travels, so the newest information is first and the sender's original fields are lower down. When you read a header block, start at the top with the lines your own provider added, then work down.
About authentication headers
Authentication headers record the results of SPF, DKIM, DMARC and ARC checks. The Authentication-Results header added by your own provider is the most useful single line in a suspicious email, because it says whether the sender's domain actually vouched for the message.
Checking DKIM-Signature on a suspicious email
- Make sure the line was added by your own provider. Look for your provider's server name, such as mx.google.com or outlook.com, in or near the header.
- Ignore copies of this header lower in the block. A sender can add a fake one, and only the one added by your provider counts.
- Compare the result with the visible From address. A pass for a domain that does not match the From domain does not prove the message is from that company.
Notes for developers
- Header names are case-insensitive, so
DKIM-Signature,dkim-signatureandDKIM-SIGNATUREare the same field. - Long values can be folded across several lines. A line that starts with a space or tab continues the previous header (RFC 5322 section 2.2.3).
- Non-ASCII text in header values is sent as encoded words such as
=?UTF-8?B?...?=(RFC 2047). Decode them before you display or compare values. - Some fields may appear more than once. Received, for example, appears once per hop. Decide whether your code needs the first, the last or all of them.
- Never use this header to make a security decision unless your own server added or verified it.
Other authentication headers
| Header | What it does |
|---|---|
| Authentication-Results | The receiving server's verdict on SPF, DKIM and DMARC for this message. |
| Received-SPF | The result of the SPF check, recorded by some receiving servers as a separate header. |
| ARC-Seal | Part of the Authenticated Received Chain (ARC). |
| ARC-Message-Signature | An ARC signature over the message as the intermediary saw it, similar to a DKIM signature. |
| ARC-Authentication-Results | Copies the authentication results an intermediary saw, so they survive forwarding. |
| BIMI-Selector | Points to which BIMI record to use, so mail apps can show the brand logo next to authenticated mail. |
A scenario: the forwarded message that fails DMARC
A newsletter passes DMARC when sent directly, but fails after a university forwarding service passes it on, because forwarding changes the connecting server and can break SPF. ARC headers let the forwarding service record the original results so the final receiver can still trust them. If you see ARC-Authentication-Results, they explain what happened before forwarding.
Quick checklist
- Use the Authentication-Results added by your own provider.
- Check ARC headers on forwarded mail.
- A DKIM pass usually survives forwarding; SPF often does not.
DKIM-Signature in raw, parsed and displayed form
| View | What you see |
|---|---|
| Raw source | DKIM-Signature: v=1; a=rsa-sha256; d=acme.example; s=selector1; c=relaxed/relaxed; h=from:subject:date; bh=...; b=... |
| Parsed by a mail library | A field named dkim-signature with its decoded value |
| Shown by most mail apps | Hidden unless you open the full source |
Related guides
Related headers
- Authentication-Results: The receiving server's verdict on SPF, DKIM and DMARC for this message.
- ARC-Message-Signature: An ARC signature over the message as the intermediary saw it, similar to a DKIM signature.
FAQ
What is the DKIM-Signature header?
A cryptographic signature that lets receivers verify the message was not changed and that the signing domain (d=) authorized it.
Who sets the DKIM-Signature header?
The sender's mail server or service.
Can the DKIM-Signature header be faked?
Cannot be forged without the private key, but any domain can sign its own mail.
Is the DKIM-Signature header required?
No. DKIM-Signature is optional. Many messages do not include it, and its absence is not a problem on its own.
Why is DKIM-Signature missing from my email?
Mail apps hide most headers. Open the full source (Show original in Gmail, View message details in Outlook) to see every header. If DKIM-Signature is still not there, the sending software simply did not add it.
What does "softfail" mean?
The sending server is not explicitly allowed by SPF, but the domain asked receivers not to reject outright.
Why does a real email fail DKIM?
A forwarder or mailing list changed the message after it was signed, or the sender's DNS key is wrong.