[exim-dev] [Bug 1999] New: max_received_linelength and CHUNK…

Top Page
Delete this message
Reply to this message
Author: admin
Date:  
To: exim-dev
Subject: [exim-dev] [Bug 1999] New: max_received_linelength and CHUNKING/BDAT
https://bugs.exim.org/show_bug.cgi?id=1999

            Bug ID: 1999
           Summary: max_received_linelength and CHUNKING/BDAT
           Product: Exim
           Version: N/A
          Hardware: x86
                OS: Linux
            Status: NEW
          Severity: bug
          Priority: medium
         Component: String expansion
          Assignee: nigel@???
          Reporter: eximusers@???
                CC: exim-dev@???


Hello,

expansion of max_received_linelength does not work correctly with
CHUNKING/BDAT:

--------------------------------
220 argenau.bebt.de ESMTP Exim 4.88 Sat, 24 Dec 2016 11:23:55 +0100
EHLO argenau.bebt.de
250-argenau.bebt.de Hello localhost [::1]
250-SIZE 52428800
250-8BITMIME
250-PIPELINING
250-AUTH CRAM-MD5
250-CHUNKING
250-STARTTLS
250-PRDR
250 HELP
MAIL FROM:<ametzler@localhost>
250 OK
RCPT TO:<ametzler@localhost>
250 Accepted
BDAT 749 LAST
From: ametzler@???
To: ametzler@???
Subject: long line test

long line follows
long line follows1
long line follows12
long line follows123
long line follows1234
long line follows12345
long line follows123456
long line follows1234567
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
one more
250- 749 byte chunk, total 753
250 OK id=1cKjUu-0004e1-Na

mainlog:
2016-12-24 11:24:24 1cKjUu-0004e1-Na H=localhost (argenau.bebt.de) [::1]
Warning: ametzler max_received_linelength is 23
2016-12-24 11:24:24 1cKjUu-0004e1-Na <= ametzler@??? H=localhost
(argenau.bebt.de) [::1] P=esmtp K S=1054
2016-12-24 11:24:24 1cKjUu-0004e1-Na => ametzler <ametzler@localhost>
R=local_user T=mail_spool
2016-12-24 11:24:24 1cKjUu-0004e1-Na Completed

DATA ACL
warn log_message = ametzler max_received_linelength is $max_received_linelength
------------------------------

As can be seen above we send a message with a line at about 500 octets and
$max_received_linelength is 23.

I am no sure whether $max_received_linelength should not be -1 with BDAT. A
main point of BDAT is that it is not line-orientated and especially the SMTP
1000 octets/line limit does not apply.

So the $max_received_linelength-bug has the nice effect that

  # Deny if the message contains an overlong line.  Per the standards
  # we should never receive one such via SMTP.
  #
  deny    message    = maximum allowed line length is 998 octets, \
                       got $max_received_linelength
          condition  = ${if > {$max_received_linelength}{998}}


in the default DATA ACL does not (incorrectly) reject BDAT messages with long
lines.

cu Andreas

--
You are receiving this mail because:
You are on the CC list for the bug.