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

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Dean Brooks
日付:  
To: exim-users
題目: 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@???