Hi! I'm currently running an small imap-server on Dovecot 2.2.4 but will retire that server. I've set up an new server with Dovecot 2.3.4 and will migrate the mailboxes (maildir-format) from the old to the new server. I'm planning to restructure the accounts a bit when migrating so I need to move them one by one. Its only a few so thats not a big issue. Both servers are using virtual accounts (users file). I've understood that best method for migration is to run doveadm backup -R from the new server. But I really cant figure out what other parameters or settings that I need to perform that task and if it should be run as user vmail or root. Would be greatful for any tips, hints, links or similiar. Regards, Hans
Hans Brage skrev den 2018-12-29 22:49:> Would be greatful for any tips, hints, links or similiar.if you want external tools i think imapsync is best way to sync all, it can keep source or delete, so you have backup in case of errors, it does not sync sieve, this is still not makeed, so each user must self copy sieve scripts from old to new via webmail or thunderbird with sieve plugin
> On 29 Dec 2018, at 23.49, Hans Brage <hans at plattformen.se> wrote: > > Hi! > > I'm currently running an small imap-server on Dovecot 2.2.4 but will retire that server. I've set up an new server with Dovecot 2.3.4 and will migrate the mailboxes (maildir-format) from the old to the new server. I'm planning to restructure the accounts a bit when migrating so I need to move them one by one. Its only a few so thats not a big issue. > > Both servers are using virtual accounts (users file). > > I've understood that best method for migration is to run doveadm backup -R from the new server. But I really cant figure out what other parameters or settings that I need to perform that task and if it should be run as user vmail or root. > > Would be greatful for any tips, hints, links or similiar.Once you have the new server set up, you can use dsync over ssh to sync the mailboxes with something like: doveadm backup -u user at newserver -R ssh sudouser at oldserver sudo /usr/bin/doveadm dsync-server -u user at oldserver needs to be run as root on new server. Also ssh access with keys and without password is recommended. Sami
Thanks! That was a really useful answer. // Hans Den 2018-12-30 kl. 10:53, skrev Sami Ketola:>> On 29 Dec 2018, at 23.49, Hans Brage <hans at plattformen.se> wrote: >> >> Hi! >> >> I'm currently running an small imap-server on Dovecot 2.2.4 but will retire that server. I've set up an new server with Dovecot 2.3.4 and will migrate the mailboxes (maildir-format) from the old to the new server. I'm planning to restructure the accounts a bit when migrating so I need to move them one by one. Its only a few so thats not a big issue. >> >> Both servers are using virtual accounts (users file). >> >> I've understood that best method for migration is to run doveadm backup -R from the new server. But I really cant figure out what other parameters or settings that I need to perform that task and if it should be run as user vmail or root. >> >> Would be greatful for any tips, hints, links or similiar. > > Once you have the new server set up, you can use dsync over ssh to sync the mailboxes with something like: > > doveadm backup -u user at newserver -R ssh sudouser at oldserver sudo /usr/bin/doveadm dsync-server -u user at oldserver > > needs to be run as root on new server. Also ssh access with keys and without password is recommended. > > Sami > >
Am 30.12.18 um 10:53 schrieb Sami Ketola:> >> On 29 Dec 2018, at 23.49, Hans Brage <hans at plattformen.se> wrote: >> >> Hi! >> >> I'm currently running an small imap-server on Dovecot 2.2.4 but will retire that server. I've set up an new server with Dovecot 2.3.4 and will migrate the mailboxes (maildir-format) from the old to the new server. I'm planning to restructure the accounts a bit when migrating so I need to move them one by one. Its only a few so thats not a big issue. >> >> Both servers are using virtual accounts (users file). >> >> I've understood that best method for migration is to run doveadm backup -R from the new server. But I really cant figure out what other parameters or settings that I need to perform that task and if it should be run as user vmail or root. >> >> Would be greatful for any tips, hints, links or similiar. > > > Once you have the new server set up, you can use dsync over ssh to sync the mailboxes with something like: > > doveadm backup -u user at newserver -R ssh sudouser at oldserver sudo /usr/bin/doveadm dsync-server -u user at oldserver > > needs to be run as root on new server. Also ssh access with keys and without password is recommended.I used to run `doveadm backup` on the new server with glusterfs and at the middle of the sync the glusterfs is gone. Have anyone good experience with glusterfs and `doveadm backup/sync`?> SamiRegards Aleks