You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Joe Simone <je...@yahoo.com> on 2002/07/27 23:51:30 UTC

501 Synax Error - Exception delivering message

Hi all,


I just installed James 2.0a3 on my WinPro machine.  I
am using JDK 1.3.1_04-b02.  I am creating a mail
message in the JBoss 3.0 app server using the JavaMail
API.  The code is pretty straight-forward. The code
executes sucessfully and a message is sent to James
running on localhost.  I can see the message in
the mail/outgoing folder in the James tree:




Return-Path: <JB...@BJSLAP>
Received: from localhost ([127.0.0.1])
          by BJSLAP (JAMES SMTP Server 2.0a3-cvs) with
SMTP ID 985
          for <je...@yahoo.com>;
          Sat, 27 Jul 2002 16:25:50 -0400
Message-ID:
<53...@localhost>
From: JBoss_EJB@BJSLAP
To: jesimone57@yahoo.com
Subject: JavaMail Test
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Date: Sat, 27 Jul 2002 16:25:50 -0400

JavaMail from inside JBoss app Server



The message never arrives at its intended destination.
 Upon inspection of one of the log files,
James.Mailet.log, I see the following:




1027804266666 [INFO   ] (James.Mailet): ToProcessor:
Sending mail org.apache.james.core.MailImpl@44fe76 to
transport
1027804266686 [INFO   ] (James.Mailet):
RemoteDelivery: Remotely delivering mail
Mail1027804264193-0-!803420881
1027804266686 [INFO   ] (James.Mailet):
RemoteDelivery: sending mail to [jesimone57@yahoo.com]
on host yahoo.com
1027804266716 [INFO   ] (James.Mailet):
RemoteDelivery: Remote delivery thread (0) will
process mail
Mail1027804264193-0-!803420881-to-yahoo.com
1027804266726 [INFO   ] (James.Mailet):
RemoteDelivery: attempting to deliver
Mail1027804264193-0-!803420881-to-yahoo.com
1027804266806 [INFO   ] (James.Mailet):
RemoteDelivery: attempting delivery of
Mail1027804264193-0-!803420881-to-yahoo.com to host
mx2.mail.yahoo.com. to [jesimone57@yahoo.com]
1027804269741 [INFO   ] (James.Mailet):
RemoteDelivery: Exception delivering message
(Mail1027804264193-0-!803420881-to-yahoo.com) - 501
Syntax error in parameters or arguments

1027804269741 [INFO   ] (James.Mailet):
RemoteDelivery: Temporary exception delivering mail
(Mail1027804264193-0-!803420881-to-yahoo.com:
javax.mail.MessagingException: 501 Syntax error in
parameters or arguments

	at
com.sun.mail.smtp.SMTPTransport.issueCommand(SMTPTransport.java:879)
	at
com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:599)
	at
com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:319)
	at
org.apache.james.transport.mailets.RemoteDelivery.deliver(RemoteDelivery.java:192)
	at
org.apache.james.transport.mailets.RemoteDelivery.run(RemoteDelivery.java:449)
	at java.lang.Thread.run(Thread.java:479)

1027804269741 [INFO   ] (James.Mailet):
RemoteDelivery: Storing message
Mail1027804264193-0-!803420881-to-yahoo.com into
outgoing after 0 retries


Does anyone out there know what could be the cause of
this error and of the message not being forwarded on
to the recipient?  The only thing I really changed in
the config was adding two DNS that I had from my ISP,
DirecTV DSL as follows:



  <dnsserver>
        <servers>
          <!-- <server>127.0.0.1</server> -->
        	<server>216.227.80.36</server>
        	<server>216.227.49.36</server>        
        </servers>
        <authoritative>false</authoritative>
  </dnsserver>

And they get picked up sucessfully as evidenced via
the dnsserver.log file.

By the way, the SMTPserver.log looks like this:



1027803545369 [INFO   ] (smtpserver): SMTPServer
init...
1027803545379 [INFO   ] (smtpserver): SMTPServer
...init end
1027804262410 [INFO   ] (smtpserver): Hello Name is:
BJSLAP
1027804262410 [DEBUG  ] (smtpserver): Max message size
is: 0
1027804262410 [INFO   ] (smtpserver): Connection from
localhost (127.0.0.1)
1027804262420 [INFO   ] (smtpserver): Command
received: EHLO BJSLAP
1027804262420 [INFO   ] (smtpserver): Command
received: MAIL FROM:<JB...@BJSLAP>
1027804262420 [INFO   ] (smtpserver): Command
received: RCPT TO:<je...@yahoo.com>
1027804262440 [INFO   ] (smtpserver): Command
received: RSET
1027804264173 [INFO   ] (smtpserver): Command
received: RSET
1027804264173 [INFO   ] (smtpserver): Command
received: MAIL FROM:<JB...@BJSLAP>
1027804264173 [INFO   ] (smtpserver): Command
received: RCPT TO:<je...@yahoo.com>
1027804264173 [INFO   ] (smtpserver): Command
received: DATA
1027804264243 [INFO   ] (smtpserver): Mail sent to
Mail Server
1027804264373 [INFO   ] (smtpserver): Command
received: QUIT
1027806064331 [INFO   ] (smtpserver): SMTPServer
dispose...
1027806064331 [INFO   ] (smtpserver): SMTPServer
dispose...plain:25
1027806064391 [INFO   ] (smtpserver): SMTPServer
...dispose end




All the other logs files have only INFO and/or DEBUG
statements with nothing unusual.

Any help is much appreciated.
With kind regards,
Joe



__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: 501 Synax Error - Exception delivering message

Posted by "Noel J. Bergman" <no...@devtech.com>.
Joe,

My guess is that yahoo (your exception was for yahoo) is rejecting the
e-mail because you are configured as localhost instead of a routable
destination.

	--- Noel


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>