Under V8, the -p switch(?§6.7.37 on page 246) is the recommended way
to assign a value to $r.
Note that a $& prefix is necessary when you reference this macro in rules (that is, use $&r,
not $r).
21.9.83 ${rcpt_addr}
Saved $: value for RCPT To: triple V8.10 and later
All envelope addresses (sender and recipient) are passed through the parse rule set 0 so that
a delivery agent can be selected. Upon receipt of the RCPT To: address, a delivery agent is
selected by the RHS of the parse rule set 0, which defines a triple that contains three pieces
of information for that address:
$#delivery_agent $@ host $:address
The $: portion of the triple contains the address part of the information with any commentary
removed. For example:
user@your.domain
Once that address is determined for the $: part of the delivery agent triple, it is copied to
this ${rcpt_addr} macro.
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
21.9 Alphabetized sendmail Macros | 843
${rcpt_addr} 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 $&{rcpt_addr}, not ${rcpt_addr}).
21.9.84 ${rcpt_host}
Saved $@ value for RCPT To: triple V8.
Pages:
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487