Advice needed: Migration Dovecot to Kolab Cyrus. - Report
Winfried Ritsch
ritsch at algo.mur.at
Sat Mar 23 12:18:27 CET 2013
Hello,
Thanks for the all the help, I just finished the migration.
Migration
from dovecot 1.0rc1 (since 2006 not updated, up to 17 years old mails)
to Cyrus IMAP v2.4.17-Debian-2.4.17-3 on kolab.
Using imapsync from free Fedora archive: imapsync-1.525.tgz
source: https://fedorahosted.org/imapsync/
Done on a Debian wheezy system, march 2013, with needed packages:
aptitude install libmail-imapclient-perl libdigest-md5-file-perl \
libterm-readkey-perl libio-socket-ssl-perl \
libfile-spec-perl libdigest-hmac-perl
The problem was, that the imap stores hasnt been consistent and erroness,
since they migrated serverall times before and dovecot was an old version,
users did strange namings and folder-structures. So using --useuid for
messages did avoid most duplicates at target. Some mailbox-folders, which
where not selectable, was not created from imapsync.
For the solution see script in attachment with comments there:
1) With this script first the regextrans2 options with
--dry and --justfolders options for better naming conventions has been
developped and modified,
2) with --justfolders, missing folders where detected and a cyradm-script
generated which has been executed afterwards.
3) Migration with content has been done first twice as a presync (half a day),
after that stopping the mailserver and blocking imap from outside for the last
sync and then switched to new server. (I managed it to reduce to a 15min
downtime, sync generated 4.33 msg/sec average, maybe due the ssd-disk on
target.)
Afterwards, the old imap-sever has been made available with other domainname,
so user can correct last errors themselves within next month.
Thanks again for help.
mfg
winfried Ritsch
Am Samstag, 23. März 2013, 00:10:37 schrieb Scott Lambert:
> On Fri, Mar 22, 2013 at 12:31:07AM +0100, Winfried Ritsch wrote:
> > Hello,
> >
> > It now seems to work fast execpt one failure with nesting folders I cant
> > fix, e.g:
> >
> > Host1:
> >
> > ...
> > Host1 folder [art]
> >
> > Host1 Folder art: Could not examine: 995 NO Mailbox isn't selectable:
> > art
> >
> > Host1 folder [art/anfragen]
> >
> > Size: 6401396 Messages: 17 Biggest: 5646848
> >
> > ...
> >
> > What I saw was that the mailbox art (\HasChildren) but is no mailbox
> > storage, so it is not selectable, imapsync doesnt move it.
>
> Does Imapsync move the Children?
>
> > In Roundcubemail, the art mailbox is greyed out and when I try to
> > subscibe it, it says "SUBSCRIBE mailbox does not exist", which is true
> > looking at kolab listmailboxes. Even art/anfragen is there.
> >
> > Also this would be no problem, but using KMAIL, the mailbox-folder and
> > all their children is not listed, so I cant use it.
> >
> > I just put the script used below if someone interrested.
> >
> > Any hint how to fix this ?
>
> If it is just the one mailbox, I would be tempted to take the easy
> way out and make it selectable on the Dovecot server.
>
> There is this in the changelog:
>
> 1.500
> Enhancement: Added option --nocheckselectable to fix INBOX issue with
> Jana-server.
>
> Perhaps that would convince imapsync to create the mailbox on host2?
> I have not used it.
>
> > # --- Use uid instead of header
> > MAILMATCH="--useuid --expunge2 --subscribe_all"
>
> Users may be surprised if they are suddenly subscribed to folders
> that they had previously unsubscribed in order to avoid syncing
> that data to their mobile devices.
--
---- Atelier Algorythmics ----
Winfried Ritsch
Leitnergasse 7a,
A-8010 Graz
Austria
mobil: ++43 664 2439369
http://algo.mur.at/
--------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: myimapsync.sh
Type: application/x-shellscript
Size: 3719 bytes
Desc: not available
URL: <http://lists.kolab.org/pipermail/users/attachments/20130323/cebeb86d/attachment.bin>
More information about the users
mailing list