Results 1 to 2 of 2

Thread: ZCS 7.1.3 IMAP Folder sync problem

Hybrid View

  1. #1
    Join Date
    Apr 2010
    Rep Power

    Default ZCS 7.1.3 IMAP Folder sync problem

    Hello all,

    Context: ZCS 7.1.3 on SLES 10 SP1

    Problem: an external IMAP account hosted on (a dovecot server) will not sync. I get the following error message:

    system failure: Folder sync failed, java.nio.BufferUnderflowException

    The same account syncs fine over IMAP using Mac OS Mail or Thunderbird clients.

    Other external IMAP accounts (gmail, etc.) work well on the same Zimbra 7.1.3 installation.

    When trying to sync the problematic account from the Zimbra client, I get the following errors logged to the ZCS mailbox.log file (actual email addresses and domain names changed for privacy reasons):

    2011-11-07 21:48:17,238 INFO [ImportData-21] [;mid=25;ds=My IMAP Account;] datasource - Requested import.
    2011-11-07 21:48:17,239 INFO [ImportData-21] [;mid=25;ds=My IMAP Account;] datasource - Importing data for data source 'My IMAP Account'
    2011-11-07 21:48:17,983 INFO [ImportData-21] [;mid=25;ds=My IMAP Account;] datasource - Upgrading IMAP data for My IMAP Account
    2011-11-07 21:48:17,985 INFO [ImportData-21] [;mid=25;ds=My IMAP Account;] datasource - Deleting IMAP data for DataSource 93467b32-bd5f-468b-a447-5e77f4f4687e
    2011-11-07 21:48:18,351 INFO [ImportData-21] [;mid=25;ds=My IMAP Account;] datasource - Import completed for data source 'My IMAP Account'
    2011-11-07 21:48:18,351 WARN [ImportData-21] [;mid=25;ds=My IMAP Account;] datasource - On-demand DataSource import failed.
    com.zimbra.common.service.ServiceException: system failure: Folder sync failed
    at com.zimbra.common.service.ServiceException.FAILURE (
    at com.zimbra.cs.datasource.imap.ImapSync.importData(
    at com.zimbra.cs.datasource.imap.ImapSync.importData(
    at com.zimbra.cs.datasource.DataSourceManager.importD ata(
    at com.zimbra.cs.datasource.DataSourceManager.importD ata(
    at com.zimbra.cs.datasource.DataSourceManager$
    at java.util.concurrent.Executors$ l(
    at java.util.concurrent.FutureTask$Sync.innerRun(Futu
    at a:138)
    at java.util.concurrent.ThreadPoolExecutor$ Task(
    at java.util.concurrent.ThreadPoolExecutor$ (
    Caused by: java.nio.BufferUnderflowException
    at java.nio.Buffer.nextGetIndex(
    at java.nio.HeapByteBuffer.get( 7)
    at com.zimbra.cs.mailclient.imap.MailboxName.decodePE M(
    at com.zimbra.cs.mailclient.imap.MailboxName.decodeBy tes(
    at com.zimbra.cs.mailclient.imap.MailboxName.decode(M
    at com.zimbra.cs.mailclient.imap.MailboxName.decode(M
    at com.zimbra.cs.mailclient.imap.ListData.readMailbox List(
    at com.zimbra.cs.mailclient.imap.ImapResponse.readUnt agged(
    at com.zimbra.cs.mailclient.imap.ImapResponse.readRes ponse(
    at com.zimbra.cs.mailclient.imap.ImapConnection.readR esponse(
    at com.zimbra.cs.mailclient.imap.ImapConnection.waitF orResponse(
    at com.zimbra.cs.mailclient.imap.ImapConnection.sendR equest(
    at com.zimbra.cs.mailclient.imap.ImapRequest.send(Ima
    at com.zimbra.cs.mailclient.imap.ImapRequest.sendChec kStatus(
    at com.zimbra.cs.mailclient.imap.ImapConnection.doLis t(
    at com.zimbra.cs.mailclient.imap.ImapConnection.list(
    at com.zimbra.cs.datasource.imap.ImapUtil.listFolders (
    at com.zimbra.cs.datasource.imap.ImapSync.syncFolders (
    at com.zimbra.cs.datasource.imap.ImapSync.importData(

    There is no problem communicating to the remote mail server from the ZCS server using IMAP or IMAP/SSL (tested using telnet over ports 143 and 993). Switching from plain text to SSL in the Zimbra external IMAP account setting has no impact on the problem.

    Other possibly relevant information: the problematic remote account is pretty large - probably contains over 1.5 GB of mail data, over 10,000 messages in total across many folders and the folder hierarchy contains several hundred folders that are about 4 sub-levels deep at most.

    I read some threads about Zimbra having issues with IMAP and special characters in folder names. It may be an issue here since several folders contain spaces, some have "+" signs, some have dashes in their names. However, they all sync fine over IMAP using Thunderbird and Mac OS Mail.

    Any idea and / or help would be greatly appreciated.


  2. #2
    Join Date
    Mar 2006
    Greenwood, IN
    Rep Power

    Default Bug filed

    This issue continues in ZCS 8.0.3. Filed

Similar Threads

  1. Replies: 39
    Last Post: 09-04-2012, 11:18 PM
  2. Replies: 9
    Last Post: 12-07-2011, 05:16 PM
  3. Problem with IMAP
    By kernelpanic in forum Zimbra Connector for Outlook
    Replies: 4
    Last Post: 03-10-2006, 04:44 AM
  4. IMAP Login Problem
    By deckard in forum Users
    Replies: 2
    Last Post: 02-09-2006, 06:10 AM
  5. Thunderbird large IMAP folder problems
    By adobrin in forum Administrators
    Replies: 7
    Last Post: 10-07-2005, 06:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts