For example:
LOCAL_RULE_3
UUCPSMTP(decvax, decvax.dec.com)
UUCPSMTP(research, research.att.com)
This causes the following address transformations:
decvax!user becomes ?†’ user@decvax.dec.com
research!user becomes ?†’ user@research.att.com
Another suggested use for LOCAL_RULE_3 is to introduce a new rule to look up
hostnames in a locally customized database:
LOCAL_RULE_3
R$*<@$+>$* $:$1<@ $(hostmap $2 $) >$3
The declaration and definition of local database maps with the K configuration command
(?§23.2 on page 882) should appear in the LOCAL_CONFIG section.
17.3.3.5 LOCAL_RULESETS mc macro
Prior to V8.8 sendmail, you had to use the divert mc directive to force your new rule
set declarations to be emitted alongside the normal mc-generated rule sets. Beginning
with V8.8, that bit of ???black magic??? has been removed.
The LOCAL_RULESETS mc command causes all the rule sets and rules that follow it
to be emitted into your configuration file along with all the rules that are automatically
generated. You use it like this:
LOCAL_RULESETS
your new rule sets and rules here
17.3.3.6 SMART_HOST mc macro
Some sites can deliver local mail to the local network but cannot look up hosts on
the Internet with DNS. Usually, such sites are connected to the outside world
through a firewall, or with UUCP. To ensure delivery of all mail, such sites need to
forward all nonlocal mail to a smart (or well-connected) gateway host.
Pages:
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052