Re: [exim] trouble with a condition on a deny

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Todd Lyons
Datum:  
To: Chad Leigh, Todd Lyons
CC: exim-users
Betreff: Re: [exim] trouble with a condition on a deny
On Mon, Mar 19, 2012 at 6:11 PM, Chad Leigh Shire.Net LLC
<chad+exim@???> wrote:
>
> I have tried all of the following and various other tries similar and they don't work.  They still block the mail from lists
>
>        deny    message = *************************** go away from impostor!  (error code XXFA)
>       condition = ${if and { \
>                       { match_address{${address:$header_from:}}{$recipients}} \
>                       { !match{lc:$header_Precedence:}{"list"}} \
>                            }{yes}{no}}
>        !authenticated = *


If all you added was the header match and it's still not detecting it,
then add the match to a separate warn statement before the deny to
verify that it's doing what you think it is. (Untested)

warn    message = Found list header
           condition = ${if match{lc:$header_Precedence:}{list} \
                            {yes}{no} }



> Any guidance on properly specifying the condition would be appreciated.


I suspect that putting the word "list" in quotes is the likely problem.

Also note that both my From and my To have the same email address. So
if I was an smtp auth user for you, you would block my email.

...Todd

--
Always code as if the guy who ends up maintaining your code will be a
violent psychopath who knows where you live. -- Martin Golding