Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-107

CR or LF will improperly terminate SMTP command

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • 2.1
    • None
    • SMTPServer
    • None
    • Operating System: All
      Platform: All
    • 20370

    Description

      RFC 2821 section 2.3.7 tells that lines which contain SMTP commands should end
      with CRLF, and servers must not recognize any other character sequence as a line
      terminator.

      In James 2.1.2, james.smptserver.SMTPHandler uses the BufferedReader readLine()
      method to read envelope command lines from the input stream. According to the
      JavaDoc, this method terminates a line upon receiving any one of: a line feed
      ('\n'); a carriage return ('\r'); or a carriage return followed immediately by a
      linefeed. I have confirmed this with tests: James accepts either a line feed or
      carriage return alone as a line terminator for envelope command lines.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rohammer@earthlink.net Rich
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: