forward root mail

This commit is contained in:
github@kiekerjan.isdronken.nl 2021-04-26 21:46:07 +02:00
parent ef59617762
commit 9b90a8bd38
1 changed files with 5 additions and 0 deletions

View File

@ -20,3 +20,8 @@ tools/editconf.py /etc/systemd/journald.conf MaxRetentionSec=2month
tools/editconf.py /etc/systemd/journald.conf MaxFileSec=1week
hide_output systemctl restart systemd-journald.service
# Create forward for root emails
cat > /root/.forward << EOF;
administrator@$PRIMARY_HOSTNAME
EOF