1MAKEMAP(8)                  System Manager's Manual                 MAKEMAP(8)
2
3
4

NAME

6       makemap - create database maps for sendmail
7

SYNOPSIS

9       makemap  [-C  file] [-N] [-c cachesize] [-d] [-D commentchar] [-e] [-f]
10       [-l] [-o] [-r] [-s] [-t delim] [-u] [-v] maptype mapnam
11

DESCRIPTION

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  different  database
18       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       cdb    CDB  (Constant DataBase) format maps.  This requires the tinycdb
25              library.
26
27       implicit
28              The first available format in the following  order:  hash,  dbm,
29              and cdb.
30
31       In all cases, makemap reads lines from the standard input consisting of
32       two words separated by white space.  The first is the database key, the
33       second  is the value.  The value may contain ``%n'' strings to indicate
34       parameter substitution.  Literal percents should be  doubled  (``%%'').
35       Blank lines and lines beginning with ``#'' are ignored.
36
37       Notice:  do  not  use  makemap  to  create  the  aliases data base, but
38       newaliases which puts a special  token  into  the  data  base  that  is
39       required by sendmail.
40
41       If the TrustedUser option is set in the sendmail configuration file and
42       makemap is invoked as root, the generated files will be  owned  by  the
43       specified TrustedUser.
44
45   Flags
46       -C     Use the specified sendmail configuration file for looking up the
47              TrustedUser option.
48
49       -N     Include the null byte that terminates strings in the map.   This
50              must match the -N flag in the sendmail.cf ``K'' line.
51
52       -c     Use the specified hash and B-Tree cache size.
53
54       -D     Use to specify the character to use to indicate a comment (which
55              is ignored) instead of the default of '#'.
56
57       -d     Allow duplicate keys in the map.  This is only allowed on B-Tree
58              format  maps.  If two identical keys are read, they will both be
59              inserted into the map.
60
61       -e     Allow empty value (right hand side).
62
63       -f     Normally all upper case letters in the key are folded  to  lower
64              case.   This  flag disables that behaviour.  This is intended to
65              mesh with the -f flag in the K line in sendmail.cf.   The  value
66              is never case folded.
67
68       -l     List supported map types.
69
70       -o     Append  to  an old file.  This allows you to augment an existing
71              file.  Note: this might not be supported by all database  types,
72              e.g., cdb.
73
74       -r     Allow  replacement of existing keys.  Normally makemap complains
75              if you repeat a key, and does not do the insert.
76
77       -s     Ignore safety checks  on  maps  being  created.   This  includes
78              checking  for  hard or symbolic links in world writable directo‐
79              ries.
80
81       -t     Use the specified delimiter instead of  white  space  (also  for
82              dumping a map).
83
84       -u     dump (unmap) the content of the database to standard output.
85
86       -v     Verbosely print what it is doing.
87

Example

89       makemap hash /etc/mail/access < /etc/mail/access
90

SEE ALSO

92       sendmail(8), newaliases(1)
93

HISTORY

95       The makemap command appeared in 4.4BSD.
96
97
98
99                         $Date: 2013-11-22 20:51:52 $               MAKEMAP(8)
Impressum