eM Client and Google Apps - non-stop connection errors (IMAP, GData)

We’ve been using EMC for about a year now with Google Apps for Business. 
Everything seemed to be running smoothly, up until a week ago. 
We’ve been experiencing non-stop syncing issues - on three different up-to-date PCs.
Mail isn’t delivered, client goes offline, “Operations” panel keeps popping - notifying us:

“[GData] An attempt to connect to dov@… failed. This could be caused by temporary server unavailability or incorrect settings.”

or other notifications stating IMAP and SMTP attempts failed. 

Diagnosing the problem withing EMC, fails as well, sometimes stating the email server isn’t responding, and other times stating that the certificates of our domain do not match those on the server associated with it (gmail).

Syncing stops, and then resumes, and stops again.

Again, these problems started only a week ago, without any mess up on our side. We’ve checked with Google support, with our domain’s support, everything is fine.

PLEASE help.

Hi, what version of eM Client are you currently using on your computer? Can you please check the exact version number in Help > About? Also when the error occurs, can you please switch to the Log tab in Operations, copy the content of the log and submit the content of the log here on the forum?

Are you using any firewall/proxy or any other security software on your computer, that may have disabled the application’s ability to connect to your mail server?

Thank you,
Paul

Dear Paul,

Version: 6.0.21372.0

Log examples:

11:47:08 dov@dgc-law.co.il [IMAP]  Synchronizing subfolders: For folder dov@dgc-law.co.il/

11:47:08 dov@dgc-law.co.il [GData]  Synchronizing folder list

11:47:27 dov@dgc-law.co.il [IMAP]  Synchronizing subfolders: For folder dov@dgc-law.co.il/

11:47:48 dov@dgc-law.co.il [IMAP]  MailExceptions.ConnectionException: 

11:47:48 (Disconnecting)

11:47:48    at MailClient.Imap.Synchronizer.ImapCommand.ThrowIfConnectionBroken(BasicResponse response)

11:47:48    at MailClient.Imap.Synchronizer.SynchronizeFoldersCommand.ExecuteInternal(WorkerStatus status)

11:47:48    at MailClient.Imap.Synchronizer.ImapCommand.Execute(WorkerStatus status)

11:47:48    at MailClient.Commands.Command.Process(WorkerStatus status)

11:48:05 dov@dgc-law.co.il [GData]  MailExceptions.ConnectionException: Execution of request failed: https://www.google.com/m8/feeds/groups/default/full?start-index=1&max-results=2147483646 —> Google.GData.Client.GDataRequestException: Execution of request failed: https://www.google.com/m8/feeds/groups/default/full?start-index=1&max-results=2147483646 —> System.Net.WebException: The remote name could not be resolved: ‘www.google.com

11:48:05    at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)

11:48:05    at System.Net.HttpWebRequest.GetRequestStream()

11:48:05    at Google.GData.Client.Utilities.QueryClientLoginToken(GDataCredentials gc, String serviceName, String applicationName, Boolean fUseKeepAlive, IWebProxy proxyServer, Uri clientLoginHandler)

11:48:05    at Google.GData.Client.GDataGAuthRequest.QueryAuthToken(GDataCredentials gc)

11:48:05    at Google.GData.Client.GDataGAuthRequest.EnsureCredentials()

11:48:05    at Google.GData.Client.GDataRequest.EnsureWebRequest()

11:48:05    at Google.GData.Client.GDataGAuthRequest.EnsureWebRequest()

11:48:05    at Google.GData.Client.GDataRequest.Execute()

11:48:05    — End of inner exception stack trace —

11:48:05    at Google.GData.Client.GDataRequest.Execute()

11:48:05    at Google.GData.Client.GDataGAuthRequest.Execute(Int32 retryCounter)

11:48:05    at Google.GData.Client.GDataGAuthRequest.Execute(Int32 retryCounter)

11:48:05    at Google.GData.Client.GDataGAuthRequest.Execute(Int32 retryCounter)

11:48:05    at Google.GData.Client.GDataGAuthRequest.Execute(Int32 retryCounter)

11:48:05    at Google.GData.Client.GDataGAuthRequest.Execute()

11:48:05    at Google.GData.Client.Service.Query(Uri queryUri, DateTime ifModifiedSince, String etag, Int64& contentLength)

11:48:05    at Google.GData.Client.Service.Query(FeedQuery feedQuery)

11:48:05    at MailClient.Protocols.Gdata.ContactFolderSynchronizer.GetFolderList(Folder homeFolder, CancellationToken cancellationToken)

11:48:05    at MailClient.Protocols.Common.FolderSynchronizer.<>c__DisplayClass5.b__0(WorkerStatus status, CancellationToken cancellationToken)

11:48:05    at MailClient.Protocols.Gdata.GenericGdataCommand.Execute(WorkerStatus status)

11:48:05    — End of inner exception stack trace —

11:48:05    at MailClient.Protocols.Gdata.GenericGdataCommand.Execute(WorkerStatus status)

11:48:05    at MailClient.Commands.Command.Process(WorkerStatus status)

See also:

12:17:08 dov@dgc-law.co.il [IMAP]  Synchronizing subfolders: For folder dov@dgc-law.co.il/

12:17:08 dov@dgc-law.co.il [GData]  Synchronizing folder list

12:17:29 dov@dgc-law.co.il [IMAP]  MailExceptions.ConnectionException: Failed opening connection to server. —> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 12.7.210.177:993

12:17:29    at System.Net.Sockets.TcpClient…ctor(String hostname, Int32 port)

