This package is deprecated in favor of dkimpy instead, see https://github.com/forwardemail/dkimpy/ for more information.
python-dkim-verify
Node.js wrapper around Python's dkim.verify function which conforms to RFC spec
Table of Contents
Requirements
-
Ensure that you have a Python version of >= 3.5 installed per dkimpy requirements (note that Python v3 is required because of a bug with DNS recursive CNAME lookups on v2.7):
python3 --version -
Install the packages dkimpy:
pip3 install dkimpy
Install
npm:
npm install python-dkim-verify
yarn:
yarn add python-dkim-verify
Usage
const dkimVerify = ; // then/catch usage ; // async/await usageasync { try const result = await ; console; catch err console; };
Note that result
is either true
or false
depending on whether or not DKIM verification was successful for the first DKIM-Signature
header found on the email.
Contributors
Name | Website |
---|---|
Nick Baugh | http://niftylettuce.com/ |