Mailing List Archive

[Bug 2827] bounce generated by exim gets too long lines breaching message_linelength_limit limit
https://bugs.exim.org/show_bug.cgi?id=2827

--- Comment #3 from Jeremy Harris <jgh146exb@wizmail.org> ---
Oddly, there's already a limit of 12 ref items in a generated References:
- so the above example with 50-char items only make on order of 600.

We should also impose a 998-char limit for them, but it's not obviously
a fix for that case.

Ah - you looked at the -D file, so it was the body not the headers,
and bug 1760 should apply.

--
You are receiving this mail because:
You are on the CC list for the bug.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##
[Bug 2827] bounce generated by exim gets too long lines breaching message_linelength_limit limit [ In reply to ]
https://bugs.exim.org/show_bug.cgi?id=2827

Jeremy Harris <jgh146exb@wizmail.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |DUPLICATE
Status|ASSIGNED |RESOLVED

--- Comment #4 from Jeremy Harris <jgh146exb@wizmail.org> ---


*** This bug has been marked as a duplicate of bug 1760 ***

--
You are receiving this mail because:
You are on the CC list for the bug.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##
Re: [Bug 2827] bounce generated by exim gets too long lines breaching message_linelength_limit limit [ In reply to ]
On 2023/03/16 18:05, admin--- via Exim-dev wrote:
> https://bugs.exim.org/show_bug.cgi?id=2827
>
> --- Comment #3 from Jeremy Harris<jgh146exb@wizmail.org> ---
> Oddly, there's already a limit of 12 ref items in a generated References:
> - so the above example with 50-char items only make on order of 600.
>
> We should also impose a 998-char limit for them, but it's not obviously
> a fix for that case.
>
> Ah - you looked at the -D file, so it was the body not the headers,
> and bug 1760 should apply.


Just had a customer complaining that emails are going going through.,
She can't reply to an email - but it is in her outbox - so must be my
problem (!)

In my log (exigrep), I see:

2023-11-14 10:23:37 1r2ohs-00000000rKP-1wOe <= exile1@zanet.co.za
H=102-182-164-22.ip.airmobile.co.za (DESKTOPFQ8ND4G)
[102.182.164.22]:50938 I=[192.96.24.71]:587 P=esmtpsa
X=TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256 CV=no
A=PLAIN:exile1@zanet.co.za S=817840
id=037201da16d3$dd5d7110$98185330$@zanet.co.za T="RE: Water Bottles"
2023-11-14 10:23:37 1r2ohs-00000000rKP-1wOe ** cherese@nhb.co.za
R=dnslookup T=remote_smtp: message has lines too long for transport
2023-11-14 10:23:37 1r2ohs-00000000rKP-1wOe ** exile@zanet.co.za
R=dnslookup T=remote_smtp: message has lines too long for transport

-----------------------------------------------


Looked in the exim/input directory and can see......

(cat 1r2U7x-00000000f6b-3Qeg-H)

1r2U7x-00000000f6b-3Qeg-H
mail 8 12
<>
1699871109 0
-received_time_usec .817440
-received_time_complete 1699871109.829769
-ident mail
-received_protocol local
-body_linecount 53
-max_received_linelength 1090
-allow_unqualified_recipient
-allow_unqualified_sender
-frozen 1699871109
-localerror
-tls_resumption A
XX
1
exile1@zanet.co.za

149P Received: from mail by relay.vweb.co.za with local (Exim 4.97)
    id 1r2U7x-00000000f6b-3Qeg
    for exile1@zanet.co.za;
    Mon, 13 Nov 2023 12:25:09 +0200
