Re: Question about line length limit in lmtp.

2024-04-22 Thread Jörg M . Schulz via dovecot
the issue is that some mail clients, namely apple mail on ios, send header 
lines that are too long for longer mail threads or while forwarding mails.
Didn't find a way to handle those clients yet. Did anyone?
___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: Question about line length limit in lmtp.

2022-12-15 Thread Kamil Jońca
Aki Tuomi  writes:

>> On 08/12/2022 11:39 EET Gedalya  wrote:
>> 
>>  
>> On 12/8/22 17:29, Aki Tuomi wrote:
>> > Dovecot LMTP and Submission enforce the RFC line length, which is 1000, 
>> > including \r\n.
>> 
>> Can you elaborate on this?
>> 
>> I often get mail coming in from the wild with long lines and I find the most 
>> practical approach is to pass it on to dovecot LMTP as is, and it just 
>> works, and the message is stored with long lines, not folded.
>> 
>> I haven't tried dovecot's submission yet.
>> 
>> What exactly can you tell me about line length limits in LMTP and submission 
>> and can it be configured?
>
> This is something that is usually handled automatically and does not affect 
> the mails you see in your MUA. The folding is done within the protocol.

Hm. Confused  by some post in thread I make test
I tested with
1. dovecot with lmtp and maildir as storage.
2. postfix configured to pass messages with line folding turned off.

then I issued:

$for ((i=1;i<=1100;i++)); do echo -n "." ; done|mail kjonca

mail was delivered and in maildir file line was stored "as is" - without
any breaking newline.
So I believe dovecot-lmtp does not break the lines. And please do not
change this :)

KJ


-- 
http://wolnelektury.pl/wesprzyj/teraz/


Re: Question about line length limit in lmtp.

2022-12-08 Thread Gedalya
On 12/8/22 17:41, Aki Tuomi wrote:
> This is something that is usually handled automatically and does not affect 
> the mails you see in your MUA. The folding is done within the protocol.

Again, I find this statement quite strange. I'm not relying on any MUA when I 
say long lines appear to be kept unfolded in storage.

The scenario is an MTA e.g. exim delivering mail with long lines to dovecot 
LMTP. If you're saying I'm definitely wrong then I'd have to test again.

As for submission, are you saying that if a client is submitting mail with long 
lines, submission will fold the lines before passing it on? And this would make 
sense because DKIM signing occurs later?




Re: Question about line length limit in lmtp.

2022-12-08 Thread Aki Tuomi


> On 08/12/2022 11:39 EET Gedalya  wrote:
> 
>  
> On 12/8/22 17:29, Aki Tuomi wrote:
> > Dovecot LMTP and Submission enforce the RFC line length, which is 1000, 
> > including \r\n.
> 
> Can you elaborate on this?
> 
> I often get mail coming in from the wild with long lines and I find the most 
> practical approach is to pass it on to dovecot LMTP as is, and it just works, 
> and the message is stored with long lines, not folded.
> 
> I haven't tried dovecot's submission yet.
> 
> What exactly can you tell me about line length limits in LMTP and submission 
> and can it be configured?

This is something that is usually handled automatically and does not affect the 
mails you see in your MUA. The folding is done within the protocol.

Aki


Re: Question about line length limit in lmtp.

2022-12-08 Thread Gedalya
On 12/8/22 17:29, Aki Tuomi wrote:
> Dovecot LMTP and Submission enforce the RFC line length, which is 1000, 
> including \r\n.

Can you elaborate on this?

I often get mail coming in from the wild with long lines and I find the most 
practical approach is to pass it on to dovecot LMTP as is, and it just works, 
and the message is stored with long lines, not folded.

I haven't tried dovecot's submission yet.

What exactly can you tell me about line length limits in LMTP and submission 
and can it be configured?




Re: Question about line length limit in lmtp.

2022-12-08 Thread Aki Tuomi


> On 04/12/2022 18:25 EET Kamil Jońca  wrote:
> 
>  
> I have postfix + dovecot server.
> Mail for local users are saved by dovecot lmtp.
> Recently I got some messages from postfix:
> 
> --8<---cut here---start->8---
> 4NQ07L4h4LztXXr: breaking line > 998 bytes with SPAC
> --8<---cut here---end--->8---
> 
> This is because postfix has configured with default value
> lmtp_line_length_limit (990).
> I can turn off this limit (set to 0) but I am curious if dovecot lmtp
> will accept so lengthty lines?
> Does dovecot lmtp has any line limits?
> 
> KJ
> 
> -- 
> http://stopstopnop.pl/stop_stopnop.pl_o_nas.html

Dovecot LMTP and Submission enforce the RFC line length, which is 1000, 
including \r\n.

Aki