Re: [exim] Contents of $acl_verify_message

Pàgina inicial
Delete this message
Reply to this message
Autor: Graeme Fowler
Data:  
A: exim-users
Assumpte: Re: [exim] Contents of $acl_verify_message
On Thu, 2010-03-11 at 20:09 +0100, Michael Naef wrote:
> You see this is not exactly what we want. I know at this place
> *that* SAV failed - but I want to know *why*.


What do you get in your logs?

This exact thing works perfectly for me, but the output of a debug
session is truncated because the response is multi-line:


>   SMTP<< 220 tahini.csx.cam.ac.uk ESMTP Exim 4.71 Thu, 11 Mar 2010
> 19:38:59 +0000
>   SMTP>> HELO boom.graemef.net
> waiting for data on socket
> read response data: size=65
>   SMTP<< 250 tahini.csx.cam.ac.uk Hello boom.graemef.net
> [82.113.154.29]
>   SMTP>> MAIL FROM:<>
> waiting for data on socket
> read response data: size=8
>   SMTP<< 250 OK
>   SMTP>> RCPT TO:<splurge@???>
> waiting for data on socket
> read response data: size=18
>   SMTP<< 550 unknown user
>   SMTP>> QUIT
> ----------- end verify ------------
> check set acl_m_VER = REJ--RR6: $acl_verify_message
>                     = REJ--RR6: Callout verification failed:
> 550 unknown user


further down in the session we see:


> processing "deny"
> check condition = ${if !eq{$acl_m_VER}{}}
>                 = true
> check set acl_m_REJ = $acl_m_VER
>                     = REJ--RR6: Callout verification failed:
> 550 unknown user
> deny: condition test succeeded
> SMTP>> 550 Recipient verification failed.
> 550 Recipient verification failed.
> LOG: MAIN REJECT
>   H=(me.me.com) [1.2.3.4] F=<> rejected RCPT <splurge@???>:
> REJ--RR6: Callout verification failed:
> quit
> SMTP<< quit


As you see there, the log message as printed in the debug output misses
everything after the newline. However in the rejectlog I see things of
the form:

2010-03-11 04:06:31 H=(localhost) [113.168.101.101] I=[82.113.154.29]:25
Warning: LOG--NQ: REJ--RR6: Callout verification failed:\n550 unknown
user connection-lost

[note that I have quite a complex set of log statements]

Graeme