I'm just trying to migrate a mailbox from a cyrus-imap-server to zimbra. I tried a lot of imap-sync tools and everyone fails cause it looses the connection to zimbra. Even copy inside a GUI-client like thunderbird fails after a while. The mailbox is around ~5GB mails in ~ 150 nested mailfolders.

By now I try the linux-commandline tool mailsync cause some other posters told me that it works better with zimbra than the widely used imapsync.

mailsync manages to sync around 100MB on each run and then the following error happens:

[[CLOSED] IMAP connection lost]
Error: [CLOSED] IMAP connection lost
[[CLOSED] IMAP connection lost]
Error: [CLOSED] IMAP connection lost
[Trying IP address [IP.OF.ZIMBRA.SERVER]]
Error: APPEND failed
[[CLOSED] IMAP connection lost]
Error: [CLOSED] IMAP connection lost
[[CLOSED] IMAP connection lost]
Error: [CLOSED] IMAP connection lost

The mailbox-log of my zimbra-suite tells me the following:

2008-12-08 12:37:37,312 INFO [ImapServer-132] [] imap - [xx.xx.xx.xx] connected
2008-12-08 12:37:37,373 INFO [ImapServer-132] [name=xxx@xxx.xxx;ip=xx.xx.xx.xx;] imap - user xxx@xxxxx.xxx authenticated, mechanism=PLAIN
2008-12-08 12:37:37,374 WARN [ImapServer-132] [name=xxx@xxxx.xxxx;ip=10.21.1.158;] imap - APPEND failed
com.zimbra.common.service.ServiceException: system failure: javax.mail.MessagingException: Message data cannot be null or empty.
ExceptionId:ImapServer-132:1228736257374:5bdd875273a18d1f
Code:service.FAILURE
at com.zimbra.common.service.ServiceException.FAILURE (ServiceException.java:253)
at com.zimbra.cs.imap.ImapHandler.append(ImapHandler. java:2072)
at com.zimbra.cs.imap.ImapHandler.doAPPEND(ImapHandle r.java:2005)
at com.zimbra.cs.imap.ImapHandler.executeRequest(Imap Handler.java:308)
at com.zimbra.cs.imap.TcpImapHandler.processCommand(T cpImapHandler.java:124)
at com.zimbra.cs.tcpserver.ProtocolHandler.processCon nection(ProtocolHandler.java:160)
at com.zimbra.cs.tcpserver.ProtocolHandler.run(Protoc olHandler.java:128)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Wo rker.run(Unknown Source)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.mail.MessagingException: Message data cannot be null or empty.
at com.zimbra.cs.mime.ParsedMessage.<init>(ParsedMess age.java:156)
at com.zimbra.cs.imap.ImapHandler.append(ImapHandler. java:2052)
... 7 more
2008-12-08 12:37:37,375 INFO [ImapServer-132] [] ProtocolHandler - Handler exiting normally


I use version zcs-5.0.10_GA_2638.UBUNTU8_64.20081003052844 on a VM running Ubuntu 8.04.01 server.

thnx for any advice on how to solve my problem or how to migrate my mails in a different way.