Fail

A DKIM signature header isn't valid

The short version

Check the signing software's configuration; required tags are missing or malformed.

What it means

A DKIM-Signature header in the message doesn't follow the format, so it can't be checked. The detail names the problem: a required tag is missing (v, a, b, bh, d, h or s), h= doesn't include From, i= isn't inside the d= domain, the expiry comes before the signing time, or a value isn't valid. Unsupported algorithms and keys of the wrong type are reported here too.

Why it matters

Receivers ignore a broken signature, so DKIM can't help DMARC pass. This points to a misconfigured signing system rather than to anything on the way: a custom script, an old library or a gateway that builds the header by hand.

How to fix it

  1. Find which system adds the signature: the d= and s= tags, if readable, point to the domain and selector it uses.
  2. Update or reconfigure the signing software. Use a=rsa-sha256 (or ed25519-sha256), always sign the From header, and leave i= out unless you need it.
  3. If a key type doesn't match the algorithm, publish a key of the right type at that selector.

Check it worked

Send a new message, save it and upload it to the DKIM verifier. The signature should parse with no errors and verify.