james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject [jira] Closed: (JAMES-87) James SmtpServer chokes on some Eurora messages.
Date Sun, 06 Jun 2004 21:03:54 GMT

   The following issue has been closed.

View the issue:

Here is an overview of the issue:
        Key: JAMES-87
    Summary: James SmtpServer chokes on some Eurora messages.
       Type: Bug

     Status: Closed
 Resolution: FIXED

    Project: James

   Reporter: Ian Sollars

    Created: Thu, 6 Feb 2003 3:54 PM
    Updated: Sun, 6 Jun 2004 2:03 PM
Environment: Operating System: All
Platform: All

An old version of Eurora has been observed to send this:

>>>MAIL From:<example@foo.com> AUTH=<>

Which results in this:

06/02/03 16:00:59 INFO  smtpserver: Connection from mail.foo.com (
06/02/03 16:00:59 ERROR smtpserver: Error parsing sender address: 
example@foo.com> 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:<foo@bar.com>
<<<250 Sender <foo@bar.com> OK
>>>rcpt to: <ian.sollars@server>
<<<250 Recipient <ian.sollars@server> OK
<<<354 Ok Send data ending with <CRLF>.<CRLF>
<<<250 Message received

The problem child:

>>>mail from:<foo@bar.com> AUTH=<>
<<<501 Syntax error in sender address

Actual result was "501 Syntax error in sender address"
Expected result was "250 Sender <foo@bar.com> OK"

This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:

If you want more information on JIRA, or have a bug to report see:

To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org

View raw message