Exim4 TLS error on sending mail

Hello, I have a problem with TLS connection when sending mail with exim4. When the server receives mails on port 25 with TLS, there is no problem, only when sending. Components of my system: Ubuntu 22.04 LTS, HestiaCP 1.8.12.
The error occurs every time you send, but never when you receive.

Error message:

tls error on connection (recv) the tls connection was non-properly terminated

Most of the time the sending is successful, but sometimes the remote server rejects the message.

Is it a configuration error, or firewall problem, or what?

Pleas help!

Thanks!

This is an bug in Exim4 where some mail servers (Google) doesn’t prosper terminate

Ok, thank You! My exim version 4.95, this version belongs to Ubuntu 22.04. Does it make sense update to 4.98 or something?

It hasn’t been fixed in any Exim version yet…

1 Like

I dont know if it helps

I am using mutt and exim4 latest versions

I get regularely the error :

“TLS error on connection (recv): The TLS connection was non-properly terminated.”

This occurs on all my ubuntu-like systems.

I am used send a mail from a scrip located in “/etc/init.d/ i.e. during boot process. BUT This error is semi-permanent.

After several trials I discovered that the same “mutt” mail command never fails when used alone any time later after boot process.

So I assume that the issue is linked with the start of SSL processes and is a timing problem!

If it helps….