Prev | Current Page 470 | Next

Bryan Costales, Claus Assmann, George Jansen, Gregory Shapiro

"sendmail, 4th Edition"


This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
7.1 The Local_check_ Rule Sets | 259
Karith math
Scheck_eom
R$* $: $(math = $@ $&{nrcpts} $@ 1 $)
R TRUE $#OK
R FALSE $#error $@ 5.1.3 $: "Policy limits one recipient per envelope."
Here, we first declare a database map of type arith called math (?§23.7.1 on page
898). In the second line, we declare the check_eom rule set, which, in this case, contains
three rules (the R lines).
The first rule compares the number of recipients in the current value of the ${nrcpts}
macro (?§21.9.74 on page 837) to the constant value 1 to see whether the two are
equal. The second rule matches if the two are equal (if the number of recipients is
one) and returns OK so that the message will be accepted for final review by Milters
(if any). The last rule rejects the message with a statement that the policy ???limits one
recipient per message.??? But note that Milters can add recipients, so a better place to
enforce this policy is in the check_compat rule set (?§7.1.5 on page 259).
7.1.5 The check_compat Rule Set
Not all situations can be resolved by simply checking the RCPT To: or MAIL From:
address. Sometimes you will need to make judgments based on pairs of addresses, or
non-SMTP addresses or other information. To handle this situation, V8.


Pages:
458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482
typy bukmacherskie sufit podwieszany praca w holandii Okulary mieszkania