Edit the /etc/aliases file. The syntax for the file is as follows:
Add the usernames and aliases then save the file. Then run (as the user root) the following command:
Or restart sendmail with this command:
service sendmail restart
This is the same as running the following command:
The aliases database will now be rebuilt with the new changes.