make sure exim logs are (re)created, they are needed by fail2ban

This commit is contained in:
Matthew Saunders Brown 2024-07-29 14:22:44 -07:00
parent 2727540a16
commit bd61d77021

View File

@ -126,6 +126,7 @@ systemctl start srsd
# exim config
fqdn=`hostname -f`
maildomain=`hostname -d`
sed -i 's/nocreate/create 640 Debian-exim adm/g' /etc/logrotate.d/exim4-base
sed -i 's/size 10M/daily/g' /etc/logrotate.d/exim4-paniclog
install --owner=Debian-exim --group=Debian-exim --mode=640 /dev/null /etc/exim4/relay_domains
cp etc/exim4/* /etc/exim4/