Re: [exim] System Filter problem

Top Page
Delete this message
Reply to this message
Author: Stephen Gran
Date:  
To: exim-users
Subject: Re: [exim] System Filter problem
On Wed, Sep 13, 2006 at 01:14:24PM -0400, Gary Rule said:
> I have a system filter that has a rule that looks like this:
>
> if ${lc:$h_To:} matches "^rt@???"
> or ${lc:$h_To:} matches "^<rt@???>" and
>          (
>          $sender_address_domain does not contain "domain.com"
>          )
> then
>          fail text "Email to our request tracker system MUST come from a 
>   Company address."
> endif

>
>
> This seems to be blocking ALL mail to rt@??? though and I cannot
> figure out what I have done wrong. Basically i want to stop anyone from
> sending to rt@??? unless their from address contains domain.com.


I don't know the answer, but my first guess is that it could be being
expanded like:

if A or (B and {c}) then reject

instead of:

if ((A or B) and {C}) then reject

which would certainly reject all mail to rt@domain.
--
--------------------------------------------------------------------------
|  Stephen Gran                  | I'd rather have two girls at 21 each    |
|  steve@???             | than one girl at 42.   -- W.C. Fields   |
|  http://www.lobefin.net/~steve |                                         |

--------------------------------------------------------------------------