3 on page 226).
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
838 | Chapter 21: The D (Define a Macro) Configuration Command
??? Recipients can be specified in message headers if a -t command-line argument is used
with sendmail (?§6.7.44 on page 248).
??? Recipients can be specified with the RCPT To: command (?§24.9.73 on page 1050).
??? Recipients can be added using aliasing (?§12.1 on page 460), mailing lists (?§13.1 on
page 485), and expansion of users??™ ~/.forward files (?§13.8 on page 500).
??? The MILTER interface (?§26.1 on page 1170) can add and remove recipients as a result
of policy decisions.
As eachrecipient is added to the internal list of recipients, sendmail updates the ${nrcpts}
macro to reflect the current count.
The ${nrcpts} macro can be useful in the check_compat rule set (?§7.1.5 on page 259) which
is called just before delivery. The value in ${nrcpts} can be used to check the number of
recipients, and to possibly refuse delivery if there are too many recipients. (See also the
MaxRecipientsPerMessage option, ?§24.9.73 on page 1050.)
${nrcpts} 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 $&{nrcpts}, not ${nrcpts}).
Pages:
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478