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

Top Page
Delete this message
Reply to this message
Author: Dean Brooks
Date:  
To: exim-users
Subject: Re: [exim] trouble with a condition on a deny
On Mon, Mar 19, 2012 at 07:11:20PM -0600, Chad Leigh Shire.Net LLC 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 = *   


The match condition requires a regular expression for the list
parameter, so the quotes are getting you in trouble. Try something
like this:

deny message = go away from impostor!  (error code XXFA)
     condition = ${if and { \
                      { match_address{${address:$header_from:}}{$recipients}} \
                      { !match{lc:$header_Precedence:}{\N^list$\N}} \
                    }{yes}{no}}
    !authenticated = *


--
Dean Brooks
dean@???