This
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
7.5 The access Database | 281
special form of keyword in your access database allows you to cause sendmail to print
a code, followed by words of your choice. Consider this entry in the access database:
From:sales@spam.com ERROR:554 Spam delivery is unavailable.
Here we chose 554, which stands for ???service unavailable.??? When mail is received at
your site, this rule will cause the following interaction in the SMTP conversation:
MAIL From:
554 5.0.0 ... Spam delivery is unavailable.
The text you give following the SMTP might or might not appear in the bounced
mail that sales receives.
The XYZ code you specify does not have to be a 500 code (meaning failure). You are
also free to use 400 codes (to defer the mail) too. Deferral might be appropriate as a
means to handle a temporary resource limitation:
newsupdates@your.domain 421 Our database is down for two days for repair
7.5.2.7 ERROR:XYZ text
This righthand value is the same as the ???XYX text??? expression discussed earlier, but
the ERROR: signals that the envelope sender should be rejected. The XYZ is optional,
and sendmail will supply a value if it is missing. This provides a handy way to reject
mail without having to remember the correct SMTP numbers:
sales@cybermarketing.
Pages:
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521