]> git.proxmox.com Git - pmg-api.git/commitdiff
add support for sending NDRs on Block
authorStoiko Ivanov <s.ivanov@proxmox.com>
Thu, 14 Nov 2019 16:35:06 +0000 (17:35 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 15 Nov 2019 07:54:49 +0000 (08:54 +0100)
This patch adds a flag to the mail-section of pmg.conf - 'ndr_on_block',
defaulting to false.

If enabled pmg-smtp-filter replies with 554 (permanent fail) for the recipient
who blocked the mail.

Since pmg-smtp-filter is currently called with LMTP it can respond with a
separate code for each recipient. Postfix records the answers and generates
and sends the NDR to the sender.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>

No differences found