Forwarding to a Knowledgeable Host
After handling mail destined for the local host, the
parse
rule set
0 generally looks for addresses that require a
knowledgeable host to forward messages on the local
host’s behalf. In the following rule, the $B
sendmail macro ($B on page 808) holds as its
value the name of a machine that knows how to
deliver BITNET mail (Relays on
page 602):
R $* <@ $+.BITNET> $* $#esmtp $@$B $:$1<@$2.BITNET>$3 user@host.BITNET
The tag .BITNET
would have been added by users when sending mail.
Note that BITNET
in the LHS is case-insensitive; a user can specify
Bitnet
,
bitnet
, or even
BiTNeT
, and
this rule will still match. A similar scheme can be
used for other specialty addresses, such as UUCP and
DECnet.
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.