You can use email aliases to enable one email address to stand in for another one. For example, since reading mail as root is not advisable because of the security reasons, you may want to set up an alias and link the root name to the name of a user account. This will redirect all of root’s mail to that user account.
Aliases are defined in the aliases file, which usually resides in /etc or /etc/mail:
To define an alias, simply add a line that contains a local name and the name of a local account to which the messages are forwarded:
In the example above we have redirected all of root’s mail to the user bob.
You can also define an additional local file in which messages will be stored. For example, to store all emails sent to bob to the /home/bob/bobs_mail_backup file, you can use the following command: