$h
Host part of the delivery agent triple All versions
The parse
rule set
0 (The parse Rule Set 0 on page
696) is used to resolve the recipient address into a
triple: the delivery agent (with $#
), the host part of
the address (with $@
), and the recipient address (with
$
:). The host
part, from the $@
, is made the value of $h
. Once $h
’s value has been set,
it undergoes no further rule-set parsing.
$h
is intended for
use in the A=
equate (A= on page 738) of
delivery agent definitions. Normally, it is
converted to all lowercase before use, but that
conversion can be suppressed with the F=h
delivery agent flag
(F=h on page 772).
$h
is also used by
the localaddr
rule set 5 (The localaddr Rule Set 5 on page 700) to process
+detail addresses (Plussed Detail Addressing on page
476).
$h
is transient. If
it is defined in the configuration file or in the
command line, that definition can be ignored by
sendmail. Note that a
$&
prefix
is necessary when you reference this macro in rules
(that is, use $&h
, not $h
).
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.