Commit | Line | Data |
---|---|---|
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 | |
11 | makemap \- 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 | ] | |
25 | maptype mapname | |
26 | .SH DESCRIPTION | |
27 | .I Makemap | |
28 | creates the database maps used by the keyed map lookups in | |
29 | .IR sendmail (8). | |
30 | It reads input from the standard input | |
31 | and outputs them to the indicated | |
32 | .IR mapname . | |
33 | .PP | |
34 | Depending on how it is compiled, | |
35 | .I makemap | |
36 | handles up to three different database formats, | |
37 | selected using the | |
38 | .I maptype | |
39 | parameter. | |
40 | They may be | |
41 | .IP dbm | |
42 | DBM format maps. | |
43 | This requires the | |
44 | .IR ndbm (3) | |
45 | library. | |
46 | .IP btree | |
47 | B-Tree format maps. | |
48 | This requires the new Berkeley | |
49 | .IR db (3) | |
50 | library. | |
51 | .IP hash | |
52 | Hash format maps. | |
53 | This also requires the | |
54 | .IR db (3) | |
55 | library. | |
56 | .PP | |
57 | In all cases, | |
58 | .I makemap | |
59 | reads lines from the standard input consisting of two | |
60 | words separated by white space. | |
61 | The first is the database key, | |
62 | the second is the value. | |
63 | The value may contain | |
64 | ``%\fIn\fP'' | |
65 | strings to indicated parameter substitution. | |
66 | Literal parentheses should be doubled | |
67 | (``%%''). | |
68 | Blank lines and lines beginning with ``#'' are ignored. | |
69 | .SH FLAGS | |
70 | .IP \-N | |
71 | Include the null byte that terminates strings | |
72 | in the map. | |
73 | This must match the \-N flag in the sendmail.cf | |
74 | ``K'' line. | |
1b15d3af EA |
75 | .IP \-f |
76 | Fold all upper case letters in the key | |
77 | to lower case; | |
78 | this is intended to mesh with the | |
79 | \-f flag in the | |
80 | .B K | |
81 | line in sendmail.cf. | |
82 | The value is not case folded. | |
c1000245 EA |
83 | .IP \-o |
84 | Append to an old file. | |
85 | This allows you to augment an existing file. | |
86 | .IP \-r | |
87 | Allow replacement of existing keys. | |
88 | Normally | |
89 | .I makemap | |
90 | complains if you repeat a key, | |
91 | and does not do the insert. | |
92 | .IP \-v | |
93 | Verbosely print what it is doing. | |
94 | .SH SEE ALSO | |
95 | sendmail(8) |