7.5.4 Rejection Message for REJECT
When an address is rejected because of the presence of REJECT in the access database,
it is rejected with the default message:
550 5.7.1 Access denied
Beginning withV8.9 sendmail, you can change that message (to augment it or to clarify
the reason for the rejection) using the confREJECT_MSG mc file macro. For example,
to show why the message was rejected, you could place the following in your mc
file:
define(`confREJECT_MSG??, `550 Access denied. See http://www.your.domain/access_
denied??)
Because the message you specify will be quoted in the configuration file, you cannot
place any m4 macros or positional m4 macros in the message. They will be silently
stripped from the message.
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
284 | Chapter 7: How to Handle Spam
But note that, beginning with V8.13, quotation marks are no longer automatically
inserted. Instead, the value in confREJECT_MSG is inserted into your cf file as is (with
no added quotation marks). Note that if you previously depended on this autoquoting
in your mc file, you will now have to add quotation marks of your own.
7.5.5 Reject per Recipient
The FEATURE(access_db) (?§7.5 on page 277) provides a way to selectively reject
envelope-sender addresses. By declaring this FEATURE(blacklist_recipients), you
enable the access database to also selectively reject envelope-recipient addresses:
FEATURE(`blacklist_recipients??)
Consider the need to prevent outsiders from posting to strictly inside mailing lists.
Pages:
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526