gmail not working -- imap error

As title. eM worked great initially but after a day or so stopped getting my gmail emails. Already tried changing Google settings (less secure apps, two-step), tried re-granting access, tried changing ports.

Log (after resetting access):

9:45:38 AM    at MailClient.Protocols.Imap.ConnectionPoolEntry.Reconnect(CancellationToken cancellationToken)
9:45:38 AM    at MailClient.Protocols.Imap.ConnectionPoolEntry.Connect(CancellationToken cancellationToken)
9:45:38 AM    at MailClient.Protocols.Imap.ConnectionPool.AcquireConnection(Folder mailFolder, Boolean idle, Boolean forStore)
9:45:38 AM    at MailClient.Protocols.Imap.ConnectionContext…ctor(ImapAccount account, Folder folder, Boolean forStore)
9:45:38 AM    at MailClient.Protocols.Imap.Synchronizer.FolderInfo.CreateConnectionContext()
9:45:38 AM    at MailClient.Protocols.Imap.Synchronizer.CopyCommand.ProcessCopy(WorkerStatus status, FolderInfo sourceFolderInfo, IList`1 items, SequenceSet sequences)
9:45:38 AM    at MailClient.Protocols.Imap.Synchronizer.CopyCommand.ExecuteInternal(WorkerStatus status)
9:45:38 AM    at MailClient.Protocols.Imap.Synchronizer.ImapCommand.Execute(WorkerStatus status)
9:45:38 AM    at MailClient.Commands.Command.Process(WorkerStatus status)

The best port for GMail IMAP is 993 with Use SSL/TLS on special port (legacy)

Another thing you can try is to disable your antivirus/firewall and try again.

Resolved by using Legacy port. Thanks.