Hi Kim,

I dont like the idea of one single virtual user handling all the traffic to the maildirectories. I did read about it but it feels strange to me. On the other hand I'm only the guy who has topick up old things and gets tasked to maked them working with new parts :(

Am 27.01.2017 um 10:48 schrieb Kim Zeitler:
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]


--
Markus Rosjat    fon: +49 351 8107223    mail: ros...@ghweb.de

G+H Webservice GbR Gorzolla, Herrmann
Königsbrücker Str. 70, 01099 Dresden

http://www.ghweb.de
fon: +49 351 8107220   fax: +49 351 8107227

Bitte prüfen Sie, ob diese Mail wirklich ausgedruckt werden muss! Before you print it, think about your responsibility and commitment to the ENVIRONMENT

Reply via email to