Dear all, I have recently installed apache-tomcat-6.0.18. One of my webapps needs to send email using the Microsoft Exchange server 2003 of my company. The exchange server needs authentication over TLS. So far, I have configured in context.xml in this way...
[quote] 35 <!-- added by RV for configuring java mail session --> 36 <Resource auth="container" mail.smtp.host="mail.comviva.com" 37 name="Comviva Mail Service" type="javax.mail.Session" 38 mail.smtp.auth="true" 39 mail.imap.auth.plain.disable="true" 40 username="me" 41 password="mypassword" 42 mail.port="25" 43 mail.from="m...@mycompany.com" 44 mail.transport.protocol="smtp" 45 mail.debug="true" 46 /> 47 </Context> [/quote] But I always get the following error (the output is from catalina.out). [quote] com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.1 Client was not authenticated 109 110 at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1388) 111 at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:959) 112 at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:583) 113 at javax.mail.Transport.send0(Transport.java:169) 114 at javax.mail.Transport.send(Transport.java:98) 115 at net.sourceforge.pebble.util.MailUtils$SendMailRunnable.run(MailUtils.java:206) 116 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) 117 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 118 at java.lang.Thread.run(Thread.java:619) 119 28 Dec, 2010 11:45:52 AM org.apache.catalina.startup.HostConfig checkResources 120 INFO: Reloading context [/manager] 121 28 Dec, 2010 11:45:52 AM org.apache.catalina.startup.HostConfig checkResources 122 INFO: Reloading context [] [/quote] I ran an smtp session with my exchange server, and I realized that it needs TLS. So, how to configure TLS here? thanks in advance for the kind help... regards, RV