But
be aware that any alias files declared in the command line cause all the configuration file
alias declarations to be ignored.
In addition to the name of alias databases, sendmail also allows you to specify the type of
each. The type is the same as the types that are available for the K configuration command
(?§23.2 on page 882). The type prefixes the name, and the two are separated by a colon:
O AliasFile=nis:mail.aliases
This example tells sendmail to look up aliases in the nis type (the nis) database called
mail.aliases. The type can include command-line-style switches that mean the same thing
as those allowed for the K configuration command.
For example:
O AliasFile=nis:-N mail.aliases
Here, the -N database-map switchcauses lookups to include a trailing null byte witheach
key.*
The types that are reasonable to use with this option are shown in Table 24-12. But note
that it is generally better to use the service-switch file to select services because it is less
confusing.
* Also see ?§12.4.5 on page 477, which illustrates the -A option switch for appending keys.
Table 24-12. Database-map types reasonable for aliases
Type ?§ Versions Description
btree ?§23.7.2 on page 901 V8.1 and above A db(3) form of database
dbm ?§23.7.4 on page 903 V8.1 and above Really ndbm supplied with most versions of Unix
hash ?§23.7.7 on page 908 V8.
Pages:
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718