M
M
Maxim2018-06-29 17:23:55
PHP
Maxim, 2018-06-29 17:23:55

Why is a DKIM error thrown when adding a Message ID header?

Sending an email using PHP Mailer. In DKIM "h" tag: h=From:To:Date:Subject. When adding the Message ID header (h=From:To:Date:Subject:Message-ID) - it breaks and an error is generated dkim=fail reason=signature_incorrect header.
Message ID is generated automatically. Example:-5b3640e836c46291538490.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Dubrovin, 2018-06-29
@z3apa3a

The Message-ID and Date must be generated along with the email before you apply the DKIM signature. Otherwise, the Message-ID and Date can be added by any intermediate relay after the email has been signed with DKIM, and this will result in an incorrect signature.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question