Quoting Steffen Kaiser <skdovecot@smail.inf.fh-brs.de>:
On Wed, 27 Aug 2014, Michael wrote:
Quoting Steffen Kaiser <skdovecot@smail.inf.fh-brs.de>:
do you change the storage as well? Or: why not transfer the mailboxes, ACLs, scripts etc.pp. on file system level, e.g. using rsync?
On the new server I also changed some paths. For example the
mail_location is not in the users home folder, but in an sub folder like it is suggested by the Dovecot wiki. I also changed the location for the sieve scripts. So I thought it might be easier to just let a tool like dsync transfer everything.What I changed between these two systems is:
Old: mail_location = maildir:/var/mail/vhosts/%d/%n New: mail_location = maildir:/var/vmail/%d/%n/maildir
I would not use dsync here: use rsync, one mail location after another with the paritcular source and target location.
Maildir is relative to the mail location, so no problem. You copy all mail related data, too; e.g. ACLs, keywords, subscription. You might run into problems with the cache and index files, because you downgrade. But I do not think, the format changed between 2.2.10 & 2.2.9.
Yeah, but cache and index should get just rebuilt by Dovecot in case
of problems, right?
Old: sieve = /var/mail/vhosts/sieve-scripts/%d/%n/.dovecot.sieve sieve_before = /var/mail/vhosts/sieve-scripts/before sieve_dir = /var/mail/vhosts/sieve-scripts/%d/%n/sieve New: sieve = /var/vmail/%d/%n/sieve-scripts/.dovecot.sieve sieve_before = /var/vmail/sieve-scripts/before sieve_dir = /var/vmail/%d/%n/sieve-scripts/sieve
Here, too. Do it via filesystem level commands.
Ok, I'll use rsync for the job. Thanks for your help.
regards, Michael