Wietse Venema via Postfix-users wrote in
 <4y2kjv2ymrzj...@spike.porcupine.org>:
 |braham--- via Postfix-users:
 |>  Issue: I have a postfix cluster for outgoing mail. When the mail header
 |>  or any line exceeds the line_length_limit then the email is broken. As
 |>  per the doc, postfix breaks the line and reconstructs at the time of
 |>  delivery, but this is not happening. Also, the breaking of line is done
 |>  by two /r/n. That's why it breaks the mail in incoming, since /r/n/r/n
 |>  is considered as the end of headers.
 |
 |First, you can't send SMTP messages with lines > 1000 including
 |the <CR><LF>. See https://datatracker.ietf.org/doc/html/rfc5321#section-\
 |4.5.3.1.6 
 |You will have to fix yoru mail sending app to fold header lines and
 |split body lines.
 |
 |Second, your observation is incorrect. 
 |
 |I just sent myself a message with
 |
 |    To: wietse
 |    Subject: [2081 bytes]
 |    From: Wietse Venema <wietse>
 |
 |    Body.
 |
 |And it arrived intact. This was submitted using "/usr/sbin/sendmail
 |-t <file", and it was delivered to the local mailbox in /var/spool/mail.
 |
 |I also sent that same message over SMTP. In this case, the Subject
 |line was split after 998 bytes, by inserting <CF><LF><SPACE>. This

This is a deficit of all the SMTP RFCs from the very start, in
that an artificial <SPACE> has to be included here, one that
cannot be reverted correctly.  You would need RFC 2047 in order to
do that.

 |DID NOT change the end of headers.
 |
 |I suspect that you were using /bin/mail or /usdr/bin/mailx or some
 |other tool that broke the header line before Postfix received the
 |message.

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)
|
|And in Fall, feel "The Dropbear Bard"s ball(s).
|
|The banded bear
|without a care,
|Banged on himself for e'er and e'er
|
|Farewell, dear collar bear
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to