Postfix root alias

Goal : redirect local root email to an external email

Add this line to the bottom of /etc/aliases:

root: your_email@domain.com

Run this command:

newaliases

Restart postfix

Test

echo “test root” | sendmail root

Leave a Reply

Your email address will not be published. Required fields are marked *