Friday, October 2, 2009

Episode 18: How can I make new aliases for my users if I am running sendmail?

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