Short note: redirect local root mails (cron, mdadm, …) to an external address:
# install postfix
apt-get install postfix
# add alias for root
echo "root: otto@example.com" >> /etc/aliases
# reload aliases for postfix
newaliases
Short note: redirect local root mails (cron, mdadm, …) to an external address:
# install postfix
apt-get install postfix
# add alias for root
echo "root: otto@example.com" >> /etc/aliases
# reload aliases for postfix
newaliases
One reply on “postfix: redirect mails for root”
[…] I use this on my home-server/NAS behind a DSL line to get the root-messages (refer https://www.bergercity.de/general/postfix-redirect-mails-for-root/). […]