Page 1 of 1

EXIM (gnutls_handshake): A TLS packet with unexpected length was received.

Posted: Mon Jan 23, 2017 11:21 pm
by 5p1ke
Hello community,
I need to configure receive/transmit emails via amocrm system - connect to my server via web interface. So I added settings:
Email: [email protected]
Password: xxxxxxxxx
IMAP: mail.mydomain.com (143 / STARTTLS)
SMTP: mail.mydomain.com (465 / TLS)

Before add this email to amocrm system it checks connection to the server: IMAP - ok, SMTP - fail. I had tried select different setting at SMTP field but it always fail.
Error in log: (gnutls_handshake): A TLS packet with unexpected length was received.

So I made some steps:
1. Generated valid certificate via letsencrypt.
2. Re-run dpkg-reconfigure exim4-config
3. Made some changes in exim config:

tls_advertise_hosts = *
#tls_certificate = /usr/local/vesta/ssl/certificate.crt
tls_certificate = /etc/exim4/ssl/certificate.crt ## letsencrypt

#tls_privatekey = /usr/local/vesta/ssl/certificate.key
tls_privatekey = /etc/exim4/ssl/certificate.key ## letsencrypt

tls_require_ciphers = NORMAL:%LATEST_RECORD_VERSION:-VERS-SSL3.0
tls_dhparam = /etc/exim4/ssl/dhparams.pem ## generated

Who else had a similar problem? Are there any ideas how to fix this?

OS: Ubuntu 14.04
Vesta: 0.9.8-17

Re: EXIM (gnutls_handshake): A TLS packet with unexpected length was received.

Posted: Tue Jun 22, 2021 6:13 pm
by saosangmo
I also get the same issue. Please help me.