This chapter contains three useful tables:
Table 23-3 shows the possible compile-time
definitions for confMAPDEF
.
Table 23-4 lists the possible K
configuration command types.
Table 23-5 lists the possible K
configuration command switches.
Possible compile-time switches are shown in Table 23-3.
Table 23-3. m4 definitions for confMAPDEF
Switch |
sendmail text reference |
Database support included |
---|---|---|
-DDNSMAP |
23.7.6[3ed] |
dns lookups (V8.12 and above) |
-DHESIOD |
23.7.8[3ed] |
hesiod(3) aliases and userdb |
-DLDAPMAP |
23.7.11[3ed] |
ldap(3) support |
-DMAP_NSD |
23.7.16[3ed] |
Irix |
-DMAP_REGEX |
23.7.20[3ed] |
Regular expression support |
-DNDBM |
23.7.4[3ed] |
ndbm(3) database files (dbm) |
-DNAMED_BIND |
23.7.3[3ed] |
bestmx(3) DNS lookups |
-DNETINFO |
23.7.13[3ed] |
NeXT netinfo(3) aliases only |
-DNEWDB |
23.7.2[3ed] |
db(3) hash and btree databases and userdb |
-DNIS |
23.7.14[3ed] |
Sun NIS network database-maps |
-DNISPLUS |
23.7.15[3ed] |
Sun NIS+ network database-maps |
-DPH_MAP |
23.7.18[3ed] |
PH database-maps |
-DSOCKETMAP |
Section 3.1.1 [V8.13] |
Socket database-maps |
For example, the default Build m4 file for Ultrix (in devtools/OS/ULTRIX) might include this line:
define(`confMAPDEF´, `-DNDBM -DNIS´)
which includes support for ndbm(3) and nis(3) database-maps. The m4 file for SunOS 5.5 might include the following:
define(`confMAPDEF´, `-DNDBM -DNIS -DNISPLUS -DMAP_REGEX´)
which also includes support for the nisplus
database-map and regular expressions.
Recall that the type
[34] portion of the
K
configuration command
follows the name
:
Kname type args
Note that, in a joined indented line, the
name
and the
type
allows the addition of comments and
improves readability:
Kname
# Why this name
type
# Why this type
args
# and so on
The type
declares which sort of
database-map to use. It must be one of the types listed in Table 23-4.
Table 23-4. Possible K command types
Type |
sendmail text reference |
Version |
Description |
---|---|---|---|
|
23.7.1[3ed] |
V8.10 and above |
Perform arithmetic computations |
|
23.7.2[3ed] |
V8.1 and above |
A db(3) form of database |
|
23.7.3[3ed] |
V8.7 and above |
Look up the best MX record for a host |
|
23.7.4[3ed] |
V8.1 and above |
Really |
|
23.7.5[3ed] |
V8.6 and above |
Remove quotation marks |
|
23.7.6[3ed] |
V8.12 and above |
Look up information using DNS |
|
23.7.7[3ed] |
V8.1 and above |
A db(3) form of database |
|
23.7.8[3ed] |
V8.7 and above |
MIT network user authentication services |
|
23.7.9[3ed] |
V8.1 and above |
Internal table to store and look up hostnames |
|
23.7.10[3ed] |
V8.1 and above |
Search for an |
|
23.7.11[3ed] |
V8.10 and above |
The Lightweight Directory Access Protocol (LDAP) |
|
23.7.11[3ed] |
V8.9 and earlier |
Replaced by |
|
23.7.12[3ed] |
V8.10 and above |
Store a value into a macro using a rule |
|
23.7.13[3ed] |
V8.7 and above |
NeXT, Darwin, and Mac OS X network information services |
|
23.7.14[3ed] |
V8.1 and above |
Sun’s Network Information Services (NIS) |
|
23.7.15[3ed] |
V8.7 and above |
Sun’s newer version of NIS (NIS+) |
|
23.7.16[3ed] |
V8.10 and above |
Irix |
|
23.7.17[3ed] |
V8.7 and above |
Provide a never found service |
|
23.7.18[3ed] |
V8.10 and above |
CCSO Nameserver ( |
|
23.7.19[3ed] |
V8.7 and above |
Run an external program to look up the key |
|
23.7.20[3ed] |
V8.9 and above |
Use regular expressions |
|
23.7.21[3ed] |
V8.7 and above |
Search a series of database-maps |
|
Section 23.1.5 [V8.13] |
V8.13 and above |
Search over a TCP/IP connection |
|
23.7.22[3ed] |
V8.10 and above |
Internally load aliases into the symbol table |
|
23.7.23[3ed] |
V8.7 and above |
Build sequences based on service switch |
|
23.7.24[3ed] |
V8.10 and above |
Log information using syslog(3) using rule sets |
|
23.7.25[3ed] |
V8.7 and above |
Look up in flat text files |
|
23.7.26[3ed] |
V8.7 and above |
Look up in the User Database |
|
23.7.27[3ed] |
V8.7 and above |
Look up local passwd information |
The switches
must follow the
type
and precede
the file_or_map
:
Kname type switches file_or_map
If any switches
follow
file_or_map
, they will be silently
ignored.[35] All
switches
begin with a - character and are
listed in Table 23-5. Note that some database-map
types utilize only a small subset of all switches (e.g.,
dequote
uses only -a
,
-D
, -s
, and
-S
, and sequence
doesn’t use any).
Table 23-5. K command switches
Switch |
sendmail text reference |
Description |
---|---|---|
|
23.7.11.1[3ed] |
Consider successful only if exactly one key is matched
( |
|
23.3.1[3ed] |
Append values for duplicate keys |
|
23.3.2[3ed] |
Append tag on successful match |
|
23.7.11.2[3ed] |
Base from which to begin the search ( |
|
23.7.20.1[3ed] |
Use basic, not extended, regular expression matching
( |
|
23.3.3[3ed] |
Don’t use this database map if
|
|
23.7.11.3[3ed] |
DN to bind to server as ( |
|
23.7.20.2[3ed] |
The delimiting string ( |
|
24.9.109.22[3ed] |
The |
|
23.3.4[3ed] |
Preserve case |
|
Section 23.1.1.2 [V8.13] |
Specify an LDAP URI in place of a host and port
( |
|
23.7.11.4[3ed] |
Hosts that serve this network database ( |
|
23.7.18.1[3ed] |
Hosts that serve this network database ( |
|
23.3.5[3ed] |
Specify column for key |
|
23.7.11.5[3ed] |
The search query ( |
|
23.7.13[3ed] |
The property that is searched ( |
|
23.7.18.2[3ed] |
Specify a list of fields to query ( |
|
23.7.24[3ed] |
The logging level at which to log ( |
|
23.3.6[3ed] |
Time limit to timeout connection ( |
|
23.7.11.6[3ed] |
The method to use for binding ( |
|
23.3.7[3ed] |
Suppress replacement on match |
|
23.3.8[3ed] |
Append a null byte to all keys |
|
23.7.11.7[3ed] |
Retrieve attribute names only, not values ( |
|
23.7.20.3[3ed] |
NOT, that is, invert the test ( |
|
23.3.9[3ed] |
Never add a null byte |
|
23.3.10[3ed] |
The database-map is optional |
|
23.7.11.8[3ed] |
The secret password to use for binding ( |
|
23.7.11.9[3ed] |
Port to use when connecting to host ( |
|
23.3.11[3ed] |
Don’t strip quotes from key |
|
23.7.11.10[3ed] |
Don’t auto-chase referrals ( |
|
23.7.6[3ed] |
Record type to look up ( |
|
23.7.11.11[3ed] |
Allow dereferencing of aliases ( |
|
24.9.109.22[3ed] |
The |
|
23.3.12[3ed] |
Space replacement character for database-map |
|
23.7.11.12[3ed] |
Search scope of “base,”
“one,” or
“sub” ( |
|
23.7.20.4[3ed] |
Substring to match and return ( |
|
23.3.13[3ed] |
Suffix to append on temporary failure |
|
23.3.14[3ed] |
Ignore temporary errors |
|
23.7.11.13[3ed] |
Specify return attribute list separator ( |
|
23.3.15[3ed] |
Specify the value’s column |
|
23.7.13[3ed] |
The property to return ( |
|
23.7.18[3ed] |
Specify a list of fields to return ( |
|
23.7.11.14[3ed] |
Specify the list of attributes to return ( |
|
Section 23.1.1.1 [V8.13] |
Specify the LDAP API version to use ( |
|
23.7.11.16[3ed] |
Limit the number of matches to return ( |
|
23.3.16[3ed] |
Specify the column delimiter |
If a switch other than those listed is specified, either an error is
reported or the switch is silently ignored, depending on the version
of sendmail and the particular map
type
.
3.237.5.1