xref: /openbsd/usr.sbin/smtpd/newaliases.8 (revision 09467b48)
1.\"	$OpenBSD: newaliases.8,v 1.12 2018/07/20 15:35:33 millert 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 20 2018 $
19.Dt NEWALIASES 8
20.Os
21.Sh NAME
22.Nm newaliases
23.Nd rebuild mail aliases
24.Sh SYNOPSIS
25.Nm newaliases
26.Op Fl f Ar file
27.Sh DESCRIPTION
28The
29.Nm
30utility makes changes to the mail aliases file visible to
31.Xr smtpd 8 .
32It should be run every time the
33.Xr aliases 5
34file is changed.
35The location of the alias file is defined in
36.Xr smtpd.conf 5 ,
37and defaults to
38.Pa /etc/mail/aliases .
39.Pp
40The options are as follows:
41.Bl -tag -width Ds
42.It Fl f Ar file
43Use
44.Ar file
45as the configuration file,
46instead of the default
47.Pa /etc/mail/smtpd.conf .
48.El
49.Pp
50If using database (db) files,
51.Nm
52is equivalent to running
53.Xr makemap 8
54as follows:
55.Bd -literal -offset indent
56# makemap -t aliases /etc/mail/aliases
57.Ed
58.Pp
59If using plain text files,
60.Nm
61is equivalent to running
62.Xr smtpctl 8
63as follows:
64.Bd -literal -offset indent
65# smtpctl update table aliases
66.Ed
67.Sh FILES
68.Bl -tag -width "/etc/mail/aliasesXXX" -compact
69.It Pa /etc/mail/aliases
70List of local user mail aliases.
71.It Pa /etc/mail/virtual
72List of virtual host aliases.
73.El
74.Sh EXIT STATUS
75.Ex -std newaliases
76.Sh SEE ALSO
77.Xr smtpd.conf 5 ,
78.Xr makemap 8 ,
79.Xr smtpctl 8 ,
80.Xr smtpd 8
81.Sh HISTORY
82The
83.Nm
84command first appeared in
85.Ox 4.6
86as a replacement for the equivalent command shipped with sendmail.
87