[prev in list] [next in list] [prev in thread] [next in thread] 

List:       james-user
Subject:    Re: launching SMTP over SSL.
From:       Denis Navitaniuk <dnavitaniuk () compudava ! com>
Date:       2003-05-28 14:33:23
[Download RAW message or body]

Hello, Emmanuel!

I configured 2 smtp services (one on port 25 without TLS, and another on 
port 465 with TLS as was described in Vincenzo's mail) and POP3 (on port 
995 using TLS).

I can only work with configuration Secured POP3/Unsecured SMTP.

One observation:
I opened a SSLServerSocket using the same certfile (file with 
certificate as for James) from small java program, setted it on port 465 
and tried to send a message. Mail client was waiting about a minute, 
while the "server" (my java prog) was blocked on "is.read()" function 
where "is" is a input stream obtained from connected client socket.
I stopped the mail client and obtained the following stack trace in java 
program:

javax.net.ssl.SSLHandshakeException: Remote host closed connection 
during handshake
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275)
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
	at com.sun.net.ssl.internal.ssl.AppInputStream.read(DashoA6275)
	at com.sun.net.ssl.internal.ssl.AppInputStream.read(DashoA6275)
	at TRIALSSLServerSocket.main(TRIALSSLServerSocket.java:39)
Caused by: java.io.EOFException: SSL peer shut down incorrectly
	at com.sun.net.ssl.internal.ssl.InputRecord.read(DashoA6275)

Any ideas?
Can you post your code and describe how did u create your certificate, 
please?

 > First, it's (the proxy) not merged with James, it's only another Java 
process
 > which runs on his own beside James.
 >
 > Second, I think it would be much better to have multiple instance of a
 > particular service inside James. As Noel said, it's possible to have 
2 or
 > more,e.g., smtp process on different ports in James. Personnaly, I 
missed
 > that point.
 >
 > So, if someone can tell us how to have, e.g. 2 smtp process, one with 
port 25
 > and nothing special, and another with port 465 + SSL/TLS + auth; it 
will be
 > great.
 >
 > Thanks all,
 > Emmanuel
 >
 > ps: if it dosn't work, send me a mail and I'll post the code for the 
proxy.
 >

Thanks in advance.
Denis.


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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic