2000-10-01 01:49:02 +00:00
|
|
|
.\" Copyright (c) 1998-2000 Sendmail, Inc. and its suppliers.
|
2000-08-12 21:55:49 +00:00
|
|
|
.\" All rights reserved.
|
1995-12-02 17:30:23 +00:00
|
|
|
.\" Copyright (c) 1988, 1991, 1993
|
|
|
|
.\" The Regents of the University of California. All rights reserved.
|
|
|
|
.\"
|
1998-08-03 05:56:20 +00:00
|
|
|
.\" By using this file, you agree to the terms and conditions set
|
|
|
|
.\" forth in the LICENSE file which can be found at the top level of
|
|
|
|
.\" the sendmail distribution.
|
1995-12-02 17:30:23 +00:00
|
|
|
.\"
|
|
|
|
.\"
|
2001-01-21 22:17:06 +00:00
|
|
|
.\" $Id: makemap.8,v 8.21.16.5 2000/12/29 18:12:20 gshapiro Exp $
|
1995-12-02 17:30:23 +00:00
|
|
|
.\"
|
2001-01-21 22:17:06 +00:00
|
|
|
.TH MAKEMAP 8 "$Date: 2000/12/29 18:12:20 $"
|
2000-08-12 21:55:49 +00:00
|
|
|
.SH NAME
|
2001-01-21 22:17:06 +00:00
|
|
|
makemap
|
2000-08-12 21:55:49 +00:00
|
|
|
\- create database maps for sendmail
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.B makemap
|
|
|
|
.RB [ \-C
|
|
|
|
.IR file ]
|
|
|
|
.RB [ \-N ]
|
|
|
|
.RB [ \-c
|
|
|
|
.IR cachesize ]
|
|
|
|
.RB [ \-d ]
|
|
|
|
.RB [ \-e ]
|
|
|
|
.RB [ \-f ]
|
|
|
|
.RB [ \-l ]
|
|
|
|
.RB [ \-o ]
|
|
|
|
.RB [ \-r ]
|
|
|
|
.RB [ \-s ]
|
|
|
|
.RB [ \-u ]
|
|
|
|
.RB [ \-v ]
|
|
|
|
.I
|
|
|
|
maptype mapnam
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.B Makemap
|
1995-12-02 17:30:23 +00:00
|
|
|
creates the database maps used by the keyed map lookups in
|
2000-08-12 21:55:49 +00:00
|
|
|
sendmail(8).
|
1995-12-02 17:30:23 +00:00
|
|
|
It reads input from the standard input
|
|
|
|
and outputs them to the indicated
|
2000-08-12 21:55:49 +00:00
|
|
|
.I mapname.
|
|
|
|
.PP
|
1995-12-02 17:30:23 +00:00
|
|
|
Depending on how it is compiled,
|
2000-08-12 21:55:49 +00:00
|
|
|
.B makemap
|
|
|
|
handles up to three different database formats,
|
1995-12-02 17:30:23 +00:00
|
|
|
selected using the
|
2000-08-12 21:55:49 +00:00
|
|
|
.I maptype
|
|
|
|
parameter.
|
1995-12-02 17:30:23 +00:00
|
|
|
They may be
|
2000-08-12 21:55:49 +00:00
|
|
|
.TP
|
|
|
|
dbm
|
|
|
|
DBM format maps.
|
|
|
|
This requires the
|
|
|
|
ndbm(3)
|
1995-12-02 17:30:23 +00:00
|
|
|
library.
|
2000-08-12 21:55:49 +00:00
|
|
|
.TP
|
|
|
|
btree
|
|
|
|
B-Tree format maps.
|
|
|
|
This requires the new Berkeley DB
|
1995-12-02 17:30:23 +00:00
|
|
|
library.
|
2000-08-12 21:55:49 +00:00
|
|
|
.TP
|
|
|
|
hash
|
|
|
|
Hash format maps.
|
|
|
|
This also requires the Berkeley DB
|
1995-12-02 17:30:23 +00:00
|
|
|
library.
|
2000-08-12 21:55:49 +00:00
|
|
|
.PP
|
1995-12-02 17:30:23 +00:00
|
|
|
In all cases,
|
2000-08-12 21:55:49 +00:00
|
|
|
.B 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
|
|
|
|
``%\fIn\fP''
|
|
|
|
strings to indicate parameter substitution.
|
|
|
|
Literal percents should be doubled
|
1995-12-02 17:30:23 +00:00
|
|
|
(``%%'').
|
|
|
|
Blank lines and lines beginning with ``#'' are ignored.
|
2000-08-12 21:55:49 +00:00
|
|
|
.PP
|
|
|
|
If the
|
|
|
|
.I TrustedUser
|
|
|
|
option is set in the sendmail configuration file and
|
|
|
|
.B makemap
|
|
|
|
is invoked as root, the generated files will be owned by
|
|
|
|
the specified
|
|
|
|
.IR TrustedUser.
|
|
|
|
.SS Flags
|
|
|
|
.TP
|
|
|
|
.B \-C
|
2001-01-21 22:17:06 +00:00
|
|
|
Use the specified
|
|
|
|
.B sendmail
|
|
|
|
configuration file for looking up the TrustedUser option.
|
2000-08-12 21:55:49 +00:00
|
|
|
.TP
|
|
|
|
.B \-N
|
|
|
|
Include the null byte that terminates strings
|
|
|
|
in the map.
|
|
|
|
This must match the \-N flag in the sendmail.cf
|
1995-12-02 17:30:23 +00:00
|
|
|
``K'' line.
|
2000-08-12 21:55:49 +00:00
|
|
|
.TP
|
|
|
|
.B \-c
|
1999-01-12 12:26:57 +00:00
|
|
|
Use the specified hash and B-Tree cache size.
|
2000-08-12 21:55:49 +00:00
|
|
|
.TP
|
|
|
|
.B \-d
|
|
|
|
Allow duplicate keys in the map.
|
|
|
|
This is only allowed on B-Tree format maps.
|
|
|
|
If two identical keys are read,
|
1995-12-02 17:30:23 +00:00
|
|
|
they will both be inserted into the map.
|
2000-08-12 21:55:49 +00:00
|
|
|
.TP
|
|
|
|
.B \-e
|
|
|
|
Allow empty value (right hand side).
|
|
|
|
.TP
|
|
|
|
.B \-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
|
|
|
|
.B K
|
|
|
|
line in sendmail.cf.
|
1995-12-02 17:30:23 +00:00
|
|
|
The value is never case folded.
|
2000-08-12 21:55:49 +00:00
|
|
|
.TP
|
|
|
|
.B \-l
|
1999-01-12 12:26:57 +00:00
|
|
|
List supported map types.
|
2000-08-12 21:55:49 +00:00
|
|
|
.TP
|
|
|
|
.B \-o
|
|
|
|
Append to an old file.
|
1995-12-02 17:30:23 +00:00
|
|
|
This allows you to augment an existing file.
|
2000-08-12 21:55:49 +00:00
|
|
|
.TP
|
|
|
|
.B \-r
|
|
|
|
Allow replacement of existing keys.
|
1995-12-02 17:30:23 +00:00
|
|
|
Normally
|
2000-08-12 21:55:49 +00:00
|
|
|
.B makemap
|
|
|
|
complains if you repeat a key,
|
1995-12-02 17:30:23 +00:00
|
|
|
and does not do the insert.
|
2000-08-12 21:55:49 +00:00
|
|
|
.TP
|
|
|
|
.B \-s
|
|
|
|
Ignore safety checks on maps being created.
|
|
|
|
This includes checking for hard or symbolic
|
1998-08-03 05:56:20 +00:00
|
|
|
links in world writable directories.
|
2000-08-12 21:55:49 +00:00
|
|
|
.TP
|
|
|
|
.B \-u
|
|
|
|
dump (unmap) the content of the database to standard output.
|
|
|
|
.TP
|
|
|
|
.B \-v
|
1995-12-02 17:30:23 +00:00
|
|
|
Verbosely print what it is doing.
|
2000-08-12 21:55:49 +00:00
|
|
|
.SH SEE ALSO
|
|
|
|
sendmail(8)
|
|
|
|
.SH HISTORY
|
1995-12-02 17:30:23 +00:00
|
|
|
The
|
2000-08-12 21:55:49 +00:00
|
|
|
.B makemap
|
|
|
|
command appeared in
|
|
|
|
4.4BSD.
|