1editmap(1M) System Administration Commands editmap(1M)
2
3
4
6 editmap - query and edit single records in database maps for sendmail
7
9 editmap -C file [-N] [-f] [-q | -u | -x] maptype mapname key
10 ["value"]...
11
12
14 The editmap command queries or edits one record in a database maps used
15 by the keyed map lookups in sendmail(1M). Arguments are passed on the
16 command line and output (for queries) is directed to standard output.
17
18
19 Depending on how it is compiled, editmap handles up to three different
20 database formats, selected using the maptype parameter. See OPERANDS.
21
22
23 If the TrustedUser option is set in the sendmail configuration file
24 and editmap is invoked as root, the generated files are owned by the
25 specified TrustedUser.
26
28 The following options are supported:
29
30 -C file Use the specified sendmail configuration file (file) to look
31 up the TrustedUser option.
32
33
34 -f Disable the folding of all upper case letters in the key to
35 lower case. Normally, all upper case letters in the key are
36 folded to upper case. This is intended to mesh with the -f
37 flag in the K line in sendmail.cf. The value is never case
38 folded.
39
40
41 -N Include the null byte that terminates strings in the map
42 (for alias maps).
43
44
45 -q Query the map for the specified key. If found, print value
46 to standard output and exit with 0. If not found then print
47 an error message to stdout and exit with EX_UNAVAILABLE.
48
49
50 -u Update the record for key with value or inserts a new record
51 if one doesn't exist. Exits with 0 on success or EX_IOERR on
52 failure.
53
54
55 -x Delete the specific key from the map. Exit with 0 on suc‐
56 cess or EX_IOERR on failure.
57
58
60 The following operands are supported:
61
62 key The left hand side of a record.
63
64 Each record is of the form:
65
66 key value
67
68
69 key and value are separated by white space.
70
71
72 mapname File name of the database map being created.
73
74
75 maptype Specifies the database format. The following maptype param‐
76 eters are available:
77
78 dbm Specifies DBM format maps.
79
80
81 btree Specifies B-Tree format maps.
82
83
84 hash Specifies hash format maps.
85
86
87
88 value The right hand side of a record.
89
90 Each record is of the form:
91
92 key value
93
94
95 key and value are separated by white space.
96
97
99 See attributes(5) for descriptions of the following attributes:
100
101
102
103
104 ┌─────────────────────────────┬─────────────────────────────┐
105 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
106 ├─────────────────────────────┼─────────────────────────────┤
107 │Availability │SUNWsndmu │
108 └─────────────────────────────┴─────────────────────────────┘
109
111 makemap(1M), sendmail(1M), attributes(5)
112
113
114
115SunOS 5.11 14 Sep 2001 editmap(1M)