On Tue, Sep 15, 2009 at 1:33 AM, Vivek Gupta <viv2...@gmail.com> 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 >