All rights reserved.
596 | Chapter 17: Configure sendmail.cf with m4
17.3.3.2 LOCAL_RULE_0 mc macro
The parse rule set 0 first checks to see whether the mail should be delivered locally.
It then checks for other addresses, such as uucp and smtp. You can insert custom
delivery agent selections of your own in the parse rule set 0, after the local delivery
selection, but before the uucp, smtp, and the like. To do this, use the LOCAL_RULE_
0 mc macro:
LOCAL_RULE_0
# We service lady via an mx record.
R$+ < @ lady.Berkeley.EDU. > $#uucp $@ lady $: $1
Here, we introduce a new rule to select a delivery agent. The host lady is a UUCP
host for which we accept mail via an MX record.
In ?§19.5 on page 696, we deal with the flow of rules through the parse rule set 0. For
now, merely note that LOCAL_RULE_0 fits into the flow of rules through the parse
rule set 0 like this:
1. Basic canonicalization (list syntax, delete local host, etc.)
2. LOCAL_RULE_0
3. FEATURE(ldap_routing) (?§23.7.11.22 on page 922)
4. FEATURE(virtusertable) (?§17.8.59 on page 645)
5. Addresses of the form ???user@$=w??? passed to local delivery agent
6. FEATURE(mailertable) (?§17.8.28 on page 629)
7. UUCP, BITNET_RELAY (?§21.9.11 on page 808), etc.
8. LOCAL_NET_CONFIG (?§17.3.3.7 on page 598)
9. SMART_HOST (?§17.3.3.6 on page 597)
10. SMTP, local, etc. delivery agents
17.
Pages:
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050