Re: [Exim] message= in ACL "check_message"

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Dennis Davis
Date:  
À: Frank Elsner
CC: EXIM Users
Sujet: Re: [Exim] message= in ACL "check_message"
>To: EXIM Users <exim-users@???>
>From: Frank Elsner <Elsner@???>
>Subject: [Exim] message= in ACL "check_message"
>Sender: exim-users-admin@???
>Date: Tue, 01 Apr 2003 11:30:13 +0200
>
>Currently I have
>
>check_message:
>  require message = Header verification failed
>          verify = header_syntax
>  require message = Sender verification failed
>          verify = header_sender
>  accept

>
>In case of syntax errors in "To: " lines the user gets the message
>"Header verification failed" which is not very useful for him.
>
>The log contains a far better message, for example
>
> H=bronto.zrz.tu-berlin.de [130.149.2.93] F=<elsner@???> rejected after DATA: unmatched doublequote in local part: failing address in "to" header is: "elsner <elsner@???
>
>How can I get the better message also to the user ?


Section 37.8 of the Spec sez:

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.

You might also like to consider setting:

smtp_return_error_details = true

in the main configuration if you want to get more detail in the
error messages returned. This is available in exim 4.11 and above.