From 9a9380150e9daeef300f63124ba5f64c019724b4 Mon Sep 17 00:00:00 2001 From: Brennan Kinney <5098581+polarathene@users.noreply.github.com> Date: Sat, 4 Mar 2023 11:08:51 +1300 Subject: [PATCH] fix: Avoid creating an unnecessary syslog socket for Postfix (#3134) Co-authored-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com> --- target/postfix/master.cf | 1 + target/scripts/build/packages.sh | 3 +++ 2 files changed, 4 insertions(+) diff --git a/target/postfix/master.cf b/target/postfix/master.cf index 39d50dfd..52b6fe8d 100644 --- a/target/postfix/master.cf +++ b/target/postfix/master.cf @@ -75,3 +75,4 @@ virtual unix - n n - - virtual lmtp unix - - n - - lmtp anvil unix - - n - 1 anvil scache unix - - n - 1 scache +postlog unix-dgram n - n - 1 postlogd diff --git a/target/scripts/build/packages.sh b/target/scripts/build/packages.sh index 8ba060fd..f99abb40 100644 --- a/target/scripts/build/packages.sh +++ b/target/scripts/build/packages.sh @@ -37,6 +37,9 @@ function _install_postfix chmod +x /bin/hostname apt-get "${QUIET}" install --no-install-recommends postfix mv /bin/hostname.bak /bin/hostname + + # Irrelevant - Debian's default `chroot` jail config for Postfix needed a separate syslog socket: + rm /etc/rsyslog.d/postfix.conf } function _install_packages