makemap 中文man页面

系统
创建 sendmail(8) 中关键字式映像查询所使用的数据库映像表. 它从标准输入设备读取输入并输出到指定的 mapname

NAME(名称)

makemap - 为sendmail创建数据库映像表  

SYNOPSIS(总览)

[-N ] [-d ] [-f ] [-o ] [-r ] [-s ] [-v ] maptype mapname  

DESCRIPTION(描述)

创建 sendmail(8) 中关键字式映像查询所使用的数据库映像表. 它从标准输入设备读取输入并输出到指定的 mapname

根据其编译的方式不同, 可以处理多达三种不同的数据库格式, 这些格式由 maptype 参数确定. 它们可能为:

btree
B-Tree格式映像表. 这需要新的Berkeley DB库.
hash
Hash格式映像表. 这也需要Berkeley DB库.

普遍而言, 从标准输入设备读取行,这些行由以空格分隔的两个单词组成. 第一个为数据库关键字, 第二个为数值. 数值可能包含 ``%n'' 字符串用来标明参数替换. 如果包含文本式的百分符号,则应该重复写 (``%%''). 忽略空行和以``#''开头的行.  

Flags(标识)

-N
包含null字节用来结束映像表中的字符串. 这必须与sendmail.cf中``K''行的-N标识匹配.
-d
允许映像表中的关键字重复. 这只能在B-Tree格式的映像表中允许. 如果读入两个相同的关键字, 那么它们都会插入到映像表中.
-f
通常所有关键字中的大写字母都会转换成小写字母. 这个标识可以屏蔽这种功能. 这是为了配合sendmail.cf中 K 行的-f标识的使用. 数值永远不作字母大小写的转换.
-o
添加到一个旧的文件中. 允许你增大一个已存在的文件.
-r
允许替换已存在的关键字. 如果你重复一个关键字, 通常 会抱怨,而且不进行插入.
-s
忽略正在创建的映像表的安全性检查. 这包括对完全可写目录中硬链接或者符号链接的检查.
-v
详尽地打印出正在执行什么.

SEE ALSO(另见)

sendmail(8)  

#p#

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 directories.
-t
Use the specified delimiter instead of white space.
-u
dump (unmap) the content of the database to standard output.
-v
Verbosely print what it is doing.

SEE ALSO

sendmail(8), newaliases(1)  

责任编辑:韩亚珊 来源: CMPP.net
相关推荐

2011-08-24 16:48:36

man中文man

2011-08-15 10:21:09

man中文man

2011-08-11 16:11:49

at中文man

2011-08-25 10:21:56

man.conf中文man

2011-08-25 15:39:42

fcloseall中文man

2011-08-25 15:00:15

cfgetispeed中文man

2011-08-19 18:35:50

issue中文man

2011-08-25 17:03:51

pclose中文man

2011-08-25 17:40:25

setvbuf中文man

2011-08-23 14:21:16

poweroff中文man

2011-08-24 15:52:59

intro中文man

2011-08-23 13:40:31

2011-08-25 15:54:08

ferror中文man

2011-08-25 17:24:54

puts中文man

2011-08-25 18:34:55

ungetc中文man

2011-08-23 10:03:40

useradd中文man

2011-08-23 10:29:02

chpasswd中文man

2011-08-23 10:34:22

convertquot中文man

2011-08-23 15:39:34

rpmbuild中文man

2011-08-24 15:48:38

INSERT中文man
点赞
收藏

51CTO技术栈公众号