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