Problem with SMTP (and IMAP) on emClient v10 (to Zentyal v8)

HI,
i have a problem with emClient in version 10 (tried latest two versions)

i try to connect to Zentyal (version 8) mail server (to my account).

IMAP is succesfull only on port 143 (993 not, but another application use 993 port without problems) and with SSL/TLS settings (try different configs/settings nothing helps)

SMTP can’t connect to Zentyal, none of ports (25, 465, 587) is working, none of config/settings is working … but other app is OK

i try to diagnostic button on Account page, but SMTP always failed.

can you help me?
i use emClient on latest version of Windows 11 PRO 64bit (23H2)

if you need some logs, tell me how to log this problem and where to find them, then i send them

Thanks

These are normally what’s used with eM Client.

IMAP
Port 993 = Use SSL/TLS on special port (legacy)

SMTP
Port 587 = Force usage of SSL/TLS
Port 465 = Use SSL/TLS on special port (legacy)

Hi,
thanks for your answer
I tried your setting for IMAP (legacy) and it worked, thanks a lot
but
SMTP did not working

when my setting is port=587 and Force usage of SSL/TLS then i push the Diagnose button it writes “Your credentials were rejected”
but my username and password are identical for IMAP and for SMTP

when my setting is port=465 and Use SSL/TLS on special port (legacy)
then it writes Failed

Thanks

when my setting is port=587 and Force usage of SSL/TLS then i push the Diagnose button it writes “Your credentials were rejected”
but my username and password are identical for IMAP and for SMTP.

As your incoming mail works, then when manually setting up the account, “Ignore the SMTP diagnose button” and continue. Then go to accounts SMTP tab and set it to “Use identity credentials” as below screenshot example, and also check the port & security policy are still the same. Then save & close accts.

Then any current failed email in your Outbox, move it back to your Drafts folder & try sending again.

1000003186

If that still is saying your credentials were rejected “with the same username and password as your incoming”, I would contact your mail server technical support at Zentyal, as could be eg: they might need to enable something their end for you to send mail with a client compared to webmail.

Hi,

thanks for reply and helping me
i ignored diagnose and I try to send test mail(s)

my SMTP setting is like this

when i used 587 port and Force usage of SSL/TLS then error
Authentication aborted

when i used 465 port and Use SSL/TLS on special port (legacy) then error
Connection failed due to the following reason: Cannot determine the frame size or a corrupted frame was received.

i suppose that problem is not in Zentyal, i use another app and there is no problem with SMTP
Zentyal didnt show any problem(s) in logs with my account

Thanks

when i used 465 port and Use SSL/TLS on special port (legacy) then error
Connection failed due to the following reason: Cannot determine the frame size or a corrupted frame was received

Ok that error can happen when sending mail with Windows 10 & TLS 1.3 protocol installed, where “Windows 10 only supports TLS 1.2” and can cause problems with mail clients sending.

However as you have Windows 11 that should be ok. You could try though for a test disabling TLS 1.3 and reboot and see if it made any difference.

To disable TLS 1.3 in Windows 11 click “Right click the Start” button and then click “Run”. Then type in “inetcpl.cpl” and “Enter”.

Then click the “Advanced” tab at the top right of “Internet Properties” and scroll down to the bottom where you will see “TLS 1.2 & 1.3” enabled.

Try “disabling TLS 1.3” and then click “apply & ok”. Then reboot your computer and try sending

TLS 1.3 disabled via your hints, rebooted and unfortunately no difference…

Ok so re-enable TLS 1.3 and click the drop-down arrow on the right of Refresh top left and click Show Operations. Then click the Log tab and look for any SMTP errors & paste them in this thread.

Is there anything else (other than cannot determine the frame size or a corrupted frame was received) ?

If there is no other obvious errors, then suggest to post the problem and that error on the Zentyal Community forum via the link below. Or contact them via their forum below.

Contact Us - Zentyal

HI,

portr 465 and Legacy

