1

Topic: migrate maildir folder from old server

which folder among these to be copied into /var/vmail/domain/username/Maildir ?

i tried copied all of them but nothing came out on roundcube even after 'chmod -R vmail:vmail /var/vmail/domain/username/'

courierimapkeywords   
cur                 
dovecot.index.log  new
courierimapsubscribed 
dovecot.index       
dovecot-uidlist   
subscriptions
courierimapuiddb       
dovecot.index.cache 
maildirsize       
tmp

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: migrate maildir folder from old server

Please set "mail_debug = yes" in dovecot.conf, restart it and monitor /var/log/sieve.log. So that you can know which mailbox it accessing.

3

Re: migrate maildir folder from old server

ZhangHuangbin wrote:

Please set "mail_debug = yes" in dovecot.conf, restart it and monitor /var/log/sieve.log. So that you can know which mailbox it accessing.

here's the output of /var/log/dovecot.log
dovecot: Dec 09 20:51:30 Info: IMAP(fitri@mydomain.com.my): maildir: data=~/vmail/mydomain.com.my/fitri//Maildir/
dovecot: Dec 09 20:51:30 Info: IMAP(fitri@mydomain.com.my): maildir++: root=/var/vmail/mydomain.com.my/fitri//Maildir, index=, control=, inbox=/var/vmail/mydomain.com.my/fitri//Maildir
dovecot: Dec 09 20:51:30 Info: imap-login: Login: user=<fitri@mydomain.com.my>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
dovecot: Dec 09 20:51:30 Info: IMAP(fitri@mydomain.com.my): Disconnected: Logged out bytes=71/376

although the double forward slash before Maildir is a bit odd...but it can be accessed from terminal

4

Re: migrate maildir folder from old server

So, dovecot considers "/var/vmail/mydomain.com.my/fitri//Maildir/" as mailbox of this user. You can simply copy old mailboxes to this directory. e.g.:

/var/vmail/mydomain.com.my/fitri//Maildir/cur/
/var/vmail/mydomain.com.my/fitri//Maildir/tmp/
/var/vmail/mydomain.com.my/fitri//Maildir/new/

5

Re: migrate maildir folder from old server

ZhangHuangbin wrote:

So, dovecot considers "/var/vmail/mydomain.com.my/fitri//Maildir/" as mailbox of this user. You can simply copy old mailboxes to this directory. e.g.:

/var/vmail/mydomain.com.my/fitri//Maildir/cur/
/var/vmail/mydomain.com.my/fitri//Maildir/tmp/
/var/vmail/mydomain.com.my/fitri//Maildir/new/

thanks but it did not work. thankfully imapsync can do that just fine