|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
SMTP host without SSLI configured Roller 4.0 for mail settings shown below -
mail.hostname=smtp.gmail.com mail.username=admin mail.password=admin123 mail.port=465 On startup the roller logs are showing the exception WARN 2009-09-15 11:24:40,078 WebloggerStartup:prepare - Failed to setup mail provider, continuing anways. Reason: ERROR connecting to mail server org.apache.roller.weblogger.business.startup.StartupException: ERROR connecting to mail server at org.apache.roller.weblogger.business.MailProvider.<init>(MailProvider.java:99) ........ ........ javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25; nested exception is: java.net.ConnectException: Connection refused: connect at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1282) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370) at javax.mail.Service.connect(Service.java:275) I believe this exception occus because Gmail mail server only allows SSL connection. Does anybody aware of any mail server which allows connection without SSL? or Is there any document/article available about how to setup mail with SSL for Roller 4.0? I tried but couldn't find any.... Regards, Viv |
|
|
Re: SMTP host without SSLOn Tue, Sep 15, 2009 at 1:33 AM, Vivek Gupta <viv2005@...> wrote:
> I configured Roller 4.0 for mail settings shown below - > > mail.hostname=smtp.gmail.com > mail.username=admin > mail.password=admin123 > mail.port=465 > > On startup the roller logs are showing the exception > > WARN 2009-09-15 11:24:40,078 WebloggerStartup:prepare - Failed to setup > mail provider, continuing anways. > Reason: ERROR connecting to mail server > org.apache.roller.weblogger.business.startup.StartupException: ERROR > connecting to mail server > at > > org.apache.roller.weblogger.business.MailProvider.<init>(MailProvider.java:99) > ........ > ........ > javax.mail.MessagingException: Could not connect to SMTP host: localhost, > port: 25; > This indicates it's trying to connect to localhost:25, not the one you have specified. Are you sure you put roller-custom.properties in the right location? Matt > nested exception is: > java.net.ConnectException: Connection refused: connect > at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1282) > at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370) > at javax.mail.Service.connect(Service.java:275) > > I believe this exception occus because Gmail mail server only allows SSL > connection. > > Does anybody aware of any mail server which allows connection without SSL? > or Is there any document/article available about how to setup mail with SSL > for Roller 4.0? > > I tried but couldn't find any.... > > Regards, > Viv > |
|
|
Re: SMTP host without SSLroller-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="admin@..." password="admin123" mail.debug="false" mail.user="admin@..." mail.password="admin123" mail.smtp.from="admin@..." 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; Regards, Viv On Tue, Sep 15, 2009 at 11:20 PM, Matt Raible <matt@...>wrote: > On Tue, Sep 15, 2009 at 1:33 AM, Vivek Gupta <viv2005@...> wrote: > > > I configured Roller 4.0 for mail settings shown below - > > > > mail.hostname=smtp.gmail.com > > mail.username=admin > > mail.password=admin123 > > mail.port=465 > > > > On startup the roller logs are showing the exception > > > > WARN 2009-09-15 11:24:40,078 WebloggerStartup:prepare - Failed to setup > > mail provider, continuing anways. > > Reason: ERROR connecting to mail server > > org.apache.roller.weblogger.business.startup.StartupException: ERROR > > connecting to mail server > > at > > > > > org.apache.roller.weblogger.business.MailProvider.<init>(MailProvider.java:99) > > ........ > > ........ > > javax.mail.MessagingException: Could not connect to SMTP host: localhost, > > port: 25; > > > > This indicates it's trying to connect to localhost:25, not the one you have > specified. Are you sure you put roller-custom.properties in the right > location? > > Matt > > > > nested exception is: > > java.net.ConnectException: Connection refused: connect > > at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1282) > > at > com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370) > > at javax.mail.Service.connect(Service.java:275) > > > > I believe this exception occus because Gmail mail server only allows SSL > > connection. > > > > Does anybody aware of any mail server which allows connection without > SSL? > > or Is there any document/article available about how to setup mail with > SSL > > for Roller 4.0? > > > > I tried but couldn't find any.... > > > > Regards, > > Viv > > > |
|
|
Re: SMTP host without SSLOn 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="admin@..." password="admin123" > mail.debug="false" > mail.user="admin@..." > mail.password="admin123" > mail.smtp.from="admin@..." > 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; Ceri -- That must be wonderful! I don't understand it at all. -- Moliere |
|
|
Re: SMTP host without SSLI just now encoutered like this problem. In my roller-custom.properties,displayed below,why doesn't it right? installation.type=auto database.configurationType=jdbc database.jdbc.driverClass=com.mysql.jdbc.Driver database.jdbc.connectionURL=jdbc:mysql://localhost:3306/rollerdb database.jdbc.username=scott database.jdbc.password=tiger mail.configurationType=properties mail.smtp.host=smtp.gmail.com mail.smtp.from=wdaogangtest@... mail.username=wdaogangtest@... mail.user=wdaogangtest@... mail.password=testtest and I can't view all the maillists in 2007 at http://mail-archives.apache.org/mod_mbox/roller- 2009-09-16 wdaogang 发件人: Vivek Gupta 发送时间: 2009-09-15 15:34:57 收件人: user 抄送: 主题: SMTP host without SSL I configured Roller 4.0 for mail settings shown below - mail.hostname=smtp.gmail.com mail.username=admin mail.password=admin123 mail.port=465 On startup the roller logs are showing the exception WARN 2009-09-15 11:24:40,078 WebloggerStartup:prepare - Failed to setup mail provider, continuing anways. Reason: ERROR connecting to mail server org.apache.roller.weblogger.business.startup.StartupException: ERROR connecting to mail server at org.apache.roller.weblogger.business.MailProvider.<init>(MailProvider.java:99) ........ ........ javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25; nested exception is: java.net.ConnectException: Connection refused: connect at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1282) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370) at javax.mail.Service.connect(Service.java:275) I believe this exception occus because Gmail mail server only allows SSL connection. Does anybody aware of any mail server which allows connection without SSL? or Is there any document/article available about how to setup mail with SSL for Roller 4.0? I tried but couldn't find any.... Regards, Viv |
|
|
RE: SMTP host without SSLHi Vivek,
Please change your roller-custom.properties file. It should be look like installation.type=auto database.configurationType=jndi database.jndi.name=jdbc/rollerdb mail.configurationType=jndi mail.jndi.name=mail/Session Location is correct. It should be in <TOMCAT6.0_HOME>\lib. Also add database settings in context.xml file like if you are using MySql database (Otherwise change accordingly) <Context path="/roller" docBase="G:/Program Files/Apache Software Foundation/Tomcat 6.0/webapps/roller" debug="0"> <!--ResourceLink global='jdbc/rollerdb' name='jdbc/rollerdb' type="javax.sql.Datasource"/--> <Resource name="jdbc/rollerdb" auth="Container" type="javax.sql.DataSource" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/rollerdb" username="root" password="root" maxActive="20" maxIdle="3" maxWait="3000" /> <Resource name="mail/Session" auth="Container" type="javax.mail.Session" username="admin@..." password="admin123!" mail.debug="false" mail.user="admin@..." mail.password=" admin123!" mail.smtp.from="admin@..." 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> Your Location for this file is also correct. It should be in <TOMCAT6.0_HOME>\webapps\roller\meta-inf Hope with these setting it will work for you as it did for me. And I am thankful to Alfonso Romero for this! Thanks, --Vikas -----Original Message----- From: Vivek Gupta [mailto:viv2005@...] Sent: Wednesday, September 16, 2009 12:17 PM To: user@... Subject: Re: SMTP host without SSL 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="admin@..." password="admin123" mail.debug="false" mail.user="admin@..." mail.password="admin123" mail.smtp.from="admin@..." 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; Regards, Viv On Tue, Sep 15, 2009 at 11:20 PM, Matt Raible <matt@...>wrote: > On Tue, Sep 15, 2009 at 1:33 AM, Vivek Gupta <viv2005@...> wrote: > > > I configured Roller 4.0 for mail settings shown below - > > > > mail.hostname=smtp.gmail.com > > mail.username=admin > > mail.password=admin123 > > mail.port=465 > > > > On startup the roller logs are showing the exception > > > > WARN 2009-09-15 11:24:40,078 WebloggerStartup:prepare - Failed to setup > > mail provider, continuing anways. > > Reason: ERROR connecting to mail server > > org.apache.roller.weblogger.business.startup.StartupException: ERROR > > connecting to mail server > > at > > > > > org.apache.roller.weblogger.business.MailProvider.<init>(MailProvider.java:99) > > ........ > > ........ > > javax.mail.MessagingException: Could not connect to SMTP host: localhost, > > port: 25; > > > > This indicates it's trying to connect to localhost:25, not the one you have > specified. Are you sure you put roller-custom.properties in the right > location? > > Matt > > > > nested exception is: > > java.net.ConnectException: Connection refused: connect > > at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1282) > > at > com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370) > > at javax.mail.Service.connect(Service.java:275) > > > > I believe this exception occus because Gmail mail server only allows SSL > > connection. > > > > Does anybody aware of any mail server which allows connection without > SSL? > > or Is there any document/article available about how to setup mail with > SSL > > for Roller 4.0? > > > > I tried but couldn't find any.... > > > > Regards, > > Viv > > > |
|
|
Re: SMTP host without SSLI managed to configure a google email account, but had to create a
context.xml file to put the mail settings instead of using roller-custom.properties, as explained in section 9.3 of Roller's installation guide. Regards, Alfonso ----- Original Message ----- From: "wdaogang" <wdgwdgwdg@...> To: "user" <user@...> Sent: Wednesday, September 16, 2009 8:33 AM Subject: Re: SMTP host without SSL > > I just now encoutered like this problem. > In my roller-custom.properties,displayed below,why doesn't it right? > > installation.type=auto > database.configurationType=jdbc > database.jdbc.driverClass=com.mysql.jdbc.Driver > database.jdbc.connectionURL=jdbc:mysql://localhost:3306/rollerdb > database.jdbc.username=scott > database.jdbc.password=tiger > mail.configurationType=properties > mail.smtp.host=smtp.gmail.com > mail.smtp.from=wdaogangtest@... > mail.username=wdaogangtest@... > mail.user=wdaogangtest@... > mail.password=testtest > > > and I can't view all the maillists in 2007 at > http://mail-archives.apache.org/mod_mbox/roller- > > 2009-09-16 > > > > wdaogang > > > > 发件人: Vivek Gupta > 发送时间: 2009-09-15 15:34:57 > 收件人: user > 抄送: > 主题: SMTP host without SSL > > I configured Roller 4.0 for mail settings shown below - > mail.hostname=smtp.gmail.com > mail.username=admin > mail.password=admin123 > mail.port=465 > On startup the roller logs are showing the exception > WARN 2009-09-15 11:24:40,078 WebloggerStartup:prepare - Failed to setup > mail provider, continuing anways. > Reason: ERROR connecting to mail server > org.apache.roller.weblogger.business.startup.StartupException: ERROR > connecting to mail server > at > org.apache.roller.weblogger.business.MailProvider.<init>(MailProvider.java:99) > ........ > ........ > javax.mail.MessagingException: Could not connect to SMTP host: localhost, > port: 25; > nested exception is: > java.net.ConnectException: Connection refused: connect > at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1282) > at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370) > at javax.mail.Service.connect(Service.java:275) > I believe this exception occus because Gmail mail server only allows SSL > connection. > Does anybody aware of any mail server which allows connection without SSL? > or Is there any document/article available about how to setup mail with > SSL > for Roller 4.0? > I tried but couldn't find any.... > Regards, > Viv > |
| Free embeddable forum powered by Nabble | Forum Help |