xref: /openbsd/usr.sbin/smtpd/newaliases.8 (revision 8529ddd3)
1.\"	$OpenBSD: newaliases.8,v 1.10 2013/07/19 12:22:58 eric Exp $
2.\"
3.\" Copyright (c) 2009 Jacek Masiulaniec <jacekm@openbsd.org>
4.\" Copyright (c) 2008-2009 Gilles Chehade <gilles@poolp.org>
5.\"
6.\" Permission to use, copy, modify, and distribute this software for any
7.\" purpose with or without fee is hereby granted, provided that the above
8.\" copyright notice and this permission notice appear in all copies.
9.\"
10.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17.\"
18.Dd $Mdocdate: July 19 2013 $
19.Dt NEWALIASES 8
20.Os
21.Sh NAME
22.Nm newaliases
23.Nd rebuild the database for the mail aliases file
24.Sh SYNOPSIS
25.Nm newaliases
26.Op Fl f Ar file
27.Sh DESCRIPTION
28.Nm
29rebuilds the random access database for the mail aliases file,
30the location of which is defined in
31.Xr smtpd.conf 5 ,
32and which by default is
33.Pa /etc/mail/aliases .
34This utility must be run each time the aliases file is changed
35in order for the change to take effect.
36.Pp
37The options are as follows:
38.Bl -tag -width Ds
39.It Fl f Ar file
40Use
41.Ar file
42as the configuration file,
43instead of the default
44.Pa /etc/mail/smtpd.conf .
45.El
46.Pp
47Note: this utility is provided for sendmail compatibility.
48The preferred way of rebuilding the database is with
49.Xr makemap 8 :
50.Bd -literal -offset indent
51# makemap -t aliases /etc/mail/aliases
52.Ed
53.Sh FILES
54.Bl -tag -width "/etc/mail/aliasesXXX" -compact
55.It Pa /etc/mail/aliases
56List of local user mail aliases.
57.It Pa /etc/mail/virtual
58List of virtual host aliases.
59.El
60.Sh EXIT STATUS
61.Ex -std newaliases
62.Sh SEE ALSO
63.Xr smtpd.conf 5 ,
64.Xr makemap 8
65.Sh HISTORY
66The
67.Nm
68command first appeared in
69.Ox 4.6
70as a replacement for the equivalent command shipped with sendmail.
71