X-Git-Url: https://git.exim.org/users/jgh/exim.git/blobdiff_plain/db9452a9b5941d43e6ef3988cd0d30d2758844cf..322050c2d9e83d10f046da71aa2cd9cc5a355b0b:/doc/doc-docbook/spec.xfpt?ds=sidebyside diff --git a/doc/doc-docbook/spec.xfpt b/doc/doc-docbook/spec.xfpt index f437412dc..04c00d9f5 100644 --- a/doc/doc-docbook/spec.xfpt +++ b/doc/doc-docbook/spec.xfpt @@ -1,4 +1,4 @@ -. $Cambridge: exim/doc/doc-docbook/spec.xfpt,v 1.11 2006/07/31 13:19:36 ph10 Exp $ +. $Cambridge: exim/doc/doc-docbook/spec.xfpt,v 1.12 2006/07/31 14:19:31 ph10 Exp $ . . ///////////////////////////////////////////////////////////////////////////// . This is the primary source of the Exim Manual. It is an xfpt document that is @@ -17250,20 +17250,32 @@ text associated with the failure. For example, an alias file might contain: .code X.Employee: :fail: Gone away, no forwarding address .endd +.new In the case of an address that is being verified from an ACL or as the subject of a .cindex "VRFY error text" "display of" VRFY command, the text is included in the SMTP error response by default. .cindex "EXPN error text" "display of" -The text is not included in the response to an EXPN command. +The text is not included in the response to an EXPN command. In non-SMTP cases +the text is included in the error message that Exim generates. + +.cindex "SMTP" "error codes" +By default, Exim sends a 451 SMTP code for a &':defer:'&, and 550 for +&':fail:'&. However, if the message starts with three digits followed by a +space, optionally followed by an extended code of the form &'n.n.n'&, also +followed by a space, and the very first digit is the same as the default error +code, the code from the message is used instead. If the very first digit is +incorrect, a panic error is logged, and the default code is used. You can +suppress the use of the supplied code in a redirect router by setting the +&%forbid_smtp_code%& option true. In this case, any SMTP code is quietly +ignored. .cindex "&$acl_verify_message$&" In an ACL, an explicitly provided message overrides the default, but the default message is available in the variable &$acl_verify_message$& and can -therefore be included in a custom message if this is desired. Exim sends a 451 -SMTP code for a &':defer:'&, and 550 for &':fail:'&. In non-SMTP cases the text -is included in the error message that Exim generates. +therefore be included in a custom message if this is desired. +.wen Normally the error text is the rest of the redirection list &-- a comma does not terminate it &-- but a newline does act as a terminator. Newlines are not @@ -17587,6 +17599,15 @@ If this option is set true, only Exim filters are permitted when &%allow_filter%& is true. +.new +.cindex "SMTP" "error codes" +.option forbid_smtp_code redirect boolean false +If this option is set true, any SMTP error codes that are present at the start +of messages specified for &`:defer:`& or &`:fail:`& are quietly ignored, and +the default codes (451 and 550, respectively) are always used. +.wen + + .option hide_child_in_errmsg redirect boolean false @@ -24542,6 +24563,16 @@ it processes &%message%&. If the expansion fails, or generates an empty string, the modifier is ignored. For ACLs that are triggered by SMTP commands, the message is returned as part of the SMTP error response. +.new +.cindex "SMTP" "error codes" +By default, Exim uses a 550 SMTP code when it denies access. However, if the +message starts with three digits followed by a space, optionally followed by an +extended code of the form &'n.n.n'&, also followed by a space, and the very +first digit is the same as the default error code, the code from the message is +used instead. If the very first digit is incorrect, a panic error is logged, +and the default code is used. +.wen + The text is literal; any quotes are taken as literals, but because the string is expanded, backslash escapes are processed anyway. If the message contains newlines, this gives rise to a multi-line SMTP response. Like &%log_message%&,