6253 F_GETLK doesn't always return lock owner
[illumos-gate.git] / usr / src / man / man1m / newaliases.1m
blobdc0838ac7bbb27444061f36b1114ec04daa4ce44
1 '\" te
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"
7 .SH NAME
8 newaliases \- rebuild the data base for the mail aliases file
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fBnewaliases\fR
13 .fi
15 .SH DESCRIPTION
16 .sp
17 .LP
18 \fBnewaliases\fR rebuilds the random access data base for the mail aliases file
19 \fB/etc/mail/aliases\fR.
20 .sp
21 .LP
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:
26 .sp
27 .ne 2
28 .na
29 \fB\fB-C\fR\fI /path/to/alt/config/file\fR\fR
30 .ad
31 .sp .6
32 .RS 4n
33 Use alternate configuration file.
34 .RE
36 .sp
37 .ne 2
38 .na
39 \fB\fB-oA\fR\fIfile\fR\fR
40 .ad
41 .sp .6
42 .RS 4n
43 Specify possible alias files.
44 .RE
46 .sp
47 .ne 2
48 .na
49 \fB\fB-oL\fR\fIn\fR\fR
50 .ad
51 .sp .6
52 .RS 4n
53 Set the default log level to \fIn\fR. Defaults to \fB9\fR.
54 .RE
56 .sp
57 .ne 2
58 .na
59 \fB\fB-on\fR\fR
60 .ad
61 .sp .6
62 .RS 4n
63 Validate the \fBRHS\fR of aliases when rebuilding the \fBaliases\fR(4)
64 database.
65 .RE
67 .sp
68 .LP
69 \fBnewaliases\fR runs in verbose mode (\fB-v\fR option) automatically.
70 .SH EXAMPLES
71 .LP
72 \fBExample 1 \fRRunning the \fBnewaliases\fR Command
73 .sp
74 .LP
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):
78 .sp
79 .in +2
80 .nf
81  example% \fBnewaliases \fR\fB-oA\fR\fB\fI/path/to/alternate/alias/file\fR\fR
82 .fi
83 .in -2
84 .sp
86 .SH EXIT STATUS
87 .sp
88 .LP
89 \fBnewaliases\fR returns an exit status describing what it did. The codes are
90 defined in \fB/usr/include/sysexits.h\fR.
91 .sp
92 .ne 2
93 .na
94 \fB\fBEX_OK\fR\fR
95 .ad
96 .RS 18n
97 Successful completion on all addresses.
98 .RE
101 .ne 2
103 \fB\fBEX_NOUSER\fR\fR
105 .RS 18n
106 User name not recognized.
110 .ne 2
112 \fB\fBEX_UNAVAILABLE\fR\fR
114 .RS 18n
115 Catchall. Necessary resources were not available.
119 .ne 2
121 \fB\fBEX_SYNTAX\fR\fR
123 .RS 18n
124 Syntax error in address.
128 .ne 2
130 \fB\fBEX_SOFTWARE\fR\fR
132 .RS 18n
133 Internal software error, including bad arguments.
137 .ne 2
139 \fB\fBEX_OSERR\fR\fR
141 .RS 18n
142 Temporary operating system error, such as "cannot fork".
146 .ne 2
148 \fB\fBEX_NOHOST\fR\fR
150 .RS 18n
151 Host name not recognized.
155 .ne 2
157 \fB\fBEX_TEMPFAIL\fR\fR
159 .RS 18n
160 Message could not be sent immediately, but was queued.
163 .SH FILES
165 .ne 2
167 \fB\fB/etc/aliases\fR\fR
169 .RS 25n
170 Symbolic link to \fB/etc/mail/aliases\fR
174 .ne 2
176 \fB\fB/etc/mail/aliases.pag\fR\fR
178 .RS 25n
183 .ne 2
185 \fB\fB/etc/mail/aliases.dir\fR\fR
187 .RS 25n
188 \fBndbm\fR files maintained by \fBnewaliases\fR
192 .ne 2
194 \fB\fB/etc/mail/aliases.db\fR\fR
196 .RS 25n
197 Berkeley DataBase file maintained by newaliases
200 .SH SEE ALSO
203 \fBsendmail\fR(1M), \fBaliases\fR(4), \fBattributes\fR(5)