Solved: exim4 smarthost error A TLS packet with unexpected length was received

Bug #1007231 reported by Nigel Pegram
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnutls13 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Only started in the last 2-3 days, exim stops delivering mail to smarthost. Logs have error: "A TLS packet with unexpected length was received"

Same symptoms on two servers delivering mail to smarthost. Ubuntu 12.04 LTS.

Simple solution:

Create file "00_localmacros" in /etc/exim4/conf.d/main

Insert the following two lines into the above file:

gnutls_compat_mode=true
gnutls_require_protocols=NORMAL:%COMPAT:-VERS-TLS1.1:-VERS-TLS1.2

As root, run dpkg-reconfigure exim4-config
(you don't need to change anything)

Then it just works.

More info: for me, both servers were using mail.iinet.net.au as smarthosts, but from the info on the web, it seems wider than iinet.

Revision history for this message
Matt Joyce (matt-joyce) wrote :

This workaround also worked for me, also with iinet.
exim4 v4.72-6+squeeze2

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.