2 .\" Copyright (c) 2001 Sun Microsystems, Inc. All Rights Reserved.
3 .\" 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.
4 .\" 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.
5 .\" 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]
6 .TH NEWALIASES 1M "Sep 14, 2001"
8 newaliases \- rebuild the data base for the mail aliases file
18 \fBnewaliases\fR rebuilds the random access data base for the mail aliases file
19 \fB/etc/mail/aliases\fR.
22 \fBnewaliases\fR accepts all the flags that \fBsendmail\fR(1M) accepts.
23 However, most of these flags have no effect, except for the \fB-C\fR option and
24 three of the \fBProcessing\fR \fBOptions\fR that can be set from a
25 configuration file with the \fB-o\fR option:
29 \fB\fB-C\fR\fI /path/to/alt/config/file\fR\fR
33 Use alternate configuration file.
39 \fB\fB-oA\fR\fIfile\fR\fR
43 Specify possible alias files.
49 \fB\fB-oL\fR\fIn\fR\fR
53 Set the default log level to \fIn\fR. Defaults to \fB9\fR.
63 Validate the \fBRHS\fR of aliases when rebuilding the \fBaliases\fR(4)
69 \fBnewaliases\fR runs in verbose mode (\fB-v\fR option) automatically.
72 \fBExample 1 \fRRunning the \fBnewaliases\fR Command
75 The following command runs \fBnewaliases\fR on an alias file different from the
76 \fB/etc/mail/aliases\fR default in \fBsendmail\fR(1M):
81 example% \fBnewaliases \fR\fB-oA\fR\fB\fI/path/to/alternate/alias/file\fR\fR
89 \fBnewaliases\fR returns an exit status describing what it did. The codes are
90 defined in \fB/usr/include/sysexits.h\fR.
97 Successful completion on all addresses.
103 \fB\fBEX_NOUSER\fR\fR
106 User name not recognized.
112 \fB\fBEX_UNAVAILABLE\fR\fR
115 Catchall. Necessary resources were not available.
121 \fB\fBEX_SYNTAX\fR\fR
124 Syntax error in address.
130 \fB\fBEX_SOFTWARE\fR\fR
133 Internal software error, including bad arguments.
142 Temporary operating system error, such as "cannot fork".
148 \fB\fBEX_NOHOST\fR\fR
151 Host name not recognized.
157 \fB\fBEX_TEMPFAIL\fR\fR
160 Message could not be sent immediately, but was queued.
167 \fB\fB/etc/aliases\fR\fR
170 Symbolic link to \fB/etc/mail/aliases\fR
176 \fB\fB/etc/mail/aliases.pag\fR\fR
185 \fB\fB/etc/mail/aliases.dir\fR\fR
188 \fBndbm\fR files maintained by \fBnewaliases\fR
194 \fB\fB/etc/mail/aliases.db\fR\fR
197 Berkeley DataBase file maintained by newaliases
203 \fBsendmail\fR(1M), \fBaliases\fR(4), \fBattributes\fR(5)