Hi,
We are a new network edition customer with about 10000 mailboxes. We are migrating some accounts from a Zimbra 8 test server into our multi-server environment. When exporting the accounts, we notice that for large mailboxes, folders that have over a 1000 emails are split into several folders of 1000 emails each, and named !1, !2, etc. For example, if there are 3500 emails in Inbox, the export file contains four folders with the following names: Inbox, Inbox!1, Inbox!2 and Inbox!3.
We were hoping that when importing the files back in, the emails would all be merged back into one folder again, but this doesn't seem to happen. Instead, the folder structure is retained, and this is very annoying to our users, as this structure is then replicated to Zimbra Desktop, Outlook, iPhones, etc.
We couldn't find any information in the documentation explaining this behaviour, and if there was some way of turning it off. Presently, our only solution seems to be to write a script to parse and put everything back into the right folder, and we really do not want to do this. We using zmmailbox to do the import/export are following the procedure outlined in this blog post on server to server migrations.
Any input is appreciated.
Zimbra Server to Server Migration - Large folders are split up for every 1000 emails
-
- Outstanding Member
- Posts: 343
- Joined: Fri Sep 12, 2014 10:39 pm
Zimbra Server to Server Migration - Large folders are split up for every 1000 emails
Why dont you give a try with zmztozmig tool? Zimbra to Zimbra Migration - Zimbra :: Wiki
-
- Posts: 9
- Joined: Tue Dec 18, 2018 12:18 pm
Re: Zimbra Server to Server Migration - Large folders are split up for every 1000 emails
Try using imapsync to resolve this problem.
Before running the command below run with the --dry parameter so that nothing is changed, then remove the --dry to make the changes
With --dry:
imapsync --dry --usecache --tmpdir $ {CACHE_DIR} --buffersize 18192000 --justfolders --delete2folders --delete2 --nosyncacls --subscribe --syncinternaldates --nofoldersizes --addheader --errorsmax 100 --tls1 - -host1 $ {SRCHOST} --user1 $ {USER} --authuser1 $ {SRCADMINUSER} --password1 $ {SRCADMINPASS} --tls2 --host2 $ {TGTHOST} --user2 $ {USER} --authuser2 $ {TGTUSERADMIN } --password2 {TGTADMINPASS}
Sem --dry:
imapsync --usecache --tmpdir $ {CACHE_DIR} --buffersize 18192000 --justfolders --delete2folders --delete2 --nosyncacls --subscribe --syncinternaldates --nofoldersizes --addheader --errorsmax 100 --tls1 --host1 $ {SRCHOST} --user1 $ {USER} --authuser1 $ {SRCADMINUSER} --password1 $ {SRCADMINPASS} --tls2 --host2 $ {TGTHOST} --user2 $ {USER} --authuser2 $ {TGTUSERADMIN} password2 {TGTADMINPASS}
Before running the command below run with the --dry parameter so that nothing is changed, then remove the --dry to make the changes
With --dry:
imapsync --dry --usecache --tmpdir $ {CACHE_DIR} --buffersize 18192000 --justfolders --delete2folders --delete2 --nosyncacls --subscribe --syncinternaldates --nofoldersizes --addheader --errorsmax 100 --tls1 - -host1 $ {SRCHOST} --user1 $ {USER} --authuser1 $ {SRCADMINUSER} --password1 $ {SRCADMINPASS} --tls2 --host2 $ {TGTHOST} --user2 $ {USER} --authuser2 $ {TGTUSERADMIN } --password2 {TGTADMINPASS}
Sem --dry:
imapsync --usecache --tmpdir $ {CACHE_DIR} --buffersize 18192000 --justfolders --delete2folders --delete2 --nosyncacls --subscribe --syncinternaldates --nofoldersizes --addheader --errorsmax 100 --tls1 --host1 $ {SRCHOST} --user1 $ {USER} --authuser1 $ {SRCADMINUSER} --password1 $ {SRCADMINPASS} --tls2 --host2 $ {TGTHOST} --user2 $ {USER} --authuser2 $ {TGTUSERADMIN} password2 {TGTADMINPASS}