Moving from one Dovecot server to another Dovecot server

Steffen Kaiser skdovecot at smail.inf.fh-brs.de
Wed Aug 27 11:55:42 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, 27 Aug 2014, Michael wrote:
> Quoting Steffen Kaiser <skdovecot at 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.

> 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.

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQEVAwUBU/3HP3z1H7kL/d9rAQLoaAgAoxxV6wnKnbVsalLbiZqDkVUyo79+lVrO
+ztMyVHGT0Di05LG8y0V/z62Nu5jpkk2Si4ArkAix5W3eyzL+8bjbSrWy6e36/VG
UvgzyQOzzPu0JkNoPQA6bpNyJl9HRXIVJ9f0Y2x7mnETRTyDSMT9dn5XWxKArz2E
3/OeVX3lhIest29cgihG6D0CVWpFcM0BlrSXBvb5TianaS+xv3kV+E7jHRCCGqPR
amElJR9e7h9WZwWyzIXB4ApJ47PUOkG8v91CjNMc3dip2kh1n10kj2uDI91dxZrw
yxD8/3TCPUWoV+AvAl9l3xGW1WH6I/kc1SfmUAR5fsIOvBBfYEFT8Q==
=fbqp
-----END PGP SIGNATURE-----


More information about the dovecot mailing list