eM Client 11.0.1201 (c416881)
macOS Tahoe 26.7.1
Letting everyone know that, if you have problems connecting to a locally-hosted IMAP server on your own private subnet, you should have a look at TN3179: Understanding local network privacy | Apple Developer Documentation
eM Client was unable to connect to my private mail server with the below trace in the log, even if all other network tools / openssl s_client / nc were connecting fine from the same macOS client / same user.
Running the ```
defaults write com.apple.network.local-network
commands and restarting my TCP stack (and eM Client) fixed the issue.
>>> ConnectionPoolEntry.CloseNowAsync(): Failed to connect: MailClient.Accounts.ConnectionException: Failed opening connection to server.
---> System.Net.Sockets.SocketException (65): No route to host
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
at System.Threading.Tasks.ValueTask.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state)
--- End of stack trace from previous location ---
at System.Net.Sockets.TcpClient.CompleteConnectAsync(Task task)
at MailClient.Imap.Base.Connection.CreateTcpClientAsync(String hostname, Int32 port, TimeSpan timeout, CancellationToken cancellationToken)
at MailClient.Imap.Base.Connection.<>c__DisplayClass88_0.<<ConnectAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at MailClient.Imap.Base.TransportPipe.<>c__DisplayClass32_0.<<UpgradeStreamAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at MailClient.Imap.Base.TransportPipe.UpgradeStreamAsync(Func`2 callback)
at MailClient.Imap.Base.Connection.ConnectAsync(Func`2 getStream, CancellationToken cancellationToken)
at MailClient.Imap.Base.Connection.ConnectAsync(Func`2 getStream, CancellationToken cancellationToken)
at MailClient.Protocols.Imap.ConnectionPoolEntry.ConnectInternalAsync(CancellationToken cancellationToken)
Exception_EndOfInnerExceptionStack
at MailClient.Protocols.Imap.ConnectionPoolEntry.ConnectInternalAsync(CancellationToken cancellationToken)