1.\" $OpenBSD: newaliases.8,v 1.11 2015/12/22 17:52:21 jmc 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: December 22 2015 $ 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 . 34If using database (db) files 35this utility must be run every time the 36.Xr aliases 5 37file is changed. 38.Pp 39The options are as follows: 40.Bl -tag -width Ds 41.It Fl f Ar file 42Use 43.Ar file 44as the configuration file, 45instead of the default 46.Pa /etc/mail/smtpd.conf . 47.El 48.Pp 49Note: this utility is provided for sendmail compatibility. 50The preferred way of rebuilding the database is with 51.Xr makemap 8 : 52.Bd -literal -offset indent 53# makemap -t aliases /etc/mail/aliases 54.Ed 55.Sh FILES 56.Bl -tag -width "/etc/mail/aliasesXXX" -compact 57.It Pa /etc/mail/aliases 58List of local user mail aliases. 59.It Pa /etc/mail/virtual 60List of virtual host aliases. 61.El 62.Sh EXIT STATUS 63.Ex -std newaliases 64.Sh SEE ALSO 65.Xr smtpd.conf 5 , 66.Xr makemap 8 67.Sh HISTORY 68The 69.Nm 70command first appeared in 71.Ox 4.6 72as a replacement for the equivalent command shipped with sendmail. 73