From 5394790f9197639847ce90ebc29d5b3a423711fa Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 31 Oct 2022 14:53:34 +0100 Subject: [PATCH] postfix: fix permission issue preventing to properly create sasl_passwd.db --- hooks/conf_regen/19-postfix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hooks/conf_regen/19-postfix b/hooks/conf_regen/19-postfix index f0423312b..266cf5ba7 100755 --- a/hooks/conf_regen/19-postfix +++ b/hooks/conf_regen/19-postfix @@ -70,6 +70,8 @@ do_pre_regen() { do_post_regen() { regen_conf_files=$1 + chown postfix /etc/postfix + if [ -e /etc/postfix/sasl_passwd ]; then chmod 750 /etc/postfix/sasl_passwd* chown postfix:root /etc/postfix/sasl_passwd*