DKIM plugin for ZoneMTA
Find a file
2025-10-10 08:19:52 +05:30
config Update Readme and toml config 2025-10-10 08:18:34 +05:30
index.js ZonemTA: DeepOfix DKIM Plugin 2025-09-14 18:21:56 +05:30
LICENSE Initial commit 2025-09-14 17:51:58 +05:30
package.json Update Readme and toml config 2025-10-10 08:18:16 +05:30
README.md Update Readme and toml config 2025-10-10 08:19:52 +05:30

zonemta-deepofix-dkim: DKIM plugin for ZoneMTA

This plugin signs DKIM for emails by loading keys from filesystem.

Install

npm i zonemta-deepofix-dkim

Configuration

Keys are organized in a hierarchical structure, where the plugin automatically locates the correct key by checking for a file at $keys_dir/$DOMAIN/$SELECTOR.private

keys_dir: DKIM keys path

mkdir dkim/
cp node_modules/zonemta-deepofix-dkim/config/dkim_gen_key.sh dkim/
cp node_modules/zonemta-deepofix-dkim/config/deepofix-dkim.toml config/plugins/
$EDITOR config/plugins/deepofix-dkim.toml

Create DKIM key

cd dkim
bash dkim_gen_key.sh example.com

DKIM script will generate 3 files under $DOMAIN directory.

  • dns: Info about TXT record which needs to be created
  • $SELECTOR.private: Private key
  • $SELECTOR.txt: Public key

Add TXT records as specified in dkim/example.com/dns