log
12:30:55 [email protected] [SMTP] MailClient.Accounts.ConnectionException: Connection failed due to the following reason:
“Cannot determine the frame size or a corrupted frame was received.”
—> System.Security.Authentication.AuthenticationException: Cannot determine the frame size or a corrupted frame was received.
at System.Net.Security.SslStream.GetFrameSize(ReadOnlySpan1 buffer) at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](CancellationToken cancellationToken, Int32 estimatedSize) at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder1.StateMachineBox1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token) at System.Net.Security.SslStream.ReceiveHandshakeFrameAsync[TIOAdapter](CancellationToken cancellationToken) at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](Boolean receiveFirst, Byte[] reAuthenticationData, CancellationToken cancellationToken) at System.Net.Security.SslStream.AuthenticateAsClient(SslClientAuthenticationOptions sslClientAuthenticationOptions) at System.Net.Security.SslStream.AuthenticateAsClient(String targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, Boolean checkCertificateRevocation) at System.Net.Security.SslStream.AuthenticateAsClient(String targetHost) at MailClient.Protocols.Smtp.SmtpSendCommand.Connect(WorkerStatus status) --- End of inner exception stack trace --- at MailClient.Protocols.Smtp.SmtpSendCommand.Connect(WorkerStatus status) at MailClient.Protocols.Smtp.SmtpSendCommand.Execute(WorkerStatus status) at MailClient.Commands.Command.Process(WorkerStatus status) --- End of stack trace from previous location --- at MailClient.Accounts.AccountManager.SendAsync(IAccount account, CancellationToken cancellationToken) at MailClient.Reminders.ReminderManager.TimerSendLaterTrigger(Object sender, ElapsedEventArgs e) AccountId = 98316f81-7377-4260-ab51-457da73f0432 AccountName = [email protected] RunInPlace = False EnqueuedStackTrace = at MailClient.Protocols.Smtp.SmtpAccount.<>c__DisplayClass5_0.<SendAsync>b__0() at MailClient.Protocols.Common.AccountBase.RunIfOnline(Action actionIfOnline, Action actionIfOffline) at MailClient.Protocols.Smtp.SmtpAccount.SendAsync(IEnumerable1 items, Action1 sentItem, Action1 completed, CancellationToken cancellationToken)
at MailClient.Accounts.BindingAccountBase.<>c__DisplayClass91_0.b__1(ISendAccount1 sendAccount) at System.Linq.Enumerable.SelectListIterator2.MoveNext()
at System.Threading.Tasks.Task.WhenAll(IEnumerable1 tasks) at MailClient.Accounts.BindingAccountBase.SendAsync(CancellationToken cancellationToken) at MailClient.Accounts.AccountManager.SendInternalAsync(IAccount account, CancellationToken cancellationToken) at MailClient.Accounts.AccountManager.SendAsync(IAccount account, CancellationToken cancellationToken) at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) at MailClient.Accounts.AccountManager.SendAsync(IAccount account, CancellationToken cancellationToken) at MailClient.Reminders.ReminderManager.<TimerSendLaterTrigger>b__73_1(IAccount a) at System.Linq.Enumerable.SelectEnumerableIterator2.MoveNext()
at System.Threading.Tasks.Task.WhenAll(IEnumerable`1 tasks)
at MailClient.Reminders.ReminderManager.TimerSendLaterTrigger(Object sender, ElapsedEventArgs e)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at MailClient.Reminders.ReminderManager.TimerSendLaterTrigger(Object sender, ElapsedEventArgs e)
at System.Timers.Timer.MyTimerCallback(Object state)
at System.Threading.TimerQueueTimer.<>c.<.cctor>b__30_0(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.TimerQueueTimer.Fire(Boolean isThreadPool)
at System.Threading.TimerQueue.FireNextTimers()
at System.Threading.TimerQueue.System.Threading.IThreadPoolWorkItem.Execute()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
at System.Threading.Thread.StartCallback()
GUIStatus_Exception_Reported = True

HI

port 587 and Force

log

12:33:58 [email protected] [SMTP] MailClient.Accounts.AuthenticationAbortedException: Authentication aborted
at MailClient.Protocols.Smtp.SmtpSendCommand.Authenticate(WorkerStatus status)
at MailClient.Protocols.Smtp.SmtpSendCommand.Connect(WorkerStatus status)
at MailClient.Protocols.Smtp.SmtpSendCommand.Execute(WorkerStatus status)
at MailClient.Commands.Command.Process(WorkerStatus status)
— End of stack trace from previous location —
at MailClient.Accounts.AccountManager.SendAsync(IAccount account, CancellationToken cancellationToken)
at MailClient.Reminders.ReminderManager.TimerSendLaterTrigger(Object sender, ElapsedEventArgs e)
RunInPlace = False
EnqueuedStackTrace =
at MailClient.Protocols.Smtp.SmtpAccount.<>c__DisplayClass5_0.b__0()
at MailClient.Protocols.Common.AccountBase.RunIfOnline(Action actionIfOnline, Action actionIfOffline)
at MailClient.Protocols.Smtp.SmtpAccount.SendAsync(IEnumerable1 items, Action1 sentItem, Action1 completed, CancellationToken cancellationToken) at MailClient.Accounts.BindingAccountBase.<>c__DisplayClass91_0.<SendAsync>b__1(ISendAccount1 sendAccount)
at System.Linq.Enumerable.SelectListIterator2.MoveNext() at System.Threading.Tasks.Task.WhenAll(IEnumerable1 tasks)
at MailClient.Accounts.BindingAccountBase.SendAsync(CancellationToken cancellationToken)
at MailClient.Accounts.AccountManager.SendInternalAsync(IAccount account, CancellationToken cancellationToken)
at MailClient.Accounts.AccountManager.SendAsync(IAccount account, CancellationToken cancellationToken)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at MailClient.Accounts.AccountManager.SendAsync(IAccount account, CancellationToken cancellationToken)
at MailClient.Reminders.ReminderManager.b__73_1(IAccount a)
at System.Linq.Enumerable.SelectEnumerableIterator2.MoveNext() at System.Threading.Tasks.Task.WhenAll(IEnumerable1 tasks)
at MailClient.Reminders.ReminderManager.TimerSendLaterTrigger(Object sender, ElapsedEventArgs e)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at MailClient.Reminders.ReminderManager.TimerSendLaterTrigger(Object sender, ElapsedEventArgs e)
at System.Timers.Timer.MyTimerCallback(Object state)
at System.Threading.TimerQueueTimer.<>c.<.cctor>b__30_0(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.TimerQueueTimer.Fire(Boolean isThreadPool)
at System.Threading.TimerQueue.FireNextTimers()
at System.Threading.TimerQueue.System.Threading.IThreadPoolWorkItem.Execute()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
at System.Threading.Thread.StartCallback()
GUIStatus_Exception_Reported = True

Both of those look like SMTP Mail Server problems to me.

I would contact Zentyal Support via either their Community Forum or Contact Form and let them know both errors you get using both port settings.

Thank You very much.