NEWALIASES(8) Maintenance Commands and Procedures NEWALIASES(8)

newaliases - rebuild the data base for the mail aliases file


newaliases rebuilds the random access data base for the mail aliases file /etc/mail/aliases.

newaliases accepts all the flags that sendmail(8) accepts. However, most of these flags have no effect, except for the -C option and three of the Processing Options that can be set from a configuration file with the -o option:

-C /path/to/alt/config/file

Use alternate configuration file.


Specify possible alias files.


Set the default log level to n. Defaults to 9.


Validate the RHS of aliases when rebuilding the aliases(5) database.

newaliases runs in verbose mode (-v option) automatically.

Example 1 Running the newaliases Command

The following command runs newaliases on an alias file different from the /etc/mail/aliases default in sendmail(8):

 example% newaliases -oA/path/to/alternate/alias/file

newaliases returns an exit status describing what it did. The codes are defined in /usr/include/sysexits.h.


Successful completion on all addresses.


User name not recognized.


Catchall. Necessary resources were not available.


Syntax error in address.


Internal software error, including bad arguments.


Temporary operating system error, such as "cannot fork".


Host name not recognized.


Message could not be sent immediately, but was queued.

Symbolic link to /etc/mail/aliases



ndbm files maintained by newaliases


Berkeley DataBase file maintained by newaliases

aliases(5), attributes(7), sendmail(8)

September 14, 2001 OmniOS