* If the host is listed with the RELAY_DOMAIN mc macro (?§7.4.1.1 on page 269) or in the file specified by the
RELAY_DOMAIN_FILE mc macro (?§7.4.1.2 on page 269), it is relayed without checking the access database.
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
7.5 The access Database | 285
This order is good for most sites, but might not be the best for your particular needs.
In case it isn??™t, the FEATURE(delay_checks) offers a way to check the SMTP RCPT To:
address first, before the other two checks, and then proceed with those other two
checks, if appropriate. Delayed checks are enabled with the FEATURE(delay_checks)
which you declare in your mc file like this:
FEATURE(access_db)
FEATURE(delay_checks)
Note that the FEATURE(access_db) needs to be enabled before you enable the
FEATURE(delay_checks).
Once enabled, the order of checks is changed. If the righthand side in the access
database is either REJECT or an SMTP error for the envelope recipient, the envelope
recipient is rejected as usual. But if the envelope recipient is allowed, the envelope
sender is then checked, and if it is rejected, the envelope recipient is rejected with the
envelope sender??™s error message. If the envelope sender is allowed, the connecting
host is checked, and if it is rejected, the envelope recipient is rejected with the connecting
host??™s error message.
Pages:
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528