All rights reserved.
944 | Chapter 23: The K (Database-Map) Configuration Command
Here, the location of the database file is set to be /etc/mail/userdb. You can also enable a
default location for the database file that will take effect should the UserDatabaseSpec
option be missing by defining that location with UDB_DEFAULT_SPEC when compiling
(?§3.4.71 on page 149).
23.7.27.2 Create the User Database
The User Database is a btree-type (?§23.7.2 on page 901) database file created from a
source text file using the makemap program:
% makemap btree /etc/mail/userdb.db < /etc/mail/userdb
?†‘
this type is mandatory for the User Database
Here, /etc/mail/userdb is the source-text file that is input, and /etc/mail/userdb.db is the
database we are creating (the one defined by the UserDatabaseSpec option in the previous
section).*
The source text file is composed of key and value pairs, one pair per line:
key value
?†‘
whitespace
The key is a user??™s login name, a colon, and one of two possible keywords: maildrop or
mailname. The keyword determines the nature of the value:
maildrop
For maildrop, th evalue is the official delivery address for this user. If there are multiple
official addresses, they can be listed as a single compound value, with separating
commas. For example:
root:maildrop sysadmin@here.us.edu,bill@there.us.
Pages:
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669