Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Linux newaliases command

Linux newaliases command

Linux Command Reference Linux Command Reference

The Linux newaliases command uses a file in /etc/aliases to perform user name conversion. When sendmail receives a message to be delivered to xxx, it delivers it to another user according to the contents of the aliases file. This feature can create a user that is valid only within the mail system. For example, mailing lists use this feature; in a mailinglist we may create a mailinglist called redlinux@link.ece.uci.edu, but there is actually no user named redlinux. The actual contents of the aliases file collect all mail addressed to this user and hand it to the mailing list handler for distribution.

/etc/aliases is a text-mode file, while sendmail needs a binary-format /etc/aliases.db. The function of newaliases is to convert /etc/aliases into a database that sendmail can understand.

Permission required: system administrator.

Syntax

newaliases

Parameter Description: No parameters.

Example

# newaliases

The following command does the same thing

# sendmail -bi

Linux Command Reference Linux Command Reference