https://bugs.exim.org/show_bug.cgi?id=1684
Andreas Metzler <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #10 from Andreas Metzler <[email protected]> ---
(In reply to Jeremy Harris from comment #6)
> $max_received_linelength is already populated with the relevant value.
> This can be checked in the smtp_data acl and the smtp transports:
[...]
> remote_smtp:
> driver = smtp
> message_size_limit = ${if > {$max_received_linelength}{998} {1}{0}}
>
> Doing the latter results in a bounce for a long-line message accepted via
> non-smtp and routed to an smtp transport. You could reject in the non-smtp
> acl instead, but if support for long-lines in non-smtp traffic is desired
> this would be complex to properly filter.
>
> Possibly we should add the above to the example configuration file.
The problem with this approach is that bounce message generated when rejecting
SMTP transmission of a pipe injected message ("/usr/sbin/sendmail
[email protected] < longlines.txt") is lacking any information why the
message bounced.
[-- Typ: text/plain, Kodierung: 7bit, GröÃe: 0,2K --]
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
[email protected]
[-- Anhang #2 --]
[-- Typ: message/delivery-status, Kodierung: 7bit, GröÃe: 0,1K --]
Reporting-MTA: dns; server.example.com
Action: failed
Final-Recipient: rfc822;[email protected]
Status: 5.0.0
[-- Anhang #3 --]
[-- Typ: text/rfc822-headers, Kodierung: 7bit, GröÃe: 0,4K --]
Return-path: <[email protected]>
Received: from ametzler by server.example.com with local (Exim 4.88)
(envelope-from <[email protected]>)
id 1cNNWo-0005bq-H4
for [email protected]; Sat, 31 Dec 2016 18:33:10 +0100
Message-Id: <[email protected]>
From: Andreas Metzler <[email protected]>
Date: Sat, 31 Dec 2016 18:33:10 +0100
X-Exim-DSN-Information: Due to administrative limits only headers are returned
--
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/ ##