You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Brian McGovern <bm...@imediainc.com> on 2005/07/21 14:40:39 UTC

Where to beging with secure mail

Can anyone tell me how to get my app, which uses java mail to get a secure session with my smtp resource as defined in my context file.

<Resource name="mail/Session" auth="Container" type="javax.mail.Session"/>
<ResourceParams name="mail/Session">
	<parameter><name>mail.smtp.host</name> <value>192.168.100.24</value></parameter>
	<parameter><name>mail.smtp.socketFactory.class</name> <value>javax.net.ssl.SSLSocketFactory</value></parameter>
	<parameter><name>mail.smtp.socketFactory.fallback</name> <value>false</value></parameter>
	<parameter><name>mail.smtp.socketFactory.port</name> <value>465</value></parameter>
</ResourceParams>

I get an error that my smtp is not communicating via SSL.  Its an IIS box, but ill also need to do this on linux running sendmail in the near future.  What I dont understand is the key generation process and how to configure ssl on the mail side.  

Any help or ref docs would be a great help.
THanks
-B