[exim-dev] [Bug 1195] New: read_message_data_smtp should com…

Top Page

Reply to this message
Author: Simon Arlott
To: exim-dev
Subject: [exim-dev] [Bug 1195] New: read_message_data_smtp should comply with RFC5321
------- You are receiving this mail because: -------
You are on the CC list for the bug.

           Summary: read_message_data_smtp should comply with RFC5321
           Product: Exim
           Version: 4.77
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Mail Receipt
        AssignedTo: nigel@???
        ReportedBy: bugzilla.exim.simon@???
                CC: exim-dev@???

2.3.8. Lines

Lines consist of zero or more data characters terminated by the
sequence ASCII character "CR" (hex value 0D) followed immediately by
ASCII character "LF" (hex value 0A). This termination sequence is
denoted as <CRLF> in this document. Conforming implementations MUST
NOT recognize or generate any other character or character sequence
as a line terminator. Limits MAY be imposed on line lengths by
servers (see Section 4).

In src/src/receive.c:
FUDGE: It seems that sites on the net send out messages with just LF
terminators, despite the warnings in the RFCs, and other MTAs handle this. So
we make the CRs optional in all cases.

It's possible for <LF>.<LF> to be inside an attachment causing the message
to end early:

17:26:34 < cek> 2012-01-04 11:20:28 SMTP call from
snt0-omc2-s17.snt0.hotmail.com [] dropped: too many syntax or
protocol errors (last command was

17:26:34 < cek>

Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email