The hash database-map type uses a hashing algorithm for storing data. This approach to a database is described in A New Hash Package for UNIX , by Margo Seltzer (Usenix Proceedings, Winter 1991). The hash type is available only if sendmail was compiled with NEWDB defined and the Berkeley or Sleepycat db (3) library linked. The hash type is the default that is used with most of the features offered by the mc configuration technique (see Table 23-4 in Section 23.5). For example, consider the following: Kuudomain hash -o /etc/mail/uudomain Here, a database map named uudomain is declared to be of type hash . The -o says that the database file /etc/mail/uudomain is optional. Quite a few other database-map switches are available with this type. The complete list is shown in Table 23-13. Table 23-13. The hash database-map type K command switches
The -d38.20 command-line switch (-d38.20) can be used to observe this type's lookups in more detail. See also the btree type (btree). |