Hi Markus On 01/27/17 09:44, Markus Rosjat wrote: > Hi there, > > so my question is what is the best strategy to migrate an exsiting LDAP > directory from a system that has sendmail and courier running to a > system with openSMTP and Dovecot. > Couple of years ago we changed from Courier to Dovecot and in short we wouldn't go back.
As setup we hold all our users in LDAP except for system users (_*, root, ...) and have a dedicated server for mail running postfix as MTA and dovecot. We started from Postfix+Courier with the LDAP users as system users. The users could log into their accounts via ssh and do what ever they wanted. This configuration caused some problems with performance and also caused some permission problems as the dovecot process had to run as the user. Now Dovecot has direct access to the LDAP using the users as virtual users, all maildirs belong to the dovecot user _vmail. Postfix distinguishes between local users and ldap users, local users are directly delivered via local delivery, ldap users relayed to dovecot's lmtp server. > - is it possible to migrate old maildirs to use with dovecot It is possible, Maildir can be used directly, mbox transferred. There also exists an courier-dovecot-migrate script that rewrites couriers index et. al. for dovecot. (https://wiki2.dovecot.org/Migration/Courier) You might want to move courier's flat maildir format to a file system format > > I dont want to set up just one virtual user to handle dovecot delivery > since I already have the LDAP users. I tested to set permissions on > directories and files for a LDAP user that has no systemaccount > counterpart and it seems to work but it doesn't feel right to do so in a > production environement :) See my comment further up to using an _vmail user Cheers Kim [demime 1.01d removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]