Re: [Exim] smtp_return_error_details

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Giuliano Gavazzi
Ημερομηνία:  
Προς: Marc Langer, exim-users
Αντικείμενο: Re: [Exim] smtp_return_error_details
At 22:17 +0100 2003/03/09, Marc Langer wrote:
>Hello,
>
>does smtp_return_error_details only take effect when using
>address verification callouts? When using :fail: in an aliasfile, I'd like
>to return the message given after :fail: instead of a simply
>"550 unknown user", but setting smtp_return_error_details did not help :-(
>
>Marc


well, I did not know that this was the case, so thanks for bringing
this to my attention...
a quick look at the manual (looked for :fail:) and I found this:

    If "message" is used on a statement that verifies an address, the
message   |
    specified overrides any message that is generated by the
verification       |
    process. However, the original message is available in the
variable         |
    $acl_verify_message, so you can incorporate it into your message
if you     |
    wish. In particular, if you want the text from ":fail:" items in
redirect   |
    routers to be passed back as part of the SMTP response, you should
either   |
    not use a "message" modifier, or make use of $acl_verify_message.
|


so:

   accept  domains       = +local_domains
           endpass
           message       = Cannot deliver because: $acl_verify_message
           verify        = recipient


Unfortunately the $acl_verify_message for a standard "Unknown user"
is "Unrouteable address" (I think this is because exim runs out of
routers while attempting to route the address).

Perhaps adding a last redirect router like:

no_such_user:
driver = redirect
allow_fail
allow_defer
data = :fail: Unknown user

would generate the wanted message for unknown users.


Giuliano
--
H U M P H
    || |||
  software


Java & C++ Server/Client/Human Interface applications on MacOS - MacOS X
http://www.humph.com/