I've set up opendkim for my postfix and now all outgoing mails have DKIM-Signature heading. What I want to do is to verify manually, withoug DNS and external utilities, preferably with openssl only, that messages are getting correct signature. So as input data I have:
The question is how to decrypt and/or verify DKIM-Signature with DKIM Public signature using some CLI utility like openssl?
Download email, usually an .eml
file
Install python
pip install dkimpy
dkimverify < email_file.eml
Alternatively you can
dkimverify