exim4-config needs option to set message_linelength_limit

Bug #2033047 reported by Mike

This bug report was marked for expiration 318 days ago. (find out why)

6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
exim4 (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

The exim4 update to 4.95 added the "message_linelength_limit" which is set to 998 by default, see https://github.com/Exim/exim/blob/master/doc/doc-txt/NewStuff#L79

This means that on updating to 4.95, email that was previously being sent is now being rejected. In my case, I am no longer getting email from cron, but it's causing other issues too (https://forum.directadmin.com/threads/exim-4-95.64666/page-3).

To disable this option I need to edit exim4.conf.template directly - I have no way of setting this with a macro in a local template. This needs to change. Regardless of your opinion of this being a new default setting, this is a fairly significant change in a point upgrade to a stable release. At the very least it needs to be something that is noted in the config files, with a macro to change this value. Or even something you could set via dpkg-reconfigure exim4-config

Revision history for this message
Mitchell Dzurick (mitchdz) wrote :

Hello Mike, thanks for taking the time to write a bug and make Ubuntu better!

Are you seeing this issue when you upgrade from Focal->Jammy or is there a different upgrade that is exposing this problem for you?

Revision history for this message
Mike (mike32767) wrote :

Apologies. Going back through the logs this was not due to a point upgrade - it looks like a configuration change was made to forward the email, and only then did these error message start.

So I still maintain it's necessary to have an option to configure "message_linelength_limit", but it's not something that suddenly broke from an "apt-get upgrade".

For what it's worth, the solution I applied is to

a)
  add SMTP_LINE_LENGTH_LIMIT = 100000 to /etc/exim4/exim4.conf.localmacros
b)
  add
    .ifdef SMTP_LINE_LENGTH_LIMIT
    message_linelength_limit = SMTP_LINE_LENGTH_LIMIT
    .endif
  to the "remote_smpth" and "remote_smtp_smarthost" blocks in /etc/exim4/exim4/conf.template

Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :

Hi Mike,

Thanks for the additional information.

Would you mind providing a short reproducer for the issue you are experiencing (together with what the expected output would look like) to aid us assess the issue?

It would be extra helpful if you can also provide logs and configuration files with your reproducer.
I will mark this bug as incomplete until then. Once you provide the information, please, set this bug status back to new.

Changed in exim4 (Ubuntu):
status: New → Incomplete
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.