editmap Command-Line Switches

The command-line switches for editmap precede the dbtype:

% editmap -q switches dbtype dbfile key
% editmap -x switches dbtype dbfile key
% editmap -u switches dbtype dbfile key new_value

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

-N -f      ← good
-Nf        ← also good

The complete list of switches is shown in Table 10-3. (See getopt(3) for additional information about the way switches are handled.) In the sections that follow, we describe each switch in detail.

Table 10-3. editmap program’s switches

Switch

§

Description

-C

-C on page 356

Use an alternative sendmail configuration file.

-f

-f on page 356

Don’t fold uppercase to lowercase.

-N

-N on page 356

Append a null byte to all keys.

-q

-q on page 357

Query for specified key.

-u

-u on page 357

Update the key with a new value.

-v

 

Run in verbose mode (a no-op as of V8.12.5).

-x

-x on page 358

Delete key from database.

-C

Use an alternative sendmail configuration file editmap command-line switch

If the TrustedUser option (TrustedUser on page 1112) is set in the sendmail configuration file, and if editmap was compiled with HASFCHOWN defined as 1, and if editmap is run by root, the output file will become owned by the user specified in the TrustedUser option. The editmap program finds the TrustedUser option by reading and parsing the sendmail program’s configuration file (normally /etc/mail/sendmail.cf). But if you want editmap to use a different ...

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.