Page 1 of 1

exim based sendmail no data input line wrapping

Posted: 05 Nov 2021, 14:25
by untr4ced
Hello,

There has been recent exim 4.95 changes made which.smtp transports rfc compliant:

Code: Select all

It based on RFC 2822 / RFC 5322 (Internet Message Format).

2.1.1.  Line Length Limits

   There are two limits that this specification places on the number of
   characters in a line.  Each line of characters MUST be no more than
   998 characters, and SHOULD be no more than 78 characters, excluding
   the CRLF.
unless attempted to be overriden:


Most email clients might be ok, but there's nothing really done on data input on Sendmail.pm to work around that.

Consequence is that we have mail delivery failures where sendmail is served by exim(which does no line folding/wrapping)

Code: Select all

R=lookuphost_forward_router T=remote_smtp_forward_transport: message has lines too long for transport
Of course it can be configured at this point to have those transports custom max line length, but there's no guarantee that this becoming more of a thing receiving party(exim based) would use similar customisation as well.

So maybe something can be done on on message parser at Sendmail.pm to wrap lines there?

Best Regards