7.1 on page 898) to
the literal value 25. If the test fails (if there are 25 or more bad envelope recipients) the second
rule returns FALSE (in the workspace) and the message is rejected using the third rule.
Note that this ${nbadrcpts} macro can also be used by Milters, but remember that it is reliable
only if you fetchits value after all envelope recipients have been processed. You may
add this macro to those passed to your Milter with a line like the following in your mc
configuration file:
define(`confMILTER_MACROS_EOM??, confMILTER_MACROS_EOM``, {nbadrcpts}????)
Also note that the two single quotes are necessary because the second argument to the
define command contains a comma. This line in your mc configuration file makes the
${nbadrcpts} macro available to your Milters after the entire envelope has been processed,
but before the final dot has been acknowledged.
Be aware that ${nbadrcpts} 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 $&{nbadrcpts}, not ${nbadrcpts}).
21.9.74 ${nrcpts}
Number of envelope recipients V8.9 and later
The recipients of an email message can be specified or added to the message in several
ways:
??? Recipients can be specified as part of sendmail??™s command line (?§6.
Pages:
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477