1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-03 00:07:05 +00:00

Update rsyslog's postfix configuration, which creates a socket in postfix's chroot

This commit is contained in:
downtownallday 2023-10-06 05:50:16 -04:00
parent c816669073
commit 75baac8d60

View File

@ -55,7 +55,14 @@ change_queue_directory() {
mkdir -p "$(dirname "$where")"
mv "$cur" "$where"
/usr/sbin/postconf -e "queue_directory=$where"
systemctl start postfix
# change rsyslog so chrooted postfix services can log at the
# new location
tools/editconf.py /etc/rsyslog.d/postfix.conf -s "\$AddUnixListenSocket=$where/dev/log"
systemctl restart rsyslog
# re-run setup/mail-users.sh so the new queue_directory is used
source setup/mail-users.sh
echo "New postfix queue directory: $where (was: $cur)"
}