RE: [EXIM] Cyrus

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Peter Bowyer, exim-users
Subject: RE: [EXIM] Cyrus
On Thu, 22 Oct 1998, Peter Bowyer wrote:

> All OK so far. But if I add a 'suffix' to the address and use 'pbtest+a' it
> does this :-


> cyrus director skipped: local part mismatch


Aha! I see why this is happening. It is in fact documented in section
21.1, but rather obscurely.

You have

       local_parts = lsearch;/etc/exim/cyrus


set on your director, and the test for local parts happens *before* the
test for suffixes. So the director never gets any further, and the
suffix isn't even considered.

You could get round this one by using "condition" rather than
"local_parts". If your suffix separator is - try something along the
lines of

   condition = "${lookup \
     {${if match{$local_part}{^([^-]+)-}{$1}{$local_part}}} \
     lsearch {/etc/exim/cyrus}{yes}{no}}"



On Thu, 22 Oct 1998, Ilya Ketris wrote:

>    try maybe "^\+.*" for this to comply with regular
>    expression syntax.


No, suffixes are not regular expressions.


On Thu, 22 Oct 1998, Peter Radcliffe wrote:

> Philip: just what is going on here ? I assume the - and + are being treated
> as special by something, but I can't see what.
>
> suffix = "-*:.*:+*"
> suffix_optional


I did a simple test with this, and it worked for me. Please run your
failing tests with -d9 to get some more information about why your
configuration isn't working.


-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.



--
*** Exim information can be found at http://www.exim.org/ ***