Rules and Rule Sets

Rules are used to rewrite mail addresses and to select delivery agents, among other things. They are organized in rule sets, which can be thought of as subroutines. We deal with rules and rule sets more deeply in Chapter 18 on page 648 and Chapter 19 on page 683. Here we only illustrate how the mc configuration method is used to insert custom rules and rule sets in a variety of convenient ways. We list all the mc keywords that affect rules and rule sets in Table 17-2. For completeness, we also list one keyword for adding delivery agents.

Table 17-2. mc configuration keywords

Keyword

§

Versions

Description

LOCAL_CONFIG

LOCAL_CONFIG mc macro on page 595

V8.1 and later

Add general information.

LOCAL_NET_CONFIG

LOCAL_NET_CONFIG mc macro on page 598

V8.6 and later

Add custom rules for SMART_HOST.

LOCAL_RULE_0

LOCAL_RULE_0 mc macro on page 596

V8.1 and later

Add custom rules to the parse rule set 0.

LOCAL_RULE_1

LOCAL_RULE_1 and LOCAL_RULE_2 mc macros on page 596

V8.1 and later

Add custom rules to rule set 1.

LOCAL_RULE_2

LOCAL_RULE_1 and LOCAL_RULE_2 mc macros on page 596

V8.1 and later

Add custom rules to rule set 2.

LOCAL_RULE_3

LOCAL_RULE_3 mc macro on page 596

V8.1 and later

Add custom rules to the canonify rule set 3.

LOCAL_RULESETS

LOCAL_RULESETS mc macro on page 597

V8.8 and later

Group local rules with others.

LOCAL_SRV_FEATURES

srv_features on page 708

V8.12 and later

Add/create rules for the srv_features rule set.

LOCAL_TRY_TLS ...

Get sendmail, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.