Prev | Current Page 1254 | Next

Bryan Costales, Claus Assmann, George Jansen, Gregory Shapiro

"sendmail, 4th Edition"

*.* EX_UNAVAILABLE unavailable Any unrecognized 5.y.z code
*.*.* EX_CONFIG config Any other unrecognized code
Table 20-4. DSN versus exit(2) values with $@ of $#error (continued)
DSN exit(2) String Meaning
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
20.4 Delivery Agents by Name | 723
If the expression following the $@ is non-numeric, sendmail looks up the string and
translates any string it recognizes into the appropriate exit(2) value. The recognized
strings are listed in the third column of Table 20-4. For example, the following will
cause sendmail to exit with an EX_UNAVAILABLE value:
R$* < @ evilhost.domain > $* $#error $@ unavailable $: You are bad, go away
If the string following the $@ is not one of those listed in the table, and is not the special
word quarantine (?§11.10.2.6 on page 442) the default exit(2) value becomes EX_
UNAVAILABLE.
20.4.4.2 The $: part when used with the error delivery agent
Recall that the text of the error message following the $: is used as a literal error message.
That is, this $: part:
R... $#error $@ 5.0.0 $: george doesn't sleep here anymore
produces this error for the address george@wash.dc.gov:
553 5.0.0 ... george doesn't sleep here anymore
Here, the 553 is an SMTP code (see RFC821). If you want a different SMTP code
issued, you can do so by prefixing the $: part with it, as shown:
R.


Pages:
1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266
brokat ogrzewanie lubuskie Restauracja Oberża PRL tworzenie stron internetowych skarżysko kamienna eko mama