How to forward root's mail to another user

June 06, 2005
This is a short Linux tip that explains how to redirect all the root's mail on your system to another account. For example, if I want to redirect the mail received by root to a different user named ravi, I can do it by editing the /etc/aliases file and appending a line as follows.

#FILE: /etc/aliases
root: ravi

Now you have to ask the system to write the changes in the /etc/aliases file to the aliases.db database. This is achieved by running the newaliases command as follows.

# newaliases

You have to run the newaliases command each time you modify the /etc/aliases file.

0 comments: