https://bugs.exim.org/show_bug.cgi?id=1684

Andreas Metzler <eximus...@bebt.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |eximus...@bebt.de

--- Comment #10 from Andreas Metzler <eximus...@bebt.de> ---
(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
someb...@example.com < 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:

  re...@example.com

[-- Anhang #2 --]
[-- Typ: message/delivery-status, Kodierung: 7bit, Größe: 0,1K --]

Reporting-MTA: dns; server.example.com

Action: failed
Final-Recipient: rfc822;re...@example.com
Status: 5.0.0

[-- Anhang #3 --]
[-- Typ: text/rfc822-headers, Kodierung: 7bit, Größe: 0,4K --]

Return-path: <r...@bebt.de>
Received: from ametzler by server.example.com with local (Exim 4.88)
        (envelope-from <r...@bebt.de>)
        id 1cNNWo-0005bq-H4
        for re...@example.com; Sat, 31 Dec 2016 18:33:10 +0100
Message-Id: <e1cnnwo-0005bq...@midonly.server.example.com>
From: Andreas Metzler <sen...@example.com>
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/ ##

Reply via email to