060  X-Failed-Recipients: exile@zanet.co.za,
cherese@nhb.co.za
029  Auto-Submitted: auto-replied
060F From: Mail Delivery System <Mailer-Daemon@relay.vweb.co.za>
023T To: exile1@zanet.co.za
878  References: <00a001da114b$297d0710$7c771530$@zanet.co.za>
<VI1P190MB0558AA3481CD61E49269F9E0EEA9A@VI1P190MB0558.EURP190.PROD.OUTLOOK.COM>
<00f001da1165$3a22f6f0$ae68e4d0$@zanet.co.za>
<VI1P190MB0558103DC90D13872C14BFD6EEA9A@VI1P190MB0558.EURP190.PROD.OUTLOOK.COM>
<018801da1181$178b7600$46a26200$@zanet.co.za>
<VI1P190MB0558E6C272EE0DBF6D1B010EEEA8A@VI1P190MB0558.EURP190.PROD.OUTLOOK.COM>
<026d01da122c$63223c60$2966b520$@zanet.co.za>
<5387b135-cc47-434f-8b0e-f40c0193d631.ef30e61e-ccc3-4a23-bf72-aa218fcce668.b859200d-c5f1-4535-ae61-65bf9317332c@emailsignatures365.codetwo.com>
<DBAP190MB08084790A7E42772D11EF3ABE6A8A@DBAP190MB0808.EURP190.PROD.OUTLOOK.COM>
<02c001da1230$80438610$80ca9230$@zanet.co.za>
<DBAP190MB08086687261F27E65CF359DBE6A8A@DBAP190MB0808.EURP190.PROD.OUTLOOK.COM>
<033201da1244$3d28efa0$b77acee0$@zanet.co.za>
<02a801da161b$adae2490$090a6db0$@zanet.co.za>
100  Content-Type: multipart/report; report-type=delivery-status;
boundary=1699871109-eximdsn-1804289383
018  MIME-Version: 1.0
059  Subject: Mail delivery failed: returning message to sender
056I Message-Id: <E1r2U7x-00000000f6b-3Qeg@relay.vweb.co.za>
038  Date: Mon, 13 Nov 2023 12:25:09 +0200


So who is to blame? That's 13 references? The Outlook ones are very
long. I dislike the way Microsoft "shouts" - like they believe they are
always right - but they would appear to be the cause of the problem -
very long references?

Can I reduce the maximum number of references perhaps to 10?
What else can I do to reduce customer anxiety?

I am the "zanet.co.za" side and the local references are reasonably short.

I think this email is now frozen   (-frozen 1699871109, -localerror ) -
so my frustrated email user will never see this - or what to do if she does.

What should I tell the customer to do? What can I do?

--

Mark James ELKINS  -  Posix Systems - (South) Africa
mje@posix.co.za Tel: +27.826010496 <tel:+27826010496>
For fast, reliable, low cost Internet in ZA: https://ftth.posix.co.za
<https://ftth.posix.co.za>



--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-dev.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-dev-unsubscribe@lists.exim.org
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Re: [Bug 2827] bounce generated by exim gets too long lines breaching message_linelength_limit limit [ In reply to ]
> 2023-11-14 10:23:37 1r2ohs-00000000rKP-1wOe ** cherese@nhb.co.za
> R=dnslookup T=remote_smtp: message has lines too long for transport

> What can I do?

I use in transports:

driver = smtp
.ifdef _OPT_TRANSPORT_SMTP_MESSAGE_LINELENGTH_LIMIT
message_linelength_limit = 150000000
.endif


--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-dev.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-dev-unsubscribe@lists.exim.org
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Re: [Bug 2827] bounce generated by exim gets too long lines breaching message_linelength_limit limit [ In reply to ]
On 14/11/2023 09:53, Mark Elkins via Exim-dev wrote:
> That's 13 references? The Outlook ones are very long.

While that is true, the total for the line is only 878 chars (cf. the number starting
the line in the -H file). It's at least possible that the message body was the issue,
not the headers.

Your logged error was "message has lines too long for transport". What is your remote_smtp
transport config? Are you will to (try to) send messages that exceed the limits written in
standards?
--
Cheers,
Jeremy


--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-dev.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-dev-unsubscribe@lists.exim.org
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Re: [Bug 2827] bounce generated by exim gets too long lines breaching message_linelength_limit limit [ In reply to ]
Thanks.

Have added:

begin transports

# This transport is used for delivering messages over SMTP connections.

remote_smtp:
  driver = smtp
.ifdef _OPT_TRANSPORT_SMTP_MESSAGE_LINELENGTH_LIMIT
  message_linelength_limit = 2000
.endif

Will see if I get further errors...

On 2023/11/14 12:06, Lena--- via Exim-dev wrote:
>> 2023-11-14 10:23:37 1r2ohs-00000000rKP-1wOe ** cherese@nhb.co.za
>> R=dnslookup T=remote_smtp: message has lines too long for transport
>> What can I do?
> I use in transports:
>
> driver = smtp
> .ifdef _OPT_TRANSPORT_SMTP_MESSAGE_LINELENGTH_LIMIT
> message_linelength_limit = 150000000
> .endif
>
>
--

Mark James ELKINS  -  Posix Systems - (South) Africa
mje@posix.co.za       Tel: +27.826010496 <tel:+27826010496>
For fast, reliable, low cost Internet in ZA: https://ftth.posix.co.za
<https://ftth.posix.co.za>



--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-dev.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-dev-unsubscribe@lists.exim.org
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/