[Dovecot] Courier to dovecot migrations

Daniel Grilo daniel.grilo at pdmfc.com
Tue Mar 16 11:56:48 EET 2010


Dear All,

I saw some topics discussed in forums about this, but none with my 
problems :(

Currently we have a mailserver postfix with courier-imap-4.1.1, and 
courier-pop3 and courier-authlib.

Our Maildir's are written in the users home directory (ex: ~/Maildir)

I'm now migrating the mailserver to other cluster and installing with 
dovecot. We're also moving the Maildir's to other directory (ex: 
/opt/mailboxes/%u)

I've ran your perl script courier-dovecot-migrate-1.0.pl which worked 
just great (as far as I can tell from the OK messages) .. but when 
configuring my mail client for this account I get the following:

Mar 16 09:49:27 magenta dovecot: auth(default): master out: USER        69     scanner  system_user=scanner     uid=734 gid=100 home=/home/scanner

Mar 16 09:49:27 magenta dovecot: imap-login: Login: user=<scanner>, method=PLAIN, rip=::ffff:192.168.1.210, lip=::ffff:192.168.1.110

Mar 16 09:49:27 magenta dovecot: IMAP(scanner): Effective uid=734, gid=100, home=/home/scanner

Mar 16 09:49:27 magenta dovecot: IMAP(scanner): maildir: data=/opt/mailboxes/scanner

Mar 16 09:49:27 magenta dovecot: IMAP(scanner): maildir: root=/opt/mailboxes/scanner, index=/opt/mailboxes/scanner, control=, inbox=

Mar 16 09:49:27 magenta dovecot: IMAP(scanner): stat(/opt/mailboxes/scanner/cur) failed: Permission denied

Mar 16 09:49:27 magenta dovecot: IMAP(scanner): stat(/opt/mailboxes/scanner/cur) failed: Permission denied

[root at magenta ~]# ls -la /opt/mailboxes/

total 36

drwxrwx--- 4 root    dovecot  4096 Mar 15 11:49 .

drwxr-xr-x 6 root    dovecot  4096 Mar  9  2009 ..

drwxrwx--- 2 root    root    16384 Feb 10 15:55 lost+found

drwx------ 9 scanner users    4096 Mar 15 11:56 scanner


The second problem is between postfix / dovecot.. When I send an email 
to this user I get the following:

Mar 16 09:52:11 magenta postfix/local[19065]: warning: connect #1 to subsystem private/dovecot: Connection refused

Mar 16 09:52:12 magenta postfix/local[19064]: warning: connect #5 to subsystem private/dovecot: Connection refused


I've the following on my /etc/postfix/main.cf

## deliver with dovecot

dovecot_destination_recipient_limit = 1

mailbox_transport = dovecot

smtpd_sasl_auth_enable = yes

smtpd_client_restrictions = permit_sasl_authenticated

I hope you can give me a hand on this :) If you need further 
information, please let me know (perhaps I forgot something)

Best Regards
    Daniel

-- 
Daniel Grilo
Partner of Grupo PDM
Av. Conde Valbom 30, 3o
1050-068 Lisboa (Portugal)
web: http://www.pdmfc.com     
Tel: +351 21 357 20 29 // mobile: +351 91 388 94 39 (ext: 716)
Fax: +351 21 357 20 31 

Your mode of life will be changed for the better because of good news soon.



More information about the dovecot mailing list