1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-05 15:57:23 +01:00

Prevent duplicate logging of mail-related output by configuring rsyslog to record only to mail.log and not also to syslog

This commit is contained in:
downtownallday
2022-02-28 07:11:58 -05:00
parent 72827f365d
commit 94f140d528
3 changed files with 24 additions and 9 deletions

View File

@@ -370,3 +370,13 @@ cp -f conf/fail2ban/filter.d/* /etc/fail2ban/filter.d/
# scripts will ensure the files exist and then fail2ban is given another
# restart at the very end of setup.
restart_service fail2ban
# ### Mail-related logs should be recorded in mail.log only - stop
# ### duplicate logging to syslog
cat >/etc/rsyslog.d/20-mailinabox.conf <<EOF
mail.* -/var/log/mail.log
mail.err /var/log/mail.err
mail.* stop
EOF
restart_service rsyslog