Copyright (c) 2001 Sun Microsystems, Inc. All Rights Reserved.
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
newaliases
newaliases rebuilds the random access data base for the mail aliases file /etc/mail/aliases.
newaliases accepts all the flags that sendmail(1M) 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(4) 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(1M):
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
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.
ndbm files maintained by newaliases
Berkeley DataBase file maintained by newaliases
sendmail(1M), aliases(4), attributes(5)