[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 3

makemap Command

Purpose

Creates database maps for sendmail.

Syntax

makemap [ -C -N -c CacheSize -d -e -f -l -o -r -s -u -v] Maptype Mapname

Description

The makemap command creates the database maps used by the keyed map lookups in the sendmail command. It reads input from the standard input and outputs them to the indicated Mapname.

Parameters

Maptype Depending upon how it is compiled, this command handles up to three different database formats:
dbm
DBM format maps. This requires the ndbm library.
btree
B-tree format maps. This requires the new Berkeley DB library.
hash
Hash format maps. This requires the new Berkeley DB library.

Note: In all cases, this command 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 a "#" are ignored.
Mapname Name of the map.

Flags

-c CacheSize Specifies to use the hash and B-tree cache size.
-C Indicates to use the specified sendmail configuration file for looking up the TrustedUser option.
-d Allows duplicate keys in the map. This is only allowed on B-Tree format maps. If two identical keys are read, they are both inserted into the map.
-e Allows empty values, right hand side.
-f Disables the function of folding all upper case letters in the key to lowercase. This is intended to mesh with the -f flag in the K line in the sendmail.cf file. The value is never case folded.
-l Lists supported map types.
-N Includes the Null byte that terminates strings in the map. This must match the -N flag in the sendmail.cf "K" line.
-o Specifies to append to an existing file. This allows you to augment an existing file.
-r Allows replacement of existing keys. Normally, the makemap command complains if you repeat a key and does not perform the insert.
-s Iignores safety checks on maps being created. This includes checking for hard or symbolic links in world writeable directories.
-u Dumps, unmaps, the contents of the database to standard output.
-v Specifies that the command verbosely print its status.

Related Information

The sendmail command.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]