1 MAKEMAP(1M) Maintenance Commands MAKEMAP(1M)
2
3
4
5 NAME
6 makemap - create database maps for sendmail
7
8 SYNOPSIS
9 makemap [-N] [-d] [-f] [-o] [-r] [-s] [-v] [-C file]
10 [-c cachesize] [-D commentchar] [-e] [-l] [-t delim]
11 [-u] mantype mapname
12
13
14 DESCRIPTION
15 makemap creates the database maps used by the keyed map lookups in
16 sendmail(1M). makemap reads from the standard input and outputs to the
17 specified mapname.
18
19
20 In all cases, makemap reads lines from the standard input consisting of
21 two words separated by whitespace. The first is the database key, the
22 second is the value. The value may contain %n strings to indicated
23 parameter substitution. Literal percents should be doubled (%%). Blank
24 lines and lines beginning with # are ignored.
25
26
27 makemap handles three different database formats. Database format is
28 selected using the maptype parameter. See OPERANDS.
29
30 OPTIONS
31 The following options are supported:
32
33 -c cachesize
34 Use the specified hash and B-Tree cache size
35 (cachesize).
36
37
38 -C file
39 Use the specified sendmail configuration file (file)
40 for looking up the TrustedUser option.
41
42
43 -d
44 Allow duplicate keys in the map. This is only allowed
45 on B-Tree format maps. If two identical keys are
46 read, both be inserted into the map.
47
48
49 -D commentchar
50 Use the specified character to indicate a comment
51 (which is ignored) instead of the default of '#'.
52
53
54 -e
55 Allow empty value (right hand side).
56
57
58 -f
59 Normally, all upper case letters in the key are
60 folded to lower case. This flag disables that
61 behavior. This is intended to mesh with the -f flag
62 in the K line in sendmail.cf. The value is never case
63 folded.
64
65
66 -l
67 List supported map types.
68
69
70 -N
71 Include the null byte that terminates strings in the
72 map. This must match the -N flag in the K line in
73 sendmail.cf
74
75
76 -o
77 Append to an old file. This allows you to augment an
78 existing file.
79
80
81 -r
82 Allow replacement of existing keys. Normally makemap
83 complains if you repeat a key, and does not do the
84 insert.
85
86
87 -s
88 Ignore safety checks on maps being created. This
89 includes checking for hard or symbolic links in world
90 writable directories.
91
92
93 -t delim
94 Use the specified delimiter (delim) instead of
95 whitespace.
96
97
98 -u
99 Dump (unmap) the content of the database to standard
100 output. Note that, if the -t option is also provided,
101 the specified delimiter is used when the content is
102 dumped instead of whitespace.
103
104
105 -v
106 Verbosely print what it is doing.
107
108
109 OPERANDS
110 The following operands are supported:
111
112 mapname
113 File name of the database map being created.
114
115
116 maptype
117 Specifies the database format. The following maptype
118 parameters are available:
119
120 dbm
121 Specifies DBM format maps.
122
123
124 btree
125 Specifies B-Tree format maps.
126
127
128 hash
129 Specifies hash format maps.
130
131
132
133 SEE ALSO
134 editmap(1M), sendmail(1M), attributes(5)
135
136
137
138 April 22, 2008 MAKEMAP(1M)
|
1 MAKEMAP(1M) Maintenance Commands MAKEMAP(1M)
2
3
4
5 NAME
6 makemap - create database maps for sendmail
7
8 SYNOPSIS
9 makemap [-N] [-d] [-f] [-o] [-r] [-s] [-v] [-C file]
10 [-c cachesize] [-D commentchar] [-e] [-l] [-t delim]
11 [-u] maptype mapname
12
13
14 DESCRIPTION
15 makemap creates the database maps used by the keyed map lookups in
16 sendmail(1M). makemap reads from the standard input and outputs to the
17 specified mapname.
18
19
20 In all cases, makemap reads lines from the standard input consisting of
21 two words separated by whitespace. The first is the database key, the
22 second is the value. The value may contain %n strings to indicate
23 parameter substitution. Literal percents should be doubled (%%). Blank
24 lines and lines beginning with # are ignored.
25
26
27 Depending on how it is compiled, makemap handles up to three different
28 database formats, selected using the maptype parameter. See OPERANDS.
29
30 OPTIONS
31 The following options are supported:
32
33 -c cachesize
34 Use the specified hash and B-Tree cache size
35 (cachesize).
36
37
38 -C file
39 Use the specified sendmail configuration file (file)
40 for looking up the TrustedUser option.
41
42
43 -d
44 Allow duplicate keys in the map. This is only allowed
45 on B-Tree format maps. If two identical keys are
46 read, both are inserted into the map.
47
48
49 -D commentchar
50 Use the specified character to indicate a comment
51 (which is ignored) instead of the default of '#'.
52
53
54 -e
55 Allow empty value (right hand side).
56
57
58 -f
59 Normally, all upper case letters in the key are
60 folded to lower case. This flag disables that
61 behavior. This is intended to mesh with the -f flag
62 in the K line in sendmail.cf. The value is never case
63 folded.
64
65
66 -l
67 List supported map types.
68
69
70 -N
71 Include the null byte that terminates strings in the
72 map. This must match the -N flag in the K line in
73 sendmail.cf.
74
75
76 -o
77 Append to an old file. This allows you to augment an
78 existing file.
79
80
81 -r
82 Allow replacement of existing keys. Normally makemap
83 complains if you repeat a key, and does not do the
84 insert.
85
86
87 -s
88 Ignore safety checks on maps being created. This
89 includes checking for hard or symbolic links in world
90 writable directories.
91
92
93 -t delim
94 Use the specified delimiter (delim) instead of
95 whitespace.
96
97
98 -u
99 Dump (unmap) the content of the database to standard
100 output. Note that, if the -t option is also provided,
101 the specified delimiter is used when the content is
102 dumped instead of whitespace.
103
104
105 -v
106 Verbosely print keys and values being added.
107
108
109 OPERANDS
110 The following operands are supported:
111
112 mapname
113 File name of the database map being created.
114
115
116 maptype
117 Specifies the database format. The following maptype
118 parameters are available:
119
120 dbm
121 Specifies DBM format maps.
122
123
124 btree
125 Specifies B-Tree format maps.
126
127
128 hash
129 Specifies hash format maps.
130
131
132
133 SEE ALSO
134 editmap(1M), sendmail(1M), attributes(5)
135
136
137
138 January 21, 2019 MAKEMAP(1M)
|