NEWALIASES(8) | Maintenance Commands and Procedures | NEWALIASES(8) |
newaliases - rebuild the data base for the mail aliases file
newaliases
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
-oAfile
-oLn
-on
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.
EX_OK
EX_NOUSER
EX_UNAVAILABLE
EX_SYNTAX
EX_SOFTWARE
EX_OSERR
EX_NOHOST
EX_TEMPFAIL
/etc/aliases
/etc/mail/aliases.pag
/etc/mail/aliases.dir
/etc/mail/aliases.db
September 14, 2001 | OmniOS |