| Skip Navigation Links | |
| Exit Print View | |
![]() | man pages section 1M: System Administration Commands Oracle Solaris 11 Information Library |
- 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 thatsendmail(1M) accepts. However, most of theseflags have no effect, except for the-C option and three of theProcessingOptions that can be set from a configuration file with the-o option:
Use alternate configuration file.
Specify possible alias files.
Set the default log level ton. Defaults to9.
Validate the RHS of aliases when rebuilding thealiases(4) database.
newaliases runs in verbose mode (-v option) automatically.
Example 1 Running thenewaliases Command
The following command runsnewaliases on an alias file different from the/etc/mail/aliases default insendmail(1M):
example%newaliases-oA/path/to/alternate/alias/file
newaliases returns an exit status describing what it did. The codes aredefined 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 bynewaliases
Berkeley DataBase file maintained by newaliases
Seeattributes(5) for descriptions of the following attributes:
|
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.Legal Notices | ![]() ![]() |