Re: [Exim] Exim + Courier IMAP

Góra strony
Delete this message
Reply to this message
Autor: Friso Kuipers
Data:  
Dla: exim-users
Temat: Re: [Exim] Exim + Courier IMAP
On 15 Jan, Jaco van der Schyff wrote:

> Messrs,
>
> I was browsing through the Exim archive, looking for information on
> how to configure Exim to work with Courier IMAP.
>
> I unfortunately couldnt get the information I was looking for, and I
> would like to enquire if anyone on the list managed to get it working.
>
> My problem lies specifically with exim checking the Courier userdb
> database and delivering to those virtual users.
>
> I would really appreciate any help you could give, as I am at a
> dead-end at the moment.
>


First make sure courier and exim use the same database library, in my
case libdb.so.1. For details, see courier and exim docs.

Create a user for the courier system, mine is
vmail:*:16:12:vmail:/home/vmail: This is explained in the courier docs.

Then you can use a director like this:

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


Note the 'dbmnz'. This tells exim not to append a zero to a lookup key.

This is the transport:

vmail_delivery:
driver = appendfile
maildir_format
create_directory = true
directory_mode = 0700
current_directory = /
check_string = ""
prefix = ""
suffix = ""
directory = ${home}
return_path_add
envelope_to_add
group = mail
user = vmail

Hope this gets you going,
Friso Kuipers.