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