Linux newaliases Command
The Linux newaliases command uses a file in /etc/aliases to perform user name translation. When sendmail receives a message intended for xxx, it refers to the aliases file to redirect the message to another user. This feature allows the creation of a user that is valid only within the mail system. For example, mailing lists utilize this functionality. We might create a mailing list called [email protected], but there is no actual user named redlinux. The actual aliases file content directs messages intended for this user to the mailing list processor responsible for distribution.
/etc/aliases is a text-based file, and sendmail requires a binary-formatted /etc/aliases.db. The newaliases command converts /etc/aliases into a database that sendmail can understand.
Usage permission: System administrator.
Syntax
newaliases
Parameter Description: No parameters.
Example
# newaliases
The following command does the same thing:
# sendmail -bi