Re: [exim-dev] [Bug 1684] Malformed headers which exceed len…

Góra strony
Delete this message
Reply to this message
Autor: Heiko Schlittermann
Data:  
Dla: exim-dev
Temat: Re: [exim-dev] [Bug 1684] Malformed headers which exceed length spec willingly passed to remote servers
Viktor Dukhovni <viktor1dane@???> (Sa 03 Okt 2015 21:42:00 CEST):
> On Sat, Oct 03, 2015 at 07:34:28PM +0000, admin@??? wrote:
>
> > remote_smtp:
> > driver = smtp
> > message_size_limit = ${if > {$max_received_linelength}{998} {1}{0}}
>
> Is "message_size_limit" really a line-length limit? If so, the
> name seems rather misleading. More likely, I would guess, that's
> a typo and the intended variable has some other name...


The message_size_limit applies only if it's >0.

        If (there is any line longer than 998 bytes) {
                the message is not allowed to be longer than 1 byte
        }
        else {
                do not apply any limit to the message size
        }


For SMTP it's solved in the ACL, for non-SMTP it's a bit more
tricky but should work as shown above.

    +------------------+---------------+-------------+----------+
    |message_size_limit|Use: transports|Type: string*|Default: 0|
    +------------------+---------------+-------------+----------+


    This option controls the size of messages passed through the transport. It is
    expanded before use; the result of the expansion must be a sequence of decimal
    digits, optionally followed by K or M. If the expansion fails for any reason,
    including forced failure, or if the result is not of the required form,
    delivery is deferred. If the value is greater than zero and the size of a
    message exceeds this limit, the address is failed. If there is any chance that
    the resulting bounce message could be routed to the same transport, you should
    ensure that return_size_limit is less than the transport's message_size_limit,
    as otherwise the bounce message will fail to get delivered.



    Best regards from Dresden/Germany
    Viele Grüße aus Dresden
    Heiko Schlittermann
-- 
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --------------- key ID: F69376CE -
 ! key id 7CBF764A and 972EAC9F are revoked since 2015-01 ------------ -