Re: [exim] exim4 and courier userdb

Top Page
Delete this message
Reply to this message
Author: Christian Schmidt
Date:  
To: exim-users
Subject: Re: [exim] exim4 and courier userdb
Hello Marco,

Marco Meinardi, 21.06.2006 (d.m.y):

> I'm trying to set up exim4 with courier imap integration.
> I'm not going to use local users (I mean not those contained in
> /etc/passwd) but I want to use /etc/courier/userdb database file.
> Of course my mail server will be multi-domain.
>
> For example in /etc/courier/userdb I have the entry:
> name.surname    imappw=asdfhskdjgfkfgghfg-etc-etc...

>
> And in my local_user router I have the entry:
> local_parts = lsearch;/etc/courier/userdb


This expression only matches on local_parts found in your userdb
file...

> This works fine, it gets matched and delivered.
> Unfortunately, my imap user should contain also the domain, otherwise 
> the same username can't be used for more than one domain.
> So if I change my userdb file as follows:
> name.surname@domain    imappw=asdfhskdjgfkfgghfg-etc-etc...

>
> The lsearch fails.
> If I modify the lsearch like this:
> local_parts = partial(@)lsearch;/etc/courier/userdb
>
> Then I see that it tries to match name.surname or @name.surname, but it
> never tries name.surname@!


You need to make exim look for local_part _and_ domain_part in your
userdb file.

Regards,
Christian Schmidt

--
Christian Schmidt | Germany
No HTML Mails, please!