install_postfixadmin.sh: Change use of virtual vacation from 'YES' to 'NO'.

This commit is contained in:
Christoph 2023-08-30 18:57:44 +02:00
parent 0e9f2d739b
commit 4a6d7034f2

View File

@ -2254,7 +2254,7 @@ fi
## - 'relay' // for backup mx
## - );
## - $CONF['transport_default'] = 'lmtp:unix:private/dovecot-lmtp';
## - $CONF['vacation'] = 'YES';
## - $CONF['vacation'] = 'NO';
## - $CONF['vacation_domain'] = '$AUTOREPLY_HOSTNAME';
## -
echononl "\tAdjust Postfix Admin's Configuration - Part 3"
@ -2280,7 +2280,7 @@ cat <<EOF >> $pfa_conf_file 2> $log_file
\$CONF['transport_default'] = 'lmtp:unix:private/dovecot-lmtp';
EOF
perl -i -n -p -e "s#^(\s*\\\$CONF\['vacation'\]\s*=.*)#//!\1\n\\\$CONF['vacation'] = 'YES';#" \
perl -i -n -p -e "s#^(\s*\\\$CONF\['vacation'\]\s*=.*)#//!\1\n\\\$CONF['vacation'] = 'NO';#" \
$pfa_conf_file >> $log_file 2>&1 || _failed=true
perl -i -n -p -e "s#^(\s*\\\$CONF\['vacation_domain'\]\s*=.*)#//!\1\n\\\$CONF['vacation_domain'] = '$AUTOREPLY_HOSTNAME';#" \
$pfa_conf_file >> $log_file 2>&1 || _failed=true