Prior to V8.13, sendmail would also add leading name components to the list of host names
in $=w (for example, for the hostname a.b.c.d, it would add a and a.b). Also prior to V8.13,
eachsuchname found (if not duplicated) would be reverse-looked-up to find its IP number
and that IP number would be added to the list. Beginning with V8.13, these two steps are
skipped. If you are running pre-V8.13 sendmail and you desire those hostname variations
to be added to the list of hostnames, you will henceforth have to add them to class $=w
yourself.
Many sendmail.cf files use the $=w class macro to define all the ways users might reference
the local machine. This list must contain all names for the local machine as given in
the /etc/hosts file, all names for the local host as listed in DNS (including CNAME and
MX records), and the names associated with your network interfaces. For example:
# All our routing identities
Cw server1 server2
# All our local aliases
Cw localhost mailhost tops-link print-router loghost
# DNS records
Cw serv-link
# We are a bitnet registered node
Cw bitserver
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
22.6 Alphabetized Class Macros | 877
The correct way to add these domains to $=w in your mc file is withLOCAL_DOMAIN,
like this:
LOCAL_DOMAIN(`server1 server2??)
LOCAL_DOMAIN(`localhost mailhost tops-link print-router loghost??)
LOCAL_DOMAIN(`serv-link??)
LOCAL_DOMAIN(`bitserver??)
Another correct way to add hostnames to class $=w is with FEATURE(use_ct_file) (?§17.
Pages:
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548