Moving from one Dovecot server to another Dovecot server
Hi, 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.
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
dsync -u mine@michi.su mirror ssh -i my_ssh_key vmail@my-mailserver.com dsync -u mine@michi.su
Where vmail is the user that is used by Dovecot to access mail_location.
I assume the above command will only mirror the mailbox of user mine@michi.su, right? Is it possible to sync all mailboxes with just one single command? Is it possible to sync also all ACL lists and sieve scripts? Is using dsync the right way for my purpose?
Thanks, Michael
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
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?
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?
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBU/12Unz1H7kL/d9rAQIWOAf+I4oL9e+JufmK08EmHJbTdZwkkZsZUHNI L1Ri4UQeMvz04ENDuCuYtuxME9b9wMsbdOFQ3IonpGU0txMh7QI3xLJ5+DZjyOUG 3GUx+fB96459oGEgcPXfTQdeI62HXx5jGFf5mXV+PxF71Ih1OpgTbfB1i/0v353B w0UQZON2kHvDcs6UQaatbq+uULrNZ1CAKwbG+wGWknVOKDGq60cu0kdja3rpqlZa NltX3i6CW/t9KUpYvjmReuhbHK+0Ggp1+RV/rjDBkrlqXoKPxxjOidxt8EWS3nif GaH/6zPlr08hAytQDsa87tBXmtcQSeMLPdD1BpnzobLBVHQUfc32Vw== =0z4k -----END PGP SIGNATURE-----
Quoting Steffen Kaiser <skdovecot@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
Am 27.08.2014 um 13:23 schrieb Michael:
Quoting Steffen Kaiser <skdovecot@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.
Perhaps the official Dovecot Repo would be a better solution: http://shop.dovecot.fi/home/8-dovecot-ee-repository-access.html
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
Philipp
Quoting Philipp Faeustlin <Philipp.Faeustlin@uni-hohenheim.de>:
Am 27.08.2014 um 13:23 schrieb Michael:
Quoting Steffen Kaiser <skdovecot@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.
Perhaps the official Dovecot Repo would be a better solution: http://shop.dovecot.fi/home/8-dovecot-ee-repository-access.html
I've already been aware of this web site. I saw that they offer only
packages for Ubuntu 12.04. I'm Using Ubuntu 14.04. I know that often
it's not a problem to take packages from another version. But I'm not
sure if there are some conflicts to be expected. So I wrote an e-mail
to the contact but did not get an answer yet.
Do you have any information if this repo can also be used on Ubuntu
14.04 without problems?
Thanks, Michael
Am 27.08.2014 um 14:52 schrieb Michael:
Quoting Philipp Faeustlin <Philipp.Faeustlin@uni-hohenheim.de>:
Am 27.08.2014 um 13:23 schrieb Michael:
Quoting Steffen Kaiser <skdovecot@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.
Perhaps the official Dovecot Repo would be a better solution: http://shop.dovecot.fi/home/8-dovecot-ee-repository-access.html
I've already been aware of this web site. I saw that they offer only packages for Ubuntu 12.04. I'm Using Ubuntu 14.04. I know that often it's not a problem to take packages from another version. But I'm not sure if there are some conflicts to be expected. So I wrote an e-mail to the contact but did not get an answer yet. Do you have any information if this repo can also be used on Ubuntu 14.04 without problems?
No I haven't, but I think it is better to have the latest version of Dovecot, especially with Ubuntu because not long ago I found this: http://people.canonical.com/~ubuntu-security/cve/2014/CVE-2014-3430.html I'm not sure how to judge this message but it doesn't sounds very good.
Thanks, Michael
-- Philipp Fäustlin Universität Hohenheim Kommunikations-, Informations- und Medienzentrum (630) IT-Dienste | Abt. Kommunikation, E-Learning u. Print | Mail
Schloss, Westhof Süd | 70599 Stuttgart Tel.: +49 711 459-22838 | Fax: +49 711 459-23449 https://kim.uni-hohenheim.de/
Quoting Philipp Faeustlin <Philipp.Faeustlin@uni-hohenheim.de>:
Am 27.08.2014 um 14:52 schrieb Michael:
I've already been aware of this web site. I saw that they offer only packages for Ubuntu 12.04. I'm Using Ubuntu 14.04. I know that often it's not a problem to take packages from another version. But I'm not sure if there are some conflicts to be expected. So I wrote an e-mail to the contact but did not get an answer yet. Do you have any information if this repo can also be used on Ubuntu 14.04 without problems? No I haven't, but I think it is better to have the latest version of
Dovecot, especially with Ubuntu because not long ago I found this: http://people.canonical.com/~ubuntu-security/cve/2014/CVE-2014-3430.html I'm not sure how to judge this message but it doesn't sounds very good.
You are right. According to [1] it doesn't look to be fixed in the
most recent package provided by Ubuntu.
It is fixed in version 2.2.13~rc1-1 which is not available for Ubuntu.
I thought security issues will be fixed ASAP by the maintainer...
[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=747549
Michael
On 27.8.2014 15:25, Michael wrote:
Quoting Philipp Faeustlin <Philipp.Faeustlin@uni-hohenheim.de>:
Am 27.08.2014 um 14:52 schrieb Michael:
I've already been aware of this web site. I saw that they offer only packages for Ubuntu 12.04. I'm Using Ubuntu 14.04. I know that often it's not a problem to take packages from another version. But I'm not sure if there are some conflicts to be expected. So I wrote an e-mail to the contact but did not get an answer yet. Do you have any information if this repo can also be used on Ubuntu 14.04 without problems? No I haven't, but I think it is better to have the latest version of Dovecot, especially with Ubuntu because not long ago I found this: http://people.canonical.com/~ubuntu-security/cve/2014/CVE-2014-3430.html I'm not sure how to judge this message but it doesn't sounds very good.
You are right. According to [1] it doesn't look to be fixed in the most recent package provided by Ubuntu. It is fixed in version 2.2.13~rc1-1 which is not available for Ubuntu.
I thought security issues will be fixed ASAP by the maintainer...
[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=747549
Michael
Both Debian and Ubuntu usually stay on specific version of the software in their stable branches and only backport fixes, mostly security related ones.
The package you are looking for in Ubuntu is 1:2.2.9-1ubuntu2.1 . See changelog for that package - http://changelogs.ubuntu.com/changelogs/binary/d/dovecot-core/1:2.2.9-1ubunt... . According to this CVE-2014-3430 was fixed in may.
In Debian it's 1:2.1.7-7+deb7u1 , fixed in june
Quoting Jiri Bourek <bourek@thinline.cz>:
On 27.8.2014 15:25, Michael wrote:
Quoting Philipp Faeustlin <Philipp.Faeustlin@uni-hohenheim.de>:
Am 27.08.2014 um 14:52 schrieb Michael:
I've already been aware of this web site. I saw that they offer only packages for Ubuntu 12.04. I'm Using Ubuntu 14.04. I know that often it's not a problem to take packages from another version. But I'm not sure if there are some conflicts to be expected. So I wrote an e-mail to the contact but did not get an answer yet. Do you have any information if this repo can also be used on Ubuntu 14.04 without problems? No I haven't, but I think it is better to have the latest version of Dovecot, especially with Ubuntu because not long ago I found this: http://people.canonical.com/~ubuntu-security/cve/2014/CVE-2014-3430.html I'm not sure how to judge this message but it doesn't sounds very good.
You are right. According to [1] it doesn't look to be fixed in the most recent package provided by Ubuntu. It is fixed in version 2.2.13~rc1-1 which is not available for Ubuntu.
I thought security issues will be fixed ASAP by the maintainer...
[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=747549
Michael
Both Debian and Ubuntu usually stay on specific version of the
software in their stable branches and only backport fixes, mostly
security related ones.The package you are looking for in Ubuntu is 1:2.2.9-1ubuntu2.1 .
See changelog for that package -
http://changelogs.ubuntu.com/changelogs/binary/d/dovecot-core/1:2.2.9-1ubunt... . According to this CVE-2014-3430 was fixed in
may.In Debian it's 1:2.1.7-7+deb7u1 , fixed in june
Good to see that they fixed it within 5 days. Thanks for the URL.
Michael
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
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.
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-----
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
participants (4)
-
Jiri Bourek
-
Michael
-
Philipp Faeustlin
-
Steffen Kaiser