Hi Norman,

I read this article, but it only talked about the Mozilla/Outlook setup, there's no section talk about send/receive through JavaMail API. My JavaMail client works fine with GMail (With POP3s and SMTPs), but failed with James 2.3.0. I know send the mail in this maillist might not be a right place. i just wondering, if anyone tried use JavaMail API to access James with POP3s and SMTPs
And seen the exception below.

Thanks for your help
James.
Hi James,

I never  used SSL support in james but maybe this can help you :
http://wiki.apache.org/james/UsingSSL

bye
Norman

maomaode schrieb:
Hi,

I've setup james successfully with SSL

James Mail Server 2.3.0
Remote Manager Service started ssl:4555
POP3 Service started ssl:995
POP3 Service started plain:110
SMTP Service started ssl:465
SMTP Service started plain:25
NNTP Service started plain:119
FetchMail Disabled

I write a simple client code with javamail to send mail using the new
created smtp server with tls, but failed with the following exceptions:
(BTW: I tried gmail with the my javamail client, it's OK, so  i guess
something wrong in the james config. but i dont' know the reason.)


   [junit] javax.mail.MessagingException: Exception reading response;
   [junit]   nested exception is:
   [junit]     javax.net.ssl.SSLHandshakeException:
sun.security.validator.Vali
datorException: PKIX path building failed:
sun.security.provider.certpath.SunCer
tPathBuilderException: unable to find valid certification path to
requested targ
et
   [junit]     at
com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransp
ort.java:1462)
   [junit]     at
com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java
:1260)
   [junit]     at
com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport
.java:370)
   [junit]     at javax.mail.Service.connect(Service.java:275)
   [junit]     at
com.bokeland.imports.common.mail.Mailer.send(Mailer.java:52)
   [junit]     at
com.bokeland.imports.common.mail.MailerTest.testJames(MailerT
est.java:149)
   [junit] Caused by: javax.net.ssl.SSLHandshakeException:
sun.security.validat
or.ValidatorException: PKIX path building failed:
sun.security.provider.certpath
.SunCertPathBuilderException: unable to find valid certification path
to request
ed target
   [junit]     at
com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.ja
va:174)
   [junit]     at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImp
l.java:1520)
   [junit]     at
com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.ja
va:182)
   [junit]     at
com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.ja



James.


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


!DSPAM:1,462e0e8e324322121420857!




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




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

Reply via email to