braham--- via Postfix-users:
>  Based on your input, I try to reproduce the issue. I have found that
>  whenever the smtp_header_checks is enabled, no matter the content of
>  the header check (I kept it empty also for testing). I can see that
>  postfix is addring to <CF><LF><SPACE>. And when this setting is
>  disabled, the mail format is correct with only one <CF><LF><SPACE> at
>  the 2048 line_length_limit. I think issue is when postfix is acting as
>  client, it's adding extra <CF><LF><SPACE>.

Does not reproduce.

I use empty header_checks:

    $ postconf smtp_header_checks
    smtp_header_checks = pcre:/dev/null

(I get the same results as below with "smtp_header_checks =
static:DUNNO").

Message with line > 2048:

    $ cat /tmp/msg
    To: wietse
    Subject: aaaa...[line length 2080 not including <CR><LF>]
    From: Wietse Venema <wietse>

    Body.

(line length measured with: awk '/aaaa/ {print length}').

Submit the message:
    $ sendmail -t < /tmp/msg

Message delivered via SMTP, then to mailbox file:

    [skipping the Received: and DKIm-Signature: headers]
    To: wie...@porcupine.org
    Subject: aaa...[line length 998 not incl <CR><LF>]
     aaa...[line length 1+997=998 not incl <CR><LF>]
     aaa...[line length 1+85=86 not incl <CR><LF>]
    From: Wietse Venema <wie...@porcupine.org>
    Message-Id: <4y3lcd45mjz8...@wzv.porcupine.org>
    Date: Wed, 04 Dec 2024 09:54:53 -0500 (EST)

    Body.

(line lengths measured with: awk '/aaaa/ {print length}').

And the nmbers add up: 998 + 997 + 85 = 2080, as ecpected.

There is no extra <CR><LF><SPACE>, and there is no extra line break
after 2048.

Your move.

        Wietse 
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to