Exim 4.96 Problem

Hello,

After sending some emails, I receive “Message has lines too long for transport” error.
Some google search lead me that I need to change message_linelength_limit value of exim 4.96.

Any idea how?
Should I add a line to /etc/exim4/exim4.conf.template ?

To anyone having the same issue,

I ended up shrinking my automated emails’ HTML lines. They were indeed too long. I used \n to split long lines and it works perfect now. Exim 4.94 had no problem by the way.

This looks like the best and easiest solution.

(The default value of message_linelength_limit is 998)

Probably add it exim.conf.template

its not in exim problem
probably its in other webmail conf template you have to figure out about conf template
because default exim without any webmail conf template has unlimited message so its depends basically

AS an aside, in the the old days it used to be 72 Chars long on each line. That Had to include the Line brake :expressionless:

1 Like

In /etc/exim4/exim4.conf.template
under remote_smtp: and remote_forwarded_smtp:
add message_linelength_limit = 2048000
to look like this

remote_smtp:
  driver = smtp
  helo_data = ${lookup dnsdb{>: defer_never,ptr=$sending_ip_address}{${listextract{1}{$value}}}{$primary_hostname}}
  dkim_domain = DKIM_DOMAIN
  dkim_selector = mail
  dkim_private_key = DKIM_PRIVATE_KEY
  dkim_canon = relaxed
  dkim_strict = 0
  hosts_try_fastopen = !*.l.google.com
  interface = ${if exists{OUTGOING_IP}{${readfile{OUTGOING_IP}}}}
  message_linelength_limit = 2048000

remote_forwarded_smtp:
  driver = smtp
  helo_data = ${lookup dnsdb{>: defer_never,ptr=$sending_ip_address}{${listextract{1}{$value}}}{$primary_hostname}}
  dkim_domain = DKIM_DOMAIN
  dkim_selector = mail
  dkim_private_key = DKIM_PRIVATE_KEY
  dkim_canon = relaxed
  dkim_strict = 0
  hosts_try_fastopen = !*.l.google.com
  interface = ${if exists{OUTGOING_IP}{${readfile{OUTGOING_IP}}}}
  # modify the envelope from, for mails that we forward
  max_rcpt = 1
  return_path = ${srs_encode {SRS_SECRET} {$return_path} {$original_domain}}
  message_linelength_limit = 2048000

Its work for me for version 4.95