Hi,
I have looked on the internet for a long time without finding any information on the configuration of the mail service of jboss
I need to send an email from an EJB through a smpt server which requires TLS authentication. I tried different configurations. It seems that jboss mail service simply ignores some common properties like mail.smtp.tls = true
Any idea?
<mbean code="org.jboss.mail.MailService" name="jboss:service=Mail"> <attribute name="JNDIName">java:/Mail</attribute> <attribute name="Configuration"> <configuration> <property name="mail.transport.protocol" value="smtp"/> <property name="mail.smtp.host" value="smtp.gmail.com"/> <property name="mail.from" value="username@gmail.com"/> <property name="mail.debug" value="true"/> <property name="mail.smtp.auth" value="true"/> <property name="mail.smtp.tls" value="true"/> <property name="mail.smtp.user" value="username"/> <property name="password" value="password"/> </configuration> </attribute> </mbean>
I solved the problem myself ;-)
JBoss 4.0.x is coming with JavaMail 1.3.1 which does not support TLS (introduced in JM 1.3.2!)
just update mail.jar in the lib directory with the 4 jar of the new JavaMail and all the new features will work seamlessly including TLS