makemap(1M)makemap(1M)NAMEmakemap - creates database maps for sendmail
SYNOPSIS
file] maptype mapname
DESCRIPTION
creates the database maps used by the keyed map lookups in send‐
mail(1M). It reads input from the standard input and outputs them to
the indicated mapname.
handles up to three different database formats, selected using the map‐
type parameter. They may be:
DBM format maps. (.pag,.dir)
B-Tree format maps. (.db)
Hash format maps. (.db)
In all cases, 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 strings to indicated param‐
eter substitution. Literal parentheses should be doubled Blank lines
and lines beginning with pound sign are ignored.
Flags
Use the specified
configuration file to look up the option.
Include the null byte that terminates strings
in the map. This must match the flag in the line.
Allow duplicate keys in the map.
This is only allowed on B-Tree format maps. If two identical
keys are read, they will both be inserted into the map.
Allow empty value (right hand side).
Normally all upper case letters in the key
are folded to lower case. This flag disables that behaviour.
This is intended to mesh with the flag in the line in The value
is never case folded.
Create NIS compatible alias database.
Append to an old file.
This allows you to augment an existing file.
Allow replacement of existing keys.
Normally complains if you repeat a key, and does not do the
insert.
Ignore safety checks on maps being created. This
includes checking for hard or symbolic links in world writable
directories.
Dump (unmap) the content of the database to standard output.
Verbosely print what it is doing.
SEE ALSOsendmail(1M).
HISTORY
The command appeared in 4.4BSD.
makemap(1M)