12:17:29    at MailClient.Imap.Base.Connection.<>c__DisplayClassa.b__9()

12:17:29    at MailClient.Imap.Base.Connection.Connect(Func`1 getStream)

12:17:29    at MailClient.Imap.Base.Connection.Connect(String receiveHost, Int32 receivePort, Boolean explicitSsl)

12:17:29    at MailClient.Imap.ConnectionPoolEntry.Reconnect()

12:17:29    — End of inner exception stack trace —

12:17:29    at MailClient.Imap.ConnectionPoolEntry.Reconnect()

12:17:29    at MailClient.Imap.ConnectionPoolEntry.Connect()

12:17:29    at MailClient.Imap.ConnectionPool.AcquireConnection(Folder mailFolder, Boolean idle, Boolean forStore)

12:17:29    at MailClient.Imap.ConnectionContext…ctor(ImapAccount account)

12:17:29    at MailClient.Imap.Synchronizer.SynchronizeFoldersCommand.ExecuteInternal(WorkerStatus status)

12:17:29    at MailClient.Imap.Synchronizer.ImapCommand.Execute(WorkerStatus status)

12:17:29    at MailClient.Commands.Command.Process(WorkerStatus status)

12:18:32 dov@dgc-law.co.il [GData]  MailExceptions.ConnectionException: Execution of request failed: https://www.google.com/m8/feeds/groups/default/full?start-index=1&max-results=2147483646 —> Google.GData.Client.GDataRequestException: Execution of request failed: https://www.google.com/m8/feeds/groups/default/full?start-index=1&max-results=2147483646 —> System.Net.WebException: Unable to connect to the remote server —> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 12.7.210.177:443

12:18:32    at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)

12:18:32    at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)

12:18:32    — End of inner exception stack trace —

12:18:32    at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)

12:18:32    at System.Net.HttpWebRequest.GetRequestStream()

12:18:32    at Google.GData.Client.Utilities.QueryClientLoginToken(GDataCredentials gc, String serviceName, String applicationName, Boolean fUseKeepAlive, IWebProxy proxyServer, Uri clientLoginHandler)

12:18:32    at Google.GData.Client.GDataGAuthRequest.QueryAuthToken(GDataCredentials gc)

12:18:32    at Google.GData.Client.GDataGAuthRequest.EnsureCredentials()

12:18:32    at Google.GData.Client.GDataRequest.EnsureWebRequest()

12:18:32    at Google.GData.Client.GDataGAuthRequest.EnsureWebRequest()

12:18:32    at Google.GData.Client.GDataRequest.Execute()

12:18:32    — End of inner exception stack trace —

12:18:32    at Google.GData.Client.GDataRequest.Execute()

12:18:32    at Google.GData.Client.GDataGAuthRequest.Execute(Int32 retryCounter)

12:18:32    at Google.GData.Client.GDataGAuthRequest.Execute(Int32 retryCounter)

12:18:32    at Google.GData.Client.GDataGAuthRequest.Execute(Int32 retryCounter)

12:18:32    at Google.GData.Client.GDataGAuthRequest.Execute(Int32 retryCounter)

12:18:32    at Google.GData.Client.GDataGAuthRequest.Execute()

12:18:32    at Google.GData.Client.Service.Query(Uri queryUri, DateTime ifModifiedSince, String etag, Int64& contentLength)

12:18:32    at Google.GData.Client.Service.Query(FeedQuery feedQuery)

12:18:32    at MailClient.Protocols.Gdata.ContactFolderSynchronizer.GetFolderList(Folder homeFolder, CancellationToken cancellationToken)

12:18:32    at MailClient.Protocols.Common.FolderSynchronizer.<>c__DisplayClass5.b__0(WorkerStatus status, CancellationToken cancellationToken)

12:18:32    at MailClient.Protocols.Gdata.GenericGdataCommand.Execute(WorkerStatus status)

12:18:32    — End of inner exception stack trace —

12:18:32    at MailClient.Protocols.Gdata.GenericGdataCommand.Execute(WorkerStatus status)

12:18:32    at MailClient.Commands.Command.Process(WorkerStatus status)

Nothing new was installed on our end, software nor hardware. 

Hi again, are you using any firewall/proxy or any other security software on your computer, that may have disabled the application’s ability to connect to your mail server?

Thank you,
Paul

No firewall, other than the built-in Windows firewall. 

Are you using any antivirus software on your computer, with a possible mail protection feature, if so, please try to disable the security element temporarily and check if the issue persists, as some of the existing antivirus softwares can cause issues while using eM client if exceptions are not properly set for the application.

Thank you,
Paul

We’re using Bitdefender Free, which has no special features such as this. 

Be aware that syncing resumes and stops every couple of minutes.

Assuming security software was the issue, I’d expect the syncing to stop completely.

Hi again, the log you’ve submitted points to an authentication issue, the connection is being forcibly closed or the server doesn’t respond to the application request.

How did you setup the account in eM Client, have you used the automatic setup? Are you being prompt for authentication/credentials input? Have you activated your calendar feature for the account by logging into the calendar online?

Also please try to access this setting: https://www.google.com/settings/security/lesssecureapps and try to set the setting to “enable” if you haven’t done so before and check if the issue persists.

Thank you,
Paul

On one computer the setup was automatic, and on another - manual. Both started experiencing problems at the same time. 
Once hitting the “Fix” button (Tools - Accounts - Diagnostics), EMC tries to establish a connection with the server based on certain MX records, and problems for credentials, which always fails.
All necessary features on the Google Apps end are activated.