install_postfix_base.sh,install_postfix_advanced.sh: adjust second time '/etc/rsyslog.d/postfix.conf'.

This commit is contained in:
Christoph 2024-09-15 22:18:20 +02:00
parent e976d0e3ef
commit 3eb53b5463
2 changed files with 10 additions and 2 deletions

View File

@ -3633,7 +3633,11 @@ fi
## - Omitt logging into system.log ## - Omitt logging into system.log
## - ## -
echononl " Create \"/etc/rsyslog.d/postfix.conf\"" echononl " Create \"/etc/rsyslog.d/postfix.conf\""
cat << EOF >> /etc/rsyslog.d/postfix.conf cat << EOF > /etc/rsyslog.d/postfix.conf
# Create an additional socket in postfix's chroot in order not to break
# mail logging when rsyslog is restarted. If the directory is missing,
# rsyslog will silently skip creating the socket.
\$AddUnixListenSocket /var/spool/postfix/dev/log
# #
# Logging for the mail system. Split it up so that # Logging for the mail system. Split it up so that

View File

@ -1313,7 +1313,11 @@ fi
## - Omitt logging into system.log ## - Omitt logging into system.log
## - ## -
echononl " Create \"/etc/rsyslog.d/postfix.conf\"" echononl " Create \"/etc/rsyslog.d/postfix.conf\""
cat << EOF >> /etc/rsyslog.d/postfix.conf cat << EOF > /etc/rsyslog.d/postfix.conf
# Create an additional socket in postfix's chroot in order not to break
# mail logging when rsyslog is restarted. If the directory is missing,
# rsyslog will silently skip creating the socket.
\$AddUnixListenSocket /var/spool/postfix/dev/log
# #
# Logging for the mail system. Split it up so that # Logging for the mail system. Split it up so that