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 Akbar Munir <na...@akbarmunir.com> on 2008/11/07 15:17:34 UTC

James 2.3.1 with SSL / TLS

I am trying to use 2.3.1 with TLS for SMTP, POP3 and RemoteManager, however
have not been successful so far. The plain socket configuration works
perfectly fine for me. I have generated a self-signed certificate and a
private key through OpenSSL. Both the keys and the certificate have been
imported in the java keystore using the program  
http://www.agentbob.info/agentbob/79-AB.html
http://www.agentbob.info/agentbob/79-AB.html . The SSL Socket factory
configuration has been changed to correct values and TLS option for SMTP
server is on. However when I try to connect from Microsoft Outlook 2007 to
the server, the connection just hangs there, doing nothing.

A bit of snooping on the packets revealed that after the initial TCP
handshake, not a single packet is exchanged between the server and the
client. There may be a chance that I am missing something in the server
configuration.

Can someone using Outlook 2007 with James on either windows or linux share
their configuration with me? Also is it possible to debug through logs the
progress of the SSL socket factory in Avalon? If yes, then what options need
to be enabled?

Thanks,
Akbar.
-- 
View this message in context: http://www.nabble.com/James-2.3.1-with-SSL---TLS-tp20381344p20381344.html
Sent from the James - Users mailing list archive at Nabble.com.


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


Re: James 2.3.1 with SSL / TLS

Posted by Akbar Munir <na...@akbarmunir.com>.
It appears that the problem lies with the Outlook 2007 and not with the
James. The Outlook after establishing the TCP connection never initiated the
TLS handshake with the server. The same outlook with different account
successfully establishes the TLS connection with Yahoo's SMTP server.

Anyone here has an experience of using Outlook 2007 with James (though this
should not have been difficult)? I will also try JavaMail to confirm the
problem with Outlook configuration.

Thanks,
Akbar.
-- 
View this message in context: http://www.nabble.com/James-2.3.1-with-SSL---TLS-tp20381344p20443773.html
Sent from the James - Users mailing list archive at Nabble.com.


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


Re: James 2.3.1 with SSL / TLS

Posted by Akbar Munir <na...@akbarmunir.com>.
Just an update. Using Netbeans, I stepped in the code to find out whats going
wrong. With the TLS socket, when any of the service calls
writeFlushedResponse() which in turns calls out.flush(), it just hangs.
Never moves on to the next statement.

the out.flush() function now belongs to avalon and I am not too sure how to
debug avalon.


Akbar Munir wrote:
> 
> I am trying to use 2.3.1 (JDK 1.6.06 on windows xp sp3 and JDK 1.6.10 on
> Ubuntu 8.10 server) with TLS for SMTP, POP3 and RemoteManager, however
> have not been successful so far. The plain socket configuration works
> perfectly fine for me. I have generated a self-signed certificate and a
> private key through OpenSSL. Both the keys and the certificate have been
> imported in the java keystore using the program  
> http://www.agentbob.info/agentbob/79-AB.html
> http://www.agentbob.info/agentbob/79-AB.html . The SSL Socket factory
> configuration has been changed to correct values and TLS option for SMTP
> server is on. However when I try to connect from Microsoft Outlook 2007 to
> the server, the connection just hangs there, doing nothing.
> 
> A bit of snooping on the packets revealed that after the initial TCP
> handshake, not a single packet is exchanged between the server and the
> client. There may be a chance that I am missing something in the server
> configuration.
> 
> Can someone using Outlook 2007 with James on either windows or linux share
> their configuration with me? Also is it possible to debug through logs the
> progress of the SSL socket factory in Avalon? If yes, then what options
> need to be enabled?
> 
> Thanks,
> Akbar.
> 

-- 
View this message in context: http://www.nabble.com/James-2.3.1-with-SSL---TLS-tp20381344p20394079.html
Sent from the James - Users mailing list archive at Nabble.com.


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