tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mupparthy Ravindranath <rv_n...@yahoo.com>
Subject Re: How to configure Tomcat-6 to use TLS based SMTP with exchange
Date Tue, 28 Dec 2010 13:56:06 GMT
Hi Pid,

thank you for the link.  However, I am not writing any code here.  I am just using tomcat.
 Is there a configuration property that accepts some 
string similar to "mail.smtp.starttls.enable = true" ?

thanks & regards,
RV



द्वारा: Pid <pid@pidster.com>
To: Tomcat Users List <users@tomcat.apache.org>
Cc: 
भेजे गए: मंगलवार, 28 दिसंबर, 2010 7:09:58 PM
विषय: Re: How to configure Tomcat-6 to use TLS based SMTP with exchange

On 12/28/10 8:49 AM, Mupparthy Ravindranath wrote:
> 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="me@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

http://lmgtfy.com/?q=javamail+tls


p


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message