makemap Command-Line Switches

The command-line switches for makemap must precede the dbtype and the outfile:

makemap switches dbtype outfile

Switches are single characters, prefixed with a - character. Switches can also be combined:

-N -o      ← good
-No        ← also good

The complete list of switches is shown in Table 10-6. (See getopt(3) for additional information about the way switches are handled.)

Table 10-6. makemap program’s switches

Switch

§

Description

-c

-c on page 372

Set the cache size for hash and btree.

-C

-C on page 372

Use an alternative sendmail configuration file.

-d

-d on page 372

Allow duplicate keys in database.

-D

-D on page 373

Define alternative to # as comment character (V8.13 and above).

-e

-e on page 373

Allow empty data for keys.

-f

-f on page 374

Don’t fold uppercase to lowercase.

-l

-l (lowercase L) on page 374

List database types supported.

-N

-N on page 374

Append a null byte to all keys.

-o

-o on page 374

Append to, don’t overwrite the file.

-r

-r on page 374

Replace (silently) duplicate keys.

-s

-s on page 375

Skip security checks.

-t

-t on page 375

Specify an alternative to whitespace for a delimiter.

-u

-u on page 376

Unmake (dump) the contents of a database.

-v

-v on page 376

Watch keys and data being added.

In the following sections, we describe each switch in detail.

-c

Set the cache size for hash and btree makemap command-line switch

The -c switch instructs makemap to set the cache size for hash or btree databases ...

Get sendmail, 4th Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.