Download man pages section 1: User Commands

Transcript
newaliases(1)
NAME
SYNOPSIS
DESCRIPTION
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. It is run automatically by sendmail(1M) (in the default
configuration) whenever /etc/mail/aliases is newer than
/etc/mail/aliases.pag.
newaliases accepts all the flags that sendmail(1M) accepts. However, most of these
flags will 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.
-oAfile
Specify possible alias file(s).
-oLn
Set the default log level to n. Defaults to 9.
-on
Validate the RHS of aliases when rebuilding
the aliases(4) database.
newaliases runs in verbose mode (-v option) automatically.
EXAMPLES
EXAMPLE 1
Example of the newaliases command.
To run newaliases on an alias file different from the /etc/mail/aliases default
in sendmail(1M):
example% newaliases -oA/path/to/alternate/alias/file
EXIT STATUS
FILES
950
newaliases returns an exit status describing what it did. The codes are defined in
/usr/include/sysexits.h.
EX_OK
Successful completion on all addresses.
EX_NOUSER
User name not recognized.
EX_UNAVAILABLE
Catchall. Necessary resources were not available.
EX_SYNTAX
Syntax error in address.
EX_SOFTWARE
Internal software error, including bad arguments.
EX_OSERR
Temporary operating system error, such as “cannot
fork”.
EX_NOHOST
Host name not recognized.
EX_TEMPFAIL
Message could not be sent immediately, but was
queued.
/etc/aliases
man pages section 1: User Commands • Last Revised 11 Aug 1998
symbolic link to /etc/mail/aliases.