They
are listed with the AliasFile option as, for example:
O AliasFile=/etc/aliases/users,/etc/aliases/maillists
In this case, sendmail will look up an alias first in the database /etc/aliases/users. If it is not
found, sendmail will then look in /etc/aliases/maillists. The number of simultaneous alias
files is limited to MAXALIASDB (?§3.4.22 on page 120) as defined in conf.h (the default is
12). The -bi command-line switch will rebuild all alias databases in the order listed in this
AliasFile option. Multiple declaration lines can appear in the file, each adding an alias
database to the list:
O AliasFile=/etc/aliases/users # aliases local users first
O AliasFile=/etc/aliases/maillists # then mailing lists
O AliasFile=/etc/aliases/retired # then retired accounts
* Beginning withV8.7, a switched-services file (?§24.9.108 on page 1088) can cause aliases to be found in NIS
or other services and can completely ignore alias files altogether.
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
972 | Chapter 24: The O (Options) Configuration Command
Duplicates are not detected. Therefore, the following causes /etc/aliases to be searched and
rebuilt twice each time:
O AliasFile=/etc/aliases
O AliasFile=/etc/aliases
Multiple alias files can similarly be specified on the command line with the -O switch.
Pages:
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717