summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/makemap.8
blob: ae3b737d799b3da415d9229baeafb36e362def23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
.\"	$OpenBSD: makemap.8,v 1.3 2008/12/17 22:59:36 jacekm Exp $
.\" Copyright (c) 1998-2002 Sendmail, Inc. and its suppliers.
.\"	All rights reserved.
.\" Copyright (c) 1988, 1991, 1993
.\"	The Regents of the University of California.  All rights reserved.
.\"
.\" By using this file, you agree to the terms and conditions set
.\" forth in the LICENSE file which can be found at the top level of
.\" the sendmail distribution.
.\"
.\"
.\"     $Sendmail: makemap.8,v 8.30 2002/06/27 23:41:04 gshapiro Exp $
.\"
.Dd $Mdocdate: December 17 2008 $
.Dt MAKEMAP 8
.Os
.Sh NAME
.Nm makemap ,
.Nm newaliases
.Nd create database maps for smtpd
.Sh SYNOPSIS
.Nm makemap
.Ar file
.Nm newaliases
.Sh DESCRIPTION
.Nm
creates the database maps used by the keyed map lookups in
.Xr smtpd 8 .
It reads input from
.Ar file
and outputs them to
.Ar file.db .
.Pp
In all cases,
.Nm
reads lines from 
.Ar file
consisting of words separated by whitespace.
The first is the database key,
the remaining specify mapped value.
.Pp
.Ex -std makemap
.Pp
.Nm newaliases 
rebuilds the random access database for the mail aliases file
.Pa /etc/mail/aliases .
It must be run each time this file is changed
in order for the change to take effect.
.Pp
.Ex -std newaliases
.Sh FILES
.Bl -tag -width "/etc/mail/aliasesXXX" -compact
.It Pa /etc/mail/aliases
The mail aliases file.
.El
.Sh SEE ALSO
.Xr editmap 8 ,
.Xr smtpd 8 ,
.Xr aliases 5 ,
.Xr mailer.conf 5
.Sh HISTORY
These
.Nm
and
.Nm newaliases
commands first appeared in
.Ox 4.5
as the replacement for equivalent commands shipped with sendmail.