]> git.proxmox.com Git - pmg-api.git/commit
config: postfix: make smtp-filter-timeout configurable
authorStoiko Ivanov <s.ivanov@proxmox.com>
Fri, 12 Jan 2024 19:21:50 +0000 (20:21 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 22 Feb 2024 15:03:18 +0000 (16:03 +0100)
commit479028dfe1517b1272df1a14d7b4b655a7aec341
treeb966104bb73f5f7e3d22cc990ccec1f5eb3c1af5
parentfd24cb98b34e6d1801498a5da4e65a069e0f4693
config: postfix: make smtp-filter-timeout configurable

accessing the value in the config-template needs to use the
item virtual method (`pmg.mail.item('filter-timeout')` instead of the
. operator, due to using kebab-case for 'filter-timeout' see [0].

the minimal value is set to 2 as we add 1 second for the rules
processing in the next patch, and postfix has 1 as minimum.

[0] http://template-toolkit.org/docs/manual/VMethods.html#section_item

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by:  Dominik Csapak <d.csapak@proxmox.com>
src/PMG/Config.pm
src/templates/main.cf.in