1MAKEMAP(8) System Manager's Manual MAKEMAP(8)
2
3
4
6 makemap - create database maps for sendmail
7
9 makemap [-C file] [-N] [-c cachesize] [-d] [-D commentchar] [-e] [-f]
10 [-l] [-o] [-r] [-s] [-t delim] [-u] [-v] maptype mapnam
11
13 Makemap creates the database maps used by the keyed map lookups in
14 sendmail(8). It reads input from the standard input and outputs them
15 to the indicated mapname.
16
17 Depending on how it is compiled, makemap handles up to three different
18 database formats, selected using the maptype parameter. They may be
19
20 btree B-Tree format maps. This requires the new Berkeley DB library.
21
22 hash Hash format maps. This also requires the Berkeley DB library.
23
24 In all cases, makemap reads lines from the standard input consisting of
25 two words separated by white space. The first is the database key, the
26 second is the value. The value may contain ``%n'' strings to indicate
27 parameter substitution. Literal percents should be doubled (``%%'').
28 Blank lines and lines beginning with ``#'' are ignored.
29
30 Notice: do not use makemap to create the aliases data base, but
31 newaliases which puts a special token into the data base that is
32 required by sendmail.
33
34 If the TrustedUser option is set in the sendmail configuration file and
35 makemap is invoked as root, the generated files will be owned by the
36 specified TrustedUser.
37
38 Flags
39 -C Use the specified sendmail configuration file for looking up the
40 TrustedUser option.
41
42 -N Include the null byte that terminates strings in the map. This
43 must match the -N flag in the sendmail.cf ``K'' line.
44
45 -c Use the specified hash and B-Tree cache size.
46
47 -D Use to specify the character to use to indicate a comment (which
48 is ignored) instead of the default of '#'.
49
50 -d Allow duplicate keys in the map. This is only allowed on B-Tree
51 format maps. If two identical keys are read, they will both be
52 inserted into the map.
53
54 -e Allow empty value (right hand side).
55
56 -f Normally all upper case letters in the key are folded to lower
57 case. This flag disables that behaviour. This is intended to
58 mesh with the -f flag in the K line in sendmail.cf. The value
59 is never case folded.
60
61 -l List supported map types.
62
63 -o Append to an old file. This allows you to augment an existing
64 file.
65
66 -r Allow replacement of existing keys. Normally makemap complains
67 if you repeat a key, and does not do the insert.
68
69 -s Ignore safety checks on maps being created. This includes
70 checking for hard or symbolic links in world writable directo‐
71 ries.
72
73 -t Use the specified delimiter instead of white space (also for
74 dumping a map).
75
76 -u dump (unmap) the content of the database to standard output.
77
78 -v Verbosely print what it is doing.
79
81 sendmail(8), newaliases(1)
82
84 The makemap command appeared in 4.4BSD.
85
86
87
88 $Date: 2013-11-22 20:51:52 $ MAKEMAP(8)