DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16847>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16847 James SmtpServer chokes on some Eurora messages. Summary: James SmtpServer chokes on some Eurora messages. Product: James Version: 1.2 Platform: All OS/Version: All Status: NEW Severity: Normal Priority: Other Component: SMTPServer AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] An old version of Eurora has been observed to send this: >>>MAIL From:<[EMAIL PROTECTED]> AUTH=<> Which results in this: 06/02/03 16:00:59 INFO smtpserver: Connection from mail.foo.com (10.0.0.2) 06/02/03 16:00:59 ERROR smtpserver: Error parsing sender address: [EMAIL PROTECTED]> AUTH=<: Invalid character at 16 And the client sees this: <<< 501 Syntax error in sender address At first glance, the problem is at org.apache.james.smtpserver.SMTPHandler.java:842, as follows: int lastChar = sender.lastIndexOf('>'); It should probably read like this: int lastChar = sender.indexOf('>', sender.indexOf('<')); i.e. the next gt after the first lt. This was observed in the version of James you have in binaries: james-2.1.zip 30-Dec-2002 06:33 4.4M The Eurora version may be relatively obscure. Alway reproducible. James was running on w2k server, 1.4.1.something SDK Steps to reproduce: telnet to a james server ("server" in below) on port 25. A normal mail: <<<220 Hermes SMTP Server (JAMES SMTP Server 2.1) ready Thu, 6 Feb 2003 16:44:02 +0100 (CET) >>>mail from:<[EMAIL PROTECTED]> <<<250 Sender <[EMAIL PROTECTED]> OK >>>rcpt to: <ian.sollars@server> <<<250 Recipient <ian.sollars@server> OK >>>data <<<354 Ok Send data ending with <CRLF>.<CRLF> >>>message >>> >>>. <<<250 Message received The problem child: >>>mail from:<[EMAIL PROTECTED]> AUTH=<> <<<501 Syntax error in sender address Actual result was "501 Syntax error in sender address" Expected result was "250 Sender <[EMAIL PROTECTED]> OK" --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
