]> git.proxmox.com Git - pmg-api.git/commit
fix #2371: reload pmg-smtp-filter on config change
authorStoiko Ivanov <s.ivanov@proxmox.com>
Mon, 21 Oct 2019 17:23:26 +0000 (19:23 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 23 Oct 2019 07:50:34 +0000 (09:50 +0200)
commite5b31a6178118981e784b225941f1502ba644ee5
tree5823f58e5ee2944efcb7da84056f1ac458584b91
parent592f4b8018384095dfdb330062620795d7fbab48
fix #2371: reload pmg-smtp-filter on config change

the external services (postfix, clamav,...) are restarted if their configfile
changes (which Template::Toolkit tells us).

By writing a current-config to '/run/pmg-smtp-filter.cfg' we can use the same
logic to reload it on a config-change affecting it - currently hide_received

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
src/PMG/Config.pm
src/bin/pmg-smtp-filter