From 3eb53b54635f88f84864097f58bd10ab58a94c61 Mon Sep 17 00:00:00 2001 From: Christoph Date: Sun, 15 Sep 2024 22:18:20 +0200 Subject: [PATCH] install_postfix_base.sh,install_postfix_advanced.sh: adjust second time '/etc/rsyslog.d/postfix.conf'. --- install_postfix_advanced.sh | 6 +++++- install_postfix_base.sh | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/install_postfix_advanced.sh b/install_postfix_advanced.sh index 281d4f4..9dc03cf 100755 --- a/install_postfix_advanced.sh +++ b/install_postfix_advanced.sh @@ -3633,7 +3633,11 @@ fi ## - Omitt logging into system.log ## - 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 diff --git a/install_postfix_base.sh b/install_postfix_base.sh index a863543..cbbc02d 100755 --- a/install_postfix_base.sh +++ b/install_postfix_base.sh @@ -1313,7 +1313,11 @@ fi ## - Omitt logging into system.log ## - 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