portability fix
[unix-history] / usr / src / usr.sbin / sendmail / makemap / makemap.8
CommitLineData
9b79cc94
KB
1.\" Copyright (c) 1988, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
c1000245
EA
3.\"
4.\" %sccs.include.redist.man%
5.\"
9b79cc94 6.\" @(#)makemap.8 8.1 (Berkeley) %G%
c1000245 7.\"
b5a9a6fd
EA
8.Dd November 16, 1992
9.Dt MAKEMAP 8
10.Os BSD 4.4
11.Sh NAME
12.Nm makemap
13.Nd create database maps for sendmail
14.Sh SYNOPSIS
15.Nm
16.Op Fl N
17.Op Fl f
18.Op Fl o
19.Op Fl r
20.Op Fl v
21.Ar maptype
22.Ar mapname
23.Sh DESCRIPTION
24.Nm
c1000245 25creates the database maps used by the keyed map lookups in
b5a9a6fd 26.Xr sendmail 8 .
c1000245
EA
27It reads input from the standard input
28and outputs them to the indicated
b5a9a6fd
EA
29.Ar mapname .
30.Pp
c1000245 31Depending on how it is compiled,
b5a9a6fd 32.Nm
c1000245
EA
33handles up to three different database formats,
34selected using the
b5a9a6fd 35.Ar maptype
c1000245
EA
36parameter.
37They may be
b5a9a6fd
EA
38.Bl -tag -width Fl
39.It Li dbm
c1000245
EA
40DBM format maps.
41This requires the
b5a9a6fd 42.Xr ndbm 3
c1000245 43library.
b5a9a6fd 44.It Li btree
c1000245
EA
45B-Tree format maps.
46This requires the new Berkeley
b5a9a6fd 47.Xr db 3
c1000245 48library.
b5a9a6fd 49.It Li hash
c1000245
EA
50Hash format maps.
51This also requires the
b5a9a6fd 52.Xr db 3
c1000245 53library.
b5a9a6fd
EA
54.El
55.Pp
c1000245 56In all cases,
b5a9a6fd 57.Nm
c1000245
EA
58reads lines from the standard input consisting of two
59words separated by white space.
60The first is the database key,
61the second is the value.
62The value may contain
63``%\fIn\fP''
64strings to indicated parameter substitution.
65Literal parentheses should be doubled
66(``%%'').
67Blank lines and lines beginning with ``#'' are ignored.
b5a9a6fd
EA
68.Ss Flags
69.Bl -tag -width Fl
70.It Fl N
c1000245
EA
71Include the null byte that terminates strings
72in the map.
73This must match the \-N flag in the sendmail.cf
74``K'' line.
b5a9a6fd 75.It Fl f
1b15d3af
EA
76Fold all upper case letters in the key
77to lower case;
78this is intended to mesh with the
79\-f flag in the
b5a9a6fd 80\fBK\fP
1b15d3af
EA
81line in sendmail.cf.
82The value is not case folded.
b5a9a6fd 83.It Fl o
c1000245
EA
84Append to an old file.
85This allows you to augment an existing file.
b5a9a6fd 86.It Fl r
c1000245
EA
87Allow replacement of existing keys.
88Normally
b5a9a6fd 89.Nm
c1000245
EA
90complains if you repeat a key,
91and does not do the insert.
b5a9a6fd 92.It Fl v
c1000245 93Verbosely print what it is doing.
b5a9a6fd
EA
94.El
95.Sh SEE ALSO
96.Xr sendmail 8
97.Sh HISTORY
98The
99.Nm
100command appeared in
101.Bx 4.4 .