Redirect root mail to an external e-mail address

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

root: your_email@domain.com

Run this command:

newaliases

Restart your mail server and run the following command to test:

echo Test | mail -s "Test Message" root

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">