Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
2.1
-
None
-
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.