MAKEMAP(8) MAKEMAP(8) 名称 makemap - sendmail 用のデータベースマップを作成する 書式 makemap [-C file] [-N] [-c cachesize] [-d] [-e] [-f] [-l] [-o] [-r] [-s] [-u] [-v] maptype mapnam 解説 makemap は、 sendmail(8) がキー付きマップを検索する際に用いるデータベー スマップを作成します。これは標準入力から読み込みを行い、指定された map- name に出力を行います。 コンパイル方法に依存しますが、 makemap は最大 3 種類のデータベースフ ォ ー マ ットを扱います。扱うフォーマットは maptype で指定します。 maptype には、以下のようなものがあります。 dbm DBM フォーマットマップ。 ndbm(3) ライブラリが必要です。 btree B-Treeフォーマットマップ。新しい Berkeley DB ライブラリが必要 で す。 hash ハッシュフォーマットマップ。同じく Berkeley DB ライブラリが必要 です。 すべてのフォーマットで、 makemap は標準入力から空白文字で区切られ た 2 つの単語を読み込みます。最初の単語はデータベースキーで、2番目の単語がそ の値です。値が ‘‘%n’’ (n は数字) という文字列を含んでいる と 、sendmail が パラメータ置換を行います。 ‘‘%’’ という文字を含めるには、‘‘%%’’ とす る必要があります。空行や ‘‘#’’ から始まる行は無視されます。 TrustedUser オプションが sendmail の設定ファイル中で設定されて お り 、 makemap が root に起動された場合、生成されたファイルは指定された Trust- edUser の所有となります。 フラグ -C TrustedUser オプションを見付けるために、指定した sendmail 設定フ ァイルを使用します。 -N 文 字 列 の 終 端記号として、ヌル文字もマップに含めます。これは 、sendmail.cf の ‘‘K’’ 行における -N フラグと一致していなけれ ば なりません。 -c 指定したハッシュと B-Tree キャッシュサイズを使用します。 -d マップ中に重複するキーが存在することを許します。 B-Treeフォーマ ットマップでのみ可能です。 2 つの同じキーが読まれた場合、両方 と もマップに挿入されます。 -e 空の値を許します (右側の値)。 -f 通常、キーのなかのすべての大文字は、すべて小文字として記録されま すが、このフラグを指定することによってこの動作を行わないように指 定 できます。これは、sendmail.cf 中の K 行における -f フラグと一 致していなければなりません。 -l サポートされているマップタイプを列挙します。 -o すでにあるファイルに追加が行われます。すでに存在するファイルを引 数として指定することができます。 -r すでに存在しているキーを置き換えます。通常はすでに入力したキーを さらに繰り返して入力しても、 makemap は警告を出力し、データベ ー スには取り込みません。 -s 生成されるマップの安全チェックを無視します。これには、だれでも書 き込めるディレクトリへのハードリンクおよびシンボリックのチェック も含まれます。 -u データベースの内容を、標準出力へダンプ (アンマップ) します。 -v 処理の内容を詳細に表示します。 関連項目 sendmail(8) 歴史 makemap コマンドは 4.4BSD から登場しました。 November 16, 1992 MAKEMAP(8)
MAKEMAP(8) MAKEMAP(8) NAME makemap - create database maps for sendmail SYNOPSIS makemap [-C file] [-N] [-c cachesize] [-d] [-D commentchar] [-e] [-f] [-l] [-o] [-r] [-s] [-t delim] [-u] [-v] maptype mapnam DESCRIPTION Makemap creates 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 mapname. Depending on how it is compiled, makemap handles up to three different database formats, selected using the maptype parameter. They may be btree B-Tree format maps. This requires the new Berkeley DB library. hash Hash format maps. This also requires the Berkeley DB library. In all cases, makemap reads 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 ‘‘%n’’ strings to indicate parameter substitution. Literal percents should be doubled (‘‘%%’’). Blank lines and lines beginning with ‘‘#’’ are ignored. Notice: do not use makemap to create the aliases data base, but newaliases which puts a special token into the data base that is required by sendmail. If the TrustedUser option is set in the sendmail configuration file and makemap is invoked as root, the generated files will be owned by the specified TrustedUser. Flags -C Use the specified sendmail configuration file for looking up the TrustedUser option. -N Include the null byte that terminates strings in the map. This must match the -N flag in the sendmail.cf ‘‘K’’ line. -c Use the specified hash and B-Tree cache size. -D Use to specify the character to use to indicate a comment (which is ignored) instead of the default of ’#’. -d Allow 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. -e Allow empty value (right hand side). -f Normally 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 K line in sendmail.cf. The value is never case folded. -l List supported map types. -o Append to an old file. This allows you to augment an existing file. -r Allow replacement of existing keys. Normally makemap complains if you repeat a key, and does not do the insert. -s Ignore safety checks on maps being created. This includes checking for hard or symbolic links in world writable directo- ries. -t Use the specified delimiter instead of white space (also for dumping a map). -u dump (unmap) the content of the database to standard output. -v Verbosely print what it is doing. SEE ALSO sendmail(8), newaliases(1) HISTORY The makemap command appeared in 4.4BSD. $Date: 2008/05/02 23:07:48 $ MAKEMAP(8)
コロナウイルスの日ごとの感染者数・死者数をグラフ化してみました。どの国が増加傾向にあり、どの国が終息に向かっているかを視覚化しています。
Copyright(C) linux-cmd.com All Rights Reserved. Author Takayuki Yukawa