Makemap creates the database maps used by the keyed map lookups in
sendmail(8).
It reads input from the standard input
and outputs them to the indicated
mapname.
Depending on how it is compiled,
makemap handles different database formats,
selected using the
maptype parameter.
They may be
dbm
|
DBM format maps.
This requires the
ndbm(3)
library.
|
btree
|
B-Tree format maps.
This requires the new Berkeley DB
library.
|
hash
|
Hash format maps.
This also requires the Berkeley DB
library.
|
cdb
|
CDB (Constant DataBase) format maps.
This requires the tinycdb library.
|
implicit
|
|
The first available format in the following order:
hash, dbm, and cdb.
|
In all cases,
makemap reads lines from the standard input consisting of two
words separated by white space.
The first is the database key,
the second is the value.
The value may contain
``%
n''
strings to indicate parameter substitution.
Literal percents should be doubled
(``%%'').
Blank lines and lines beginning with ``#'' are ignored.
Notice: do
not use
makemap to create the aliases data base, but
newaliases which puts a special token into the data base that is required by
sendmail.
If the
TrustedUser option is set in the sendmail configuration file and
makemap is invoked as root, the generated files will be owned by
the specified
TrustedUser.