add root alias to /etc/aliases

This commit is contained in:
Matthew Saunders Brown 2022-11-16 18:02:20 -08:00
parent 60dc773951
commit 882df54bd8

View File

@ -192,5 +192,10 @@ if [[ -d /etc/fail2ban/ ]]; then
else
echo
echo "fail2ban not installed, skipping fail2ban email configs."
fi
echo "root: webmaster@$maildomain" >> /etc/aliases
echo
echo "Email for root user notifications are configured to go to webmaster@$maildomain."
echo "Update /etc/aliases to suit your needs."