On Wed, Sep 16, 2009 at 12:16:43PM +0530, Vivek Gupta wrote: > roller-custom.properties is in <TOMCAT6.0_HOME>\lib but now I have modified > it. Instead of specifying the mail configuration in roller-custom.properties > I have specified it in context.xml on location > <TOMCAT6.0_HOME>\webapps\roller\meta-inf. Contents of > roller-custom.properties are now - > > installation.type=manual > database.configurationType=jdbc > database.jdbc.driverClass=com.mysql.jdbc.Driver > database.jdbc.connectionURL=jdbc:mysql://localhost:3306/myrollerdb > database.jdbc.username=scott > database.jdbc.password=tiger > mail.configurationType=jndi > mail.jndi.name=mail/Session > > And contents of context.xml is - > > <Context path="/roller" > docBase="/user/local/apache-roller-4.0/webapp/roller" debug="0"> > <Resource name="mail/Session" auth="Container" type="javax.mail.Session" > username="[email protected]" password="admin123" > mail.debug="false" > mail.user="[email protected]" > mail.password="admin123" > mail.smtp.from="[email protected]" > mail.transport.protocol="smtp" > mail.smtp.port="465" > mail.smtp.host="smtp.gmail.com" > mail.smtp.auth="true" > mail.smtp.starttls.enable="true" > mail.smtp.socketFactory.port="465" > mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory" > mail.smtp.socketFactory.fallback="false" /> > </Context> > > Roller is now picking the right port but the exception remain same. > > javax.mail.MessagingException: Could not connect to SMTP host: > smtp.gmail.com, port: 465;
If you are using STARTTLS then the appropriate port is 25.
Ceri
--
That must be wonderful! I don't understand it at all.
-- Moliere
pgpu2RlYPNjza.pgp
Description: PGP signature
