-d38.2

Show database map opens and failures Debug command-line switch

Most database maps are declared directly with the K configuration command (The K Configuration Command on page 882). Others are declared internally by sendmail, such as the host and alias maps. The -d38.2 debugging switch (there is no -d38.1 information) first shows database maps being initialized:

map_init(dbtype:name, file, pass)

Here, dbtype is one of the internal database types allowed by sendmail, such as host, and dequote (The K Configuration Command on page 882, the K configuration command). The name is either the name you gave to the database map with the K configuration command, or one assigned internally by sendmail (such as aliases.files). The file is either a literal NULL, or the name of the database file (such as /etc/mail/aliases). And pass is a flag that tells sendmail whether it should open the database, rebuild the database, or do neither.

Next, the -d38.2 debugging switch causes sendmail to show each database map as it is about to be opened. The output that is produced will look like one of the following lines:

bt_map_open(name, file, mode)
hash_map_open(name, file, mode)
hes_map_open(name, file, mode)
impl_map_open(name, file, mode)
ldap_map_open(name, mode)
ndbm_map_open(name, file, mode)
ni_map_open(name, file, mode)
nis_map_open(name, file, mode)
nisplus_map_open(name, file, mode)
stab_map_open(name, file, mode)
switch_map_open(name, file, mode)
text_map_open(name, file, mode)
user_map_open(

Get sendmail, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.