Re: [exim] header checks not working in acl_smtp_data acl

Página Inicial
Delete this message
Reply to this message
Autor: Lena
Data:  
Para: exim-users
Assunto: Re: [exim] header checks not working in acl_smtp_data acl
> From: Todd Lyons <tlyons@???>

>   warn    logwrite      = DEBUG: Checking for List-Help header
>           condition     = ${if def:header_List-Help: }
>           logwrite      = DEBUG: Found List-Help header


> I telnet to the server, do the handshake and then paste a valid email
> into it with the following header:
> List-Help: blah
>
> The output in the log is:
> 2010-09-02 20:35:20 1OrGUz-0003m1-9t DEBUG: Checking for List-Help header
> 2010-09-02 20:35:21 1OrGUz-0003m1-9t <= tlyons@???


Condition is true, so the rest of the "warn" paragraph
(the second logwrite) is not executed.
The second logwrite should say "header not found". Or:

          condition     = ${if !def:header_List-Help:}


> I've
> tried with and without the trailing colon, with and without the
> trailing space, with both h_ and header_, and with and without
> uppercase leading letters.


I'd write without the space:

          condition     = ${if def:header_List-Help:}