Re: [Exim] Exim + Courier IMAP

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Friso Kuipers
Dátum:  
Címzett: exim-users
Új témák: Re: [Exim] Exim + Courier IMA
Tárgy: Re: [Exim] Exim + Courier IMAP
On 24 Jan, Dave C. wrote:

> On Tue, 15 Jan 2002, Friso Kuipers wrote:
>
>>
>> vmail_smartlist:
>>   driver = smartuser
>>   local_parts = dbmnz;/etc/userdb.dat
>>   home_directory = "${if match{${extract{3}{|}\
>>                       {${local_part_data}}}}{^mail=(.+)\\$}{$1}fail}"
>>   transport = vmail_delivery

>
> I have question on this - you seem to be relying that the home
> directory is always in the 3rd field. From what I've seen, the
> ordering of the fields is arbitrary...
>


True. When I started to use courier in 2000 I slapped together a script
to organise the several scripts and programs you need to add and remove
users. In my setup it's always the third field, but doesn't need to be
in general. Which I forgot about (I'm the kind of person who forgets his
own birthday). Looking at my script again it seems you need to use the
'userdb' perl script in a consistent manner.

> Now, I seem to remember dimly some way of extracting fields by
> namefrom this sort of data:
>
> eg field1=data field2=otherdate anotherfield=something)
>
> from within exim directly - does anyone have a pointer for that or am
> I just hallucinating?


You mean extract all field for a key and parse them. Sounds complicated.

Regards,
Friso Kuipers.