Moving from one Dovecot server to another Dovecot server

Michael mine at michi.su
Wed Aug 27 11:23:31 UTC 2014


Quoting Steffen Kaiser <skdovecot at smail.inf.fh-brs.de>:

> On Tue, 26 Aug 2014, Michael wrote:
>
>> I'm planning to move all mailboxes from a Dovecot 2.2.10 server to a
>> Dovecot 2.2.9 server. Dovecot is serving virtual users only.
>
> you downgrade?

Yes, because I'm switching from CentOS 6.5 to Ubuntu 14.04. On the  
CentOS system I used the ATrpms repo. For Ubuntu I did not find any  
appropriate 3rd party repo. So I'm going to use the standard repo.
>
>> I'm not sure if I can use dsync for that. According to the Wiki [1] the
>> command to mirror my own mailbox should look like
>
> 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

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


Michael



More information about the dovecot mailing list