postfix: fix permission issue preventing to properly create sasl_passwd.db

This commit is contained in:
Alexandre Aubin 2022-10-31 14:53:34 +01:00
parent cd43c8bd0d
commit 5394790f91

View file

@ -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*