From 9b90a8bd383002b360f9a9442890681549c9f176 Mon Sep 17 00:00:00 2001 From: "github@kiekerjan.isdronken.nl" Date: Mon, 26 Apr 2021 21:46:07 +0200 Subject: [PATCH] forward root mail --- setup/additionals.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setup/additionals.sh b/setup/additionals.sh index cdd13134..35e92797 100644 --- a/setup/additionals.sh +++ b/setup/additionals.sh @@ -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 \ No newline at end of file