1makemap(1M)             System Administration Commands             makemap(1M)
2
3
4

NAME

6       makemap - create database maps for sendmail
7

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

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

OPTIONS

31       The following options are supported:
32
33       -c cachesize      Use the specified hash and B-Tree cache size  (cache‐
34                         size).
35
36
37       -C file           Use  the specified sendmail configuration file (file)
38                         for looking up the TrustedUser option.
39
40
41       -d                Allow duplicate keys in the map. This is only allowed
42                         on  B-Tree  format  maps.  If  two identical keys are
43                         read, both be inserted into the map.
44
45
46       -D commentchar    Use the specified character  to  indicate  a  comment
47                         (which is ignored) instead of the default of '#'.
48
49
50       -e                Allow empty value (right hand side).
51
52
53       -f                Normally,  all  upper  case  letters  in  the key are
54                         folded to lower case. This flag disables that  behav‐
55                         ior. This is intended to mesh with the -f flag in the
56                         K line  in  sendmail.cf.  The  value  is  never  case
57                         folded.
58
59
60       -l                List supported map types.
61
62
63       -N                Include  the null byte that terminates strings in the
64                         map. This must match the -N flag in  the  K  line  in
65                         sendmail.cf
66
67
68       -o                Append  to an old file. This allows you to augment an
69                         existing file.
70
71
72       -r                Allow replacement of existing keys. Normally  makemap
73                         complains  if  you  repeat a key, and does not do the
74                         insert.
75
76
77       -s                Ignore safety checks  on  maps  being  created.  This
78                         includes checking for hard or symbolic links in world
79                         writable directories.
80
81
82       -t delim          Use the specified delimiter (delim) instead of white‐
83                         space.
84
85
86       -u                Dump  (unmap) the content of the database to standard
87                         output. Note that, if the -t option is also provided,
88                         the  specified  delimiter is used when the content is
89                         dumped instead of whitespace.
90
91
92       -v                Verbosely print what it is doing.
93
94

OPERANDS

96       The following operands are supported:
97
98       mapname    File name of the database map being created.
99
100
101       maptype    Specifies the database format. The following maptype parame‐
102                  ters are available:
103
104                  dbm      Specifies DBM format maps.
105
106
107                  btree    Specifies B-Tree format maps.
108
109
110                  hash     Specifies hash format maps.
111
112
113

ATTRIBUTES

115       See attributes(5) for descriptions of the following attributes:
116
117
118
119
120       ┌─────────────────────────────┬─────────────────────────────┐
121       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
122       ├─────────────────────────────┼─────────────────────────────┤
123       │Availability                 │SUNWsndmu                    │
124       └─────────────────────────────┴─────────────────────────────┘
125

SEE ALSO

127       editmap(1M), sendmail(1M), attributes(5)
128
129
130
131SunOS 5.11                        22 Apr 2008                      makemap(1M)
Impressum