From 7b04823e0c24916d7d8b2c37d5ea78c0cff959aa Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 7 Jul 2022 12:22:15 +0200 Subject: Adding postfix to service-reload dehydrated hook. Signed-off-by: Daniel Baumann --- dehydrated/share/hooks/exit_hook.service-reload | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dehydrated/share/hooks/exit_hook.service-reload b/dehydrated/share/hooks/exit_hook.service-reload index 02dd6c5..cec5583 100755 --- a/dehydrated/share/hooks/exit_hook.service-reload +++ b/dehydrated/share/hooks/exit_hook.service-reload @@ -54,3 +54,12 @@ then echo " done." fi fi + +if grep -r -qs '^smtpd_tls' /etc/postfix/main.cf/* && service postfix status > /dev/null 2>&1 +then + echo -n " + postfix:" + + service postfix restart + + echo " done." +fi -- cgit v1.2.3