You can enable this behavior by defining SMART_HOST. In a firewall situation, all
nonlocal mail should be forwarded to a gateway machine for handling:
define(`SMART_HOST??, `gateway.your.domain??)
In the case of a site that is only UUCP-connected, all nonlocal mail will need to be
forwarded to an Internet-connected host over UUCP:
define(`SMART_HOST??, `uucp-dom:supporthost??)
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
598 | Chapter 17: Configure sendmail.cf with m4
Here, Internet mail will be forwarded to the host supporthost using the uucp-dom
delivery agent.
For information about other ways to use SMART_HOST, see the file cf/README.
17.3.3.7 LOCAL_NET_CONFIG mc macro
LOCAL_NET_CONFIG is chiefly intended as a place to override settings of the
SMART_HOST mc macro (?§17.3.3.6 on page 597). To illustrate, consider one possible
setup for mail. The idea is to allow hosts on the local network to deliver directly
to each other but to have all other mail sent to a ???smart host??? that forwards that mail
offsite. Commonly, such arrangements are used by sites with in-house networks that
have access to the outside world only through a UUCP link. For such sites you can
use LOCAL_NET_CONFIG:
define(`SMART_HOST??, `relay:uucp-gateway??)
LOCAL_NET_CONFIG
R $* < @ $+ .
Pages:
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053