sundeep Gelli wrote:
Hi,

This is what i am getting when i tried to send a mail

Local socket connection.......po.unialert.com
Server Response1: 220 sundeep SMTP Server (JAMES SMTP Server 2.2.0) ready
Thu, 2
6 Jan 2006 17:49:26 +0800 (GMT+08:00)
Server Response2: 250 sundeep Hello ahmz (po.unialert.com [18.157.56.221])
Server Response3: 250 Sender <[EMAIL PROTECTED]> OK
Server Response4: 250 Recipient <[EMAIL PROTECTED]> OK
Server Response 5: 354 Ok Send data ending with <CRLF>.<CRLF>
Closed Connection with Server

My mailet log shows like this..........is it im closing the socket
abruptly??

Yes.

java.net.ConnectException: Connection timed out: connect
26/01/06 18:09:10 INFO  James.Mailet: RemoteDelivery: Temporary exception
delivering mail (Mail1138270107642-3-to-picmond.com:
javax.mail.MessagingException: No mail server(s) available at this time.
 at
org.apache.james.transport.mailets.RemoteDelivery.deliver(RemoteDelivery.jav
a:617)
 at
org.apache.james.transport.mailets.RemoteDelivery.run(RemoteDelivery.java:91
2)
 at java.lang.Thread.run(Thread.java:595)

This is a log for a mail that is being sent from James. Not about your connection.

And this is my error in mailet log.......seems something to do with socket
closing


java.net.SocketException: Software caused connection abort: recv failed
 at java.net.SocketInputStream.socketRead0(Native Method)
 at java.net.SocketInputStream.read(SocketInputStream.java:129)
 at java.io.BufferedInputStream.read1(BufferedInputStream.java:254)
 at java.io.BufferedInputStream.read(BufferedInputStream.java:313)
 at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:411)
 at sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:453)
 at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183)
 at java.io.InputStreamReader.read(InputStreamReader.java:167)
 at java.io.BufferedReader.fill(BufferedReader.java:136)
 at java.io.BufferedReader.read(BufferedReader.java:157)
 at
org.apache.james.util.CRLFTerminatedReader.readLine(CRLFTerminatedReader.jav
a:98)
 at
org.apache.james.smtpserver.SMTPHandler.readCommandLine(SMTPHandler.java:505
)
 at
org.apache.james.smtpserver.SMTPHandler.handleConnection(SMTPHandler.java:35
8)
 at
org.apache.james.util.connection.ServerConnection$ClientConnectionRunner.run
(ServerConnection.java:417)
 at
org.apache.james.util.thread.ExecutableRunnable.execute(ExecutableRunnable.j
ava:55)
 at org.apache.james.util.thread.WorkerThread.run(WorkerThread.java:90)


This is the exception thrown because you are closing your SMTP session in the middle.

Please follow the SMTP rfc and add CRLF.CRLF at the end of your data sessions (as I already pointed before) and it will work.

Stefano

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to