Given a raw email, how can I validate the DKIM signature with Python?
Ideally I’d like more than just a pass / fail result, I’d like to know details of any issues.
I’ve found the dkimpy package, but the API isn’t obvious to me.
Given a raw email, how can I validate the DKIM signature with Python?
Ideally I’d like more than just a pass / fail result, I’d like to know details of any issues.
I’ve found the dkimpy package, but the API isn’t obvious to me.
Copyright © 2021 Jogjafile Inc.
For a simple pass/fail validation:
For something more nuanced you can do this: