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 |
---|
17 | makemap |
---|
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 |
---|
38 | maptype mapnam |
---|
39 | .SH DESCRIPTION |
---|
40 | .B Makemap |
---|
41 | creates the database maps used by the keyed map lookups in |
---|
42 | sendmail(8). |
---|
43 | It reads input from the standard input |
---|
44 | and outputs them to the indicated |
---|
45 | .I mapname. |
---|
46 | .PP |
---|
47 | Depending on how it is compiled, |
---|
48 | .B makemap |
---|
49 | handles up to three different database formats, |
---|
50 | selected using the |
---|
51 | .I maptype |
---|
52 | parameter. |
---|
53 | They may be |
---|
54 | .TP |
---|
55 | dbm |
---|
56 | DBM format maps. |
---|
57 | This requires the |
---|
58 | ndbm(3) |
---|
59 | library. |
---|
60 | .TP |
---|
61 | btree |
---|
62 | B-Tree format maps. |
---|
63 | This requires the new Berkeley DB |
---|
64 | library. |
---|
65 | .TP |
---|
66 | hash |
---|
67 | Hash format maps. |
---|
68 | This also requires the Berkeley DB |
---|
69 | library. |
---|
70 | .PP |
---|
71 | In all cases, |
---|
72 | .B makemap |
---|
73 | reads lines from the standard input consisting of two |
---|
74 | words separated by white space. |
---|
75 | The first is the database key, |
---|
76 | the second is the value. |
---|
77 | The value may contain |
---|
78 | ``%\fIn\fP'' |
---|
79 | strings to indicate parameter substitution. |
---|
80 | Literal percents should be doubled |
---|
81 | (``%%''). |
---|
82 | Blank lines and lines beginning with ``#'' are ignored. |
---|
83 | .PP |
---|
84 | Notice: do |
---|
85 | .B not |
---|
86 | use |
---|
87 | .B makemap |
---|
88 | to create the aliases data base, but |
---|
89 | .B newaliases |
---|
90 | which puts a special token into the data base that is required by |
---|
91 | .B sendmail. |
---|
92 | .PP |
---|
93 | If the |
---|
94 | .I TrustedUser |
---|
95 | option is set in the sendmail configuration file and |
---|
96 | .B makemap |
---|
97 | is invoked as root, the generated files will be owned by |
---|
98 | the specified |
---|
99 | .IR TrustedUser. |
---|
100 | .SS Flags |
---|
101 | .TP |
---|
102 | .B \-C |
---|
103 | Use the specified |
---|
104 | .B sendmail |
---|
105 | configuration file for looking up the TrustedUser option. |
---|
106 | .TP |
---|
107 | .B \-N |
---|
108 | Include the null byte that terminates strings |
---|
109 | in the map. |
---|
110 | This must match the \-N flag in the sendmail.cf |
---|
111 | ``K'' line. |
---|
112 | .TP |
---|
113 | .B \-c |
---|
114 | Use the specified hash and B-Tree cache size. |
---|
115 | .TP |
---|
116 | .B \-d |
---|
117 | Allow duplicate keys in the map. |
---|
118 | This is only allowed on B-Tree format maps. |
---|
119 | If two identical keys are read, |
---|
120 | they will both be inserted into the map. |
---|
121 | .TP |
---|
122 | .B \-e |
---|
123 | Allow empty value (right hand side). |
---|
124 | .TP |
---|
125 | .B \-f |
---|
126 | Normally all upper case letters in the key |
---|
127 | are folded to lower case. |
---|
128 | This flag disables that behaviour. |
---|
129 | This is intended to mesh with the |
---|
130 | \-f flag in the |
---|
131 | .B K |
---|
132 | line in sendmail.cf. |
---|
133 | The value is never case folded. |
---|
134 | .TP |
---|
135 | .B \-l |
---|
136 | List supported map types. |
---|
137 | .TP |
---|
138 | .B \-o |
---|
139 | Append to an old file. |
---|
140 | This allows you to augment an existing file. |
---|
141 | .TP |
---|
142 | .B \-r |
---|
143 | Allow replacement of existing keys. |
---|
144 | Normally |
---|
145 | .B makemap |
---|
146 | complains if you repeat a key, |
---|
147 | and does not do the insert. |
---|
148 | .TP |
---|
149 | .B \-s |
---|
150 | Ignore safety checks on maps being created. |
---|
151 | This includes checking for hard or symbolic |
---|
152 | links in world writable directories. |
---|
153 | .TP |
---|
154 | .B \-t |
---|
155 | Use the specified delimiter instead of white space. |
---|
156 | .TP |
---|
157 | .B \-u |
---|
158 | dump (unmap) the content of the database to standard output. |
---|
159 | .TP |
---|
160 | .B \-v |
---|
161 | Verbosely print what it is doing. |
---|
162 | .SH SEE ALSO |
---|
163 | sendmail(8), newaliases(1) |
---|
164 | .SH HISTORY |
---|
165 | The |
---|
166 | .B makemap |
---|
167 | command appeared in |
---|
168 | 4.4BSD. |
---|