newaliases

The name newaliases (a synonym for the -bi command-line switch) causes sendmail to rebuild all the aliases database files, print summary information, and then immediately exit (Rebuild the Alias Database on page 478). In this mode the -v command-line switch (-v on page 249) is automatically implied, and sendmail runs in verbose mode.

The location of the aliases file is given in the configuration file with the AliasFile option (Alphabetized Options on page 970). That location can be overridden from the command line, but if it is, sendmail gives up its special privileges (unless it was run by root).

Get sendmail, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.