source: trunk/third/sendmail/makemap/makemap.8 @ 19208

Revision 19208, 3.4 KB checked in by zacheiss, 22 years ago (diff)
Merge with sendmail 8.12.9.
Line 
1.\" Dummy comment to avoid confusing man
2.so /usr/athena/share/tmac/tmac.doc
3.\" Copyright (c) 1998-2001 Sendmail, Inc. and its suppliers.
4.\"      All rights reserved.
5.\" Copyright (c) 1988, 1991, 1993
6.\"     The Regents of the University of California.  All rights reserved.
7.\"
8.\" By using this file, you agree to the terms and conditions set
9.\" forth in the LICENSE file which can be found at the top level of
10.\" the sendmail distribution.
11.\"
12.\"
13.\"     $Id: makemap.8,v 1.3 2003-04-08 15:42:15 zacheiss Exp $
14.\"
15.TH MAKEMAP 8 "$Date: 2003-04-08 15:42:15 $"
16.SH NAME
17makemap
18\- create database maps for sendmail
19.SH SYNOPSIS
20.B makemap
21.RB [ \-C
22.IR file ]
23.RB [ \-N ]
24.RB [ \-c
25.IR cachesize ]
26.RB [ \-d ]
27.RB [ \-e ]
28.RB [ \-f ]
29.RB [ \-l ]
30.RB [ \-o ]
31.RB [ \-r ]
32.RB [ \-s ]
33.RB [ \-t
34.IR delim ]
35.RB [ \-u ]
36.RB [ \-v ]
37.I
38maptype mapnam
39.SH DESCRIPTION
40.B Makemap
41creates the database maps used by the keyed map lookups in
42sendmail(8). 
43It reads input from the standard input
44and outputs them to the indicated
45.I mapname.
46.PP
47Depending on how it is compiled,
48.B makemap
49handles up to three different database formats,
50selected using the
51.I maptype
52parameter. 
53They may be
54.TP
55dbm
56DBM format maps. 
57This requires the
58ndbm(3)
59library.
60.TP
61btree
62B-Tree format maps. 
63This requires the new Berkeley DB
64library.
65.TP
66hash
67Hash format maps. 
68This also requires the Berkeley DB
69library.
70.PP
71In all cases,
72.B makemap
73reads lines from the standard input consisting of two
74words separated by white space. 
75The first is the database key,
76the second is the value. 
77The value may contain
78``%\fIn\fP''
79strings to indicate parameter substitution. 
80Literal percents should be doubled
81(``%%'').
82Blank lines and lines beginning with ``#'' are ignored.
83.PP
84Notice: do
85.B not
86use
87.B makemap
88to create the aliases data base, but
89.B newaliases
90which puts a special token into the data base that is required by
91.B sendmail.
92.PP
93If the
94.I TrustedUser
95option is set in the sendmail configuration file and
96.B makemap
97is invoked as root, the generated files will be owned by
98the specified
99.IR TrustedUser.
100.SS Flags
101.TP 
102.B \-C
103Use the specified
104.B sendmail
105configuration file for looking up the TrustedUser option.
106.TP
107.B \-N
108Include the null byte that terminates strings
109in the map. 
110This must match the \-N flag in the sendmail.cf
111``K'' line.
112.TP
113.B \-c
114Use the specified hash and B-Tree cache size.
115.TP
116.B \-d
117Allow duplicate keys in the map. 
118This is only allowed on B-Tree format maps. 
119If two identical keys are read,
120they will both be inserted into the map.
121.TP
122.B \-e
123Allow empty value (right hand side).
124.TP
125.B \-f
126Normally all upper case letters in the key
127are folded to lower case. 
128This flag disables that behaviour. 
129This is intended to mesh with the
130\-f flag in the
131.B K
132line in sendmail.cf. 
133The value is never case folded.
134.TP
135.B \-l
136List supported map types.
137.TP
138.B \-o
139Append to an old file. 
140This allows you to augment an existing file.
141.TP
142.B \-r
143Allow replacement of existing keys. 
144Normally
145.B makemap
146complains if you repeat a key,
147and does not do the insert.
148.TP
149.B \-s
150Ignore safety checks on maps being created. 
151This includes checking for hard or symbolic
152links in world writable directories.
153.TP
154.B \-t
155Use the specified delimiter instead of white space.
156.TP
157.B \-u
158dump (unmap) the content of the database to standard output.
159.TP
160.B \-v
161Verbosely print what it is doing.
162.SH SEE ALSO
163sendmail(8), newaliases(1)
164.SH HISTORY
165The
166.B makemap
167command appeared in
1684.4BSD.
Note: See TracBrowser for help on using the repository browser.