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