For two days been trying everything to correct this problem. As it appears to be downloading messages using POP from Gmail, the progress suddenly hangs for a very long time, then upon clicking on "setup", it shows as "SSL Connection Failure. Check host & port settings". There are some emails that gets downloaded, some at a time, and upon refreshing, but not all. The most annoying is when it takes forever to download, then this error message appears each time. PLEASE HELP!!!!!

Debug Log:

SSL connection failure. Please check host and port settings.

Debug message: SSL peer shut down incorrectly

Exception:
com.zimbra.common.service.ServiceException: system failure: Folder sync failed ExceptionId:syncboxallenkwan74@gmail.com:132828684 4859:d7372c6a0eb8105f
Code:service.FAILURE
at com.zimbra.common.service.ServiceException.FAILURE (ServiceException.java:248)
at com.zimbra.cs.datasource.imap.ImapSync.importData( ImapSync.java:168)
at com.zimbra.cs.datasource.imap.ImapSync.importData( ImapSync.java:135)
at com.zimbra.cs.offline.OfflineImport.importData(Off lineImport.java:100)
at com.zimbra.cs.offline.GMailImport.importData(GMail Import.java:53)
at com.zimbra.cs.datasource.DataSourceManager.importD ata(DataSourceManager.java:312)
at com.zimbra.cs.datasource.DataSourceManager.importD ata(DataSourceManager.java:276)
at com.zimbra.cs.mailbox.DataSourceMailbox.syncAllLoc alDataSources(DataSourceMailbox.java:442)
at com.zimbra.cs.mailbox.DataSourceMailbox.sync(DataS ourceMailbox.java:480)
at com.zimbra.cs.mailbox.DataSourceMailbox.syncOnTime r(DataSourceMailbox.java:409)
at com.zimbra.cs.mailbox.SyncMailbox$1.run(SyncMailbo x.java:257)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: com.zimbra.common.service.ServiceException: system failure: Synchronization of folder '/Inbox' failed
ExceptionId:sync-mbox-allenkwan74@gmail.com:1328286844859:d7372c6a0eb810 5f
Code:service.FAILURE
at com.zimbra.common.service.ServiceException.FAILURE (ServiceException.java:248)
at com.zimbra.cs.datasource.imap.ImapSync.syncFailed( ImapSync.java:384)
at com.zimbra.cs.datasource.imap.ImapSync.syncMessage s(ImapSync.java:325)
at com.zimbra.cs.datasource.imap.ImapSync.syncFolders (ImapSync.java:235)
at com.zimbra.cs.datasource.imap.ImapSync.importData( ImapSync.java:163)
... 11 more
Caused by: javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: SSL peer shut down incorrectly
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.checkEO F(SSLSocketImpl.java:1255)
at com.sun.net.ssl.internal.ssl.AppInputStream.read(A ppInputStream.java:65)
at com.sun.net.ssl.internal.ssl.AppInputStream.skip(A ppInputStream.java:104)
at java.io.BufferedInputStream.skip(BufferedInputStre am.java:349)
at com.zimbra.cs.mailclient.util.LimitInputStream.ski p(LimitInputStream.java:76)
at com.zimbra.cs.mailclient.imap.ImapInputStream.skip Remaining(ImapInputStream.java:139)
at com.zimbra.cs.mailclient.imap.ImapInputStream.read FetchData(ImapInputStream.java:133)
at com.zimbra.cs.mailclient.imap.Body.readBody(Body.j ava:64)
at com.zimbra.cs.mailclient.imap.Body.read(Body.java: 45)
at com.zimbra.cs.mailclient.imap.MessageData.readAttr ibute(MessageData.java:91)
at com.zimbra.cs.mailclient.imap.MessageData.read(Mes sageData.java:74)
at com.zimbra.cs.mailclient.imap.MessageData.read(Mes sageData.java:63)
at com.zimbra.cs.mailclient.imap.ImapResponse.readUnt agged(ImapResponse.java:106)
at com.zimbra.cs.mailclient.imap.ImapResponse.readRes ponse(ImapResponse.java:51)
at com.zimbra.cs.mailclient.imap.ImapResponse.read(Im apResponse.java:38)
at com.zimbra.cs.mailclient.imap.ImapConnection.readR esponse(ImapConnection.java:648)
at com.zimbra.cs.mailclient.imap.ImapConnection.waitF orResponse(ImapConnection.java:641)
at com.zimbra.cs.mailclient.imap.ImapConnection.sendR equest(ImapConnection.java:518)
at com.zimbra.cs.mailclient.imap.ImapRequest.send(Ima pRequest.java:95)
at com.zimbra.cs.mailclient.imap.ImapRequest.sendChec kStatus(ImapRequest.java:111)
at com.zimbra.cs.mailclient.imap.ImapConnection.uidFe tch(ImapConnection.java:334)
at com.zimbra.cs.datasource.imap.ImapFolderSync.fetch Messages(ImapFolderSync.java:843)
at com.zimbra.cs.datasource.imap.ImapFolderSync.fetch Messages(ImapFolderSync.java:750)
at com.zimbra.cs.datasource.imap.ImapFolderSync.syncM essages(ImapFolderSync.java:346)
at com.zimbra.cs.datasource.imap.ImapSync.syncMessage s(ImapSync.java:322)
... 13 more
Caused by: javax.net.ssl.SSLException: SSL peer shut down incorrectly
at com.sun.net.ssl.internal.ssl.InputRecord.readV3Rec ord(InputRecord.java:408)
at com.sun.net.ssl.internal.ssl.InputRecord.read(Inpu tRecord.java:360)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRec ord(SSLSocketImpl.java:789)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDat aRecord(SSLSocketImpl.java:746)
at com.sun.net.ssl.internal.ssl.AppInputStream.read(A ppInputStream.java:75)
at java.io.BufferedInputStream.read1(BufferedInputStr eam.java:256)
at java.io.BufferedInputStream.read(BufferedInputStre am.java:317)
at com.zimbra.cs.mailclient.util.LimitInputStream.rea d(LimitInputStream.java:45)
at java.io.FilterInputStream.read(FilterInputStream.j ava:90)
at com.zimbra.cs.store.BlobBuilder.append(BlobBuilder .java:127)
at com.zimbra.cs.store.file.FileBlobStore.storeIncomi ng(FileBlobStore.java:84)
at com.zimbra.cs.store.StoreManager.storeIncoming(Sto reManager.java:86)
at com.zimbra.cs.datasource.MessageContent.readConten t(MessageContent.java:51)
at com.zimbra.cs.datasource.MessageContent.read(Messa geContent.java:35)
at com.zimbra.cs.datasource.imap.ConnectionManager$Fe tchDataHandler.handleData(ConnectionManager.java:1 99)
at com.zimbra.cs.mailclient.imap.ImapInputStream.read FetchData(ImapInputStream.java:128)
... 31 more

If issue persists please post description and debug information here.