The MAIL_HUB
mc macro allows you to specify that all local mail be forwarded to the central server
for delivery. The point is to let unqualified names be forwarded through a machine
with a large aliases file.
If you define bothLOCAL_RELAY and MAIL_HUB, unqualified names and names
in the class $=L are sent to LOCAL_RELAY and other local names are sent to
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
606 | Chapter 17: Configure sendmail.cf with m4
MAIL_HUB. To illustrate, consider the result of various combinations for the user
you on the machine here.our.site.
If LOCAL_RELAY is defined as relay.our.site and MAIL_HUB is not defined, mail
addressed to you is forwarded to relay.our.site, but mail addressed to
you@here.our.site is delivered locally.
If MAIL_HUB is defined as hub.our.site and LOCAL_RELAY is not defined, mail
addressed to you and mail addressed to you@here.our.site is forwarded to
hub.our.site for delivery.
If bothLOCAL_RELAY and MAIL_HUB are defined as shown earlier, mail
addressed to you is sent to relay.our.site for delivery, and mail addressed to
you@here.our.site is forwarded to hub.our.site.
If you want all outgoing mail to go to a central machine, use SMART_HOST too.
Note that LOCAL_RELAY is considered most useful when combined with the
FEATURE(stickyhost) (?§17.
Pages:
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066