Prev | Current Page 467 | Next

Bryan Costales, Claus Assmann, George Jansen, Gregory Shapiro

"sendmail, 4th Edition"

domain>
The check_rcpt rule set is called immediately after the RCPT To: command is read.
The workspace that is passed to check_rcpt is the address following the colon. The
envelope-recipient address might or might not be surrounded by angle brackets and
might or might not have other RFC2822 comments associated with it.
The check_rcpt rule set has default rules that do the following:
??? Reject empty envelope-recipient addresses, suchas < >, and those which have
nothing following the RCPT To:.
??? Ensure that the envelope-recipient address is either local, or one that is allowed
to be relayed.
??? If th eaccess database (?§7.5 on page 277) is used, look up the enveloperecipient??™s
host in that database and reject, accept, or defer the message based
on the returned lookup value. If the FEATURE(blacklist_recipients) (?§7.5.5 on
page 284) is declared, they also look up the envelope recipient in that database.
The Local_check_rcpt gives you a hook into the check_rcpt rule set before any of the
default rules are called. To illustrate one use for the Local_check_rcpt rule set, consider
the need to reject all incoming mail destined for the recipient named fax. One
method might look like this:
LOCAL_RULESETS
SLocal_check_rcpt
R $* $: $>canonify $1 focus on host
R fax <@ $=w . > $* $#error $@ 5.1.3 $: "cannot send mail to fax"
Here, the first rule calls the rule set named canonify to focus on the host part of the
address and normalize it.


Pages:
455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479
wierszyki bajka Tango Olsztyn pozycjonowanie typy bukmacherskie