1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
[4mEDITMAP[24m(8) System Manager's Manual [4mEDITMAP[24m(8)
[1mNAME[0m
[1meditmap [22m- query and edit single records in database maps for sendmail
[1mSYNOPSIS[0m
[1meditmap [22m[[1m-C [4m[22mfile[24m] [[1m-N[22m] [[1m-f[22m] [[1m-q|-u|-x[22m] maptype mapname key [ "value
..." ]
[1mDESCRIPTION[0m
[1mEditmap [22mqueries or edits one record in database maps used by the keyed
map lookups in sendmail(8). Arguments are passed on the command line
and output (for queries) is directed to standard output.
Depending on how it is compiled, [1meditmap [22mhandles different database
formats, selected using the [4mmaptype[24m parameter. They may be
dbm DBM format maps. This requires the ndbm(3) library.
btree B-Tree format maps. This requires the new Berkeley DB library.
hash Hash format maps. This also requires the Berkeley DB library.
cdb CDB (Constant DataBase) format maps. This requires the tinycdb
library.
If the [4mTrustedUser[24m option is set in the sendmail configuration file and
[1meditmap [22mis invoked as root, the generated files will be owned by the
specified [4mTrustedUser.[0m
[1mFlags[0m
[1m-C [22mUse the specified [1msendmail [22mconfiguration file for looking up the
TrustedUser option.
[1m-N [22mInclude the null byte that terminates strings in the map (for
alias maps).
[1m-f [22mNormally all upper case letters in the key are folded to lower
case. This flag disables that behaviour. This is intended to
mesh with the -f flag in the [1mK [22mline in sendmail.cf. The value
is never case folded.
[1m-q [22mQuery the map for the specified key. If found, print value to
standard output and exit with 0. If not found then print an er-
ror message to stdout and exit with EX_UNAVAILABLE.
[1m-u [22mUpdate the record for [4mkey[24m with [4mvalue[24m or inserts a new record if
one doesn't exist. Exits with 0 on success or EX_IOERR on fail-
ure.
[1m-x [22mDeletes the specific key from the map. Exits with 0 on success
or EX_IOERR on failure.
[1mSEE ALSO[0m
sendmail(8), makemap(8)
[1mHISTORY[0m
The [1meditmap [22mcommand has no history.
$Date: 2013-11-22 20:51:26 $ [4mEDITMAP[24m(8)
|