File: makemap.0

package info (click to toggle)
sendmail 8.18.1-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 12,496 kB
  • sloc: ansic: 105,736; perl: 7,504; sh: 5,488; makefile: 888
file content (105 lines) | stat: -rw-r--r-- 4,558 bytes parent folder | download | duplicates (4)
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
101
102
103
104
105
MAKEMAP(8)                                                          MAKEMAP(8)



NNAAMMEE
       makemap - create database maps for sendmail

SSYYNNOOPPSSIISS
       mmaakkeemmaapp  [--CC  _f_i_l_e] [--NN] [--cc _c_a_c_h_e_s_i_z_e] [--dd] [--DD _c_o_m_m_e_n_t_c_h_a_r] [--ee] [--ff]
       [--ii _t_y_p_e] [--ll] [--oo] [--rr] [--ss] [--tt _d_e_l_i_m] [--uu] [--vv] _m_a_p_t_y_p_e _m_a_p_n_a_m

DDEESSCCRRIIPPTTIIOONN
       MMaakkeemmaapp 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 _m_a_p_n_a_m_e_.

       Depending on how it is compiled,  mmaakkeemmaapp  handles  different  database
       formats, selected using the _m_a_p_t_y_p_e 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, mmaakkeemmaapp 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 nnoott use  mmaakkeemmaapp  to  create  the  aliases  data  base,  but
       nneewwaalliiaasseess  which  puts  a  special  token  into  the data base that is
       required by sseennddmmaaiill..

       If the _T_r_u_s_t_e_d_U_s_e_r option is set in the sendmail configuration file and
       mmaakkeemmaapp  is  invoked  as root, the generated files will be owned by the
       specified _T_r_u_s_t_e_d_U_s_e_r_.

   FFllaaggss
       --CC     Use the specified sseennddmmaaiill configuration file for looking up the
              TrustedUser option.

       --NN     Include  the null byte that terminates strings in the map.  This
              must match the -N flag in the sendmail.cf ``K'' line.

       --cc     Use the specified hash and B-Tree cache size.

       --DD     Use to specify the character to use to indicate a comment (which
              is ignored) instead of the default of '#'.

       --dd     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.

       --ee     Allow empty value (right hand side).

       --ff     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 KK line in sendmail.cf.  The value
              is never case folded.

       --ii     Use the specified type as fallback if the given _m_a_p_t_y_p_e  is  not
              available.

       --ll     List supported map types.

       --oo     Append  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.

       --rr     Allow  replacement of existing keys.  Normally mmaakkeemmaapp complains
              if you repeat a key, and does not do the insert.

       --ss     Ignore safety checks  on  maps  being  created.   This  includes
              checking  for  hard or symbolic links in world writable directo-
              ries.

       --tt     Use the specified delimiter instead of  white  space  (also  for
              dumping a map).

       --uu     dump (unmap) the content of the database to standard output.

       --vv     Verbosely print what it is doing.


EExxaammppllee
       makemap hash /etc/mail/access < /etc/mail/access

SSEEEE AALLSSOO
       sendmail(8), newaliases(1)

HHIISSTTOORRYY
       The mmaakkeemmaapp command appeared in 4.4BSD.



                         $Date: 2013-11-22 20:51:52 $               MAKEMAP(8)