haraka-plugin-qmail-deliverable 1.2.2
Install from the command line:
Learn more about npm packages
$ npm install @haraka/haraka-plugin-qmail-deliverable@1.2.2
Install via package.json:
"@haraka/haraka-plugin-qmail-deliverable": "1.2.2"
About this version
A client for checking the deliverability of an email address against the qmail-deliverabled daemon.
On incoming messages (relaying=false), validate the RCPT TO address.
The host and port that qmail-deliverabled is listening on can be set by
altering the contents of config/qmail-deliverable.ini
-
host
(Default: localhost) -
port
(Default: 8998) -
check_mail_from
= (Default: true)
When check_mail_from
is enabled, the MAIL FROM address is checked for deliverability. The deliverable status can be inspected by checking transaction.notes.local_sender
. This information can be used later to determine mail handling.
MX routing for individual domains can be set by defining queue
and next_hop
.
-
queue
: a queue plugin (smtp_forward, qmail-queue, lmtp), or lmtp. Whenqueue=lmtp
, if qmail-deliverable reports that the destination address is a mailbox (ie, not email list, forward, alias, etc.), then this plugin will configure the next_hop to belmtp://$host/
and will set up that route (viaget_mx()
) so that outbound delivers the message to the mailbox via LMTP. -
next_hop
: a URL. Examples:smtp://mx.example.com
andlmtp://int.mx.example.com:24
. This plugin uses next_hop to direct messages to local mailboxes via LMTP. If the LMTP server (dovecot, in my case) is not the same host that is running qmail-deliverabled, set next_hop accordingly.
Domains can have their own configuration. The defaults are the same, so only the differences needs to be declared. Example:
[example.com]
host=192.168.0.1
[example2.com]
host=192.168.0.2