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 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
|
[4mMAKEMAP[24m(8) System Manager's Manual [4mMAKEMAP[24m(8)
[1mNAME[0m
makemap - create database maps for sendmail
[1mSYNOPSIS[0m
[1mmakemap [22m[[1m-C [4m[22mfile[24m] [[1m-N[22m] [[1m-c [4m[22mcachesize[24m] [[1m-d[22m] [[1m-D [4m[22mcommentchar[24m] [[1m-e[22m] [[1m-f[22m]
[[1m-i [4m[22mtype[24m] [[1m-l[22m] [[1m-o[22m] [[1m-r[22m] [[1m-s[22m] [[1m-t [4m[22mdelim[24m] [[1m-u[22m] [[1m-v[22m] [4mmaptype[24m [4mmapnam[0m
[1mDESCRIPTION[0m
[1mMakemap [22mcreates the database maps used by the keyed map lookups in
sendmail(8). It reads input from the standard input and outputs them
to the indicated [4mmapname.[0m
Depending on how it is compiled, [1mmakemap [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.
implicit
The first available format in the following order: hash, dbm,
and cdb.
In all cases, [1mmakemap [22mreads 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 ``%[4mn[24m'' strings to indicate
parameter substitution. Literal percents should be doubled (``%%'').
Blank lines and lines beginning with ``#'' are ignored.
Notice: do [1mnot [22muse [1mmakemap [22mto create the aliases data base, but
[1mnewaliases [22mwhich puts a special token into the data base that is re-
quired by [1msendmail.[0m
If the [4mTrustedUser[24m option is set in the sendmail configuration file and
[1mmakemap [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. This
must match the -N flag in the sendmail.cf ``K'' line.
[1m-c [22mUse the specified hash and B-Tree cache size.
[1m-D [22mUse to specify the character to use to indicate a comment (which
is ignored) instead of the default of '#'.
[1m-d [22mAllow duplicate keys in the map. This is only allowed on B-Tree
format maps. If two identical keys are read, they will both be
inserted into the map.
[1m-e [22mAllow empty value (right hand side).
[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-i [22mUse the specified type as fallback if the given [4mmaptype[24m is not
available.
[1m-l [22mList supported map types.
[1m-o [22mAppend to an old file. This allows you to augment an existing
file. Note: this might not be supported by all database types,
e.g., cdb.
[1m-r [22mAllow replacement of existing keys. Normally [1mmakemap [22mcomplains
if you repeat a key, and does not do the insert.
[1m-s [22mIgnore safety checks on maps being created. This includes
checking for hard or symbolic links in world writable directo-
ries.
[1m-t [22mUse the specified delimiter instead of white space (also for
dumping a map).
[1m-u [22mdump (unmap) the content of the database to standard output.
[1m-v [22mVerbosely print what it is doing.
[1mExample[0m
makemap hash /etc/mail/access < /etc/mail/access
[1mSEE ALSO[0m
sendmail(8), newaliases(1)
[1mHISTORY[0m
The [1mmakemap [22mcommand appeared in 4.4BSD.
$Date: 2013-11-22 20:51:52 $ [4mMAKEMAP[24m(8)
|