Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Marcel Müller
Problem with Mail-Server setup via portal-ext.properties
March 27, 2013 10:06 AM
Answer

Marcel Müller

Rank: New Member

Posts: 1

Join Date: March 27, 2013

Recent Posts

Hello,

Using Liferay 6.1.1 GA 2 in our project, we want to configure the mail-server at liferay portal via the portal-ext.properties. After updating the portal-ext.properties and restarting Liferay, the mail - configuration of portal-ext.properties will not be used. In the GUI configuration you don't see the values of mail-setup of portal-ext.properties. (The values at the GUI were removed before restarting Liferay). When trying to use the Liferay Mail-Service, we got this message in the log:

117:47:37,462 WARN  [liferay/mail-1][MailEngine:560] Failed to connect to a valid mail server. Please make sure one is properly configured. Could not connect to SMTP host: localhost, port: 0


When configuring the Mail - Server via the GUI, it works, but we want to use the portal-ext.properties

our portal-ext.properties mail configuration:
 1mail.session.mail.smtp.auth=false
 2mail.session.mail.smtp.host=localhost
 3mail.session.mail.smtp.port=25
 4mail.session.mail.store.protocol=pop3
 5mail.session.mail.transport.protocol=smtp
 6mail.session.mail.smtp.password=
 7mail.session.mail.smtp.user=
 8
 9mail.session.mail.pop3.host=localhost
10mail.session.mail.pop3.password=
11mail.session.mail.pop3.port=110
12mail.session.mail.pop3.user=


Anyone an idea where the problem could be?

Thanks for you answers!
Niksa Jakovljevic
RE: Problem with Mail-Server setup via portal-ext.properties
March 7, 2014 2:18 AM
Answer

Niksa Jakovljevic

Rank: New Member

Posts: 1

Join Date: September 12, 2011

Recent Posts

I have the exact same problem with the same version as yours.
Anybody ?
David H Nebinger
RE: Problem with Mail-Server setup via portal-ext.properties
March 7, 2014 3:59 AM
Answer

David H Nebinger

Community Moderator

Rank: Liferay Legend

Posts: 11793

Join Date: September 1, 2006

Recent Posts

Mail settings in portal-ext.properties are only used when the portal is started the first time, they are used to populate the database. From that point on the GUI is used.
Nagaraj Bayanna
RE: Problem with Mail-Server setup via portal-ext.properties
March 22, 2014 11:12 AM
Answer

Nagaraj Bayanna

Rank: New Member

Posts: 12

Join Date: September 28, 2011

Recent Posts

it seems you have some problems with mail server configurations, before validating with liferay, first try to send mail from your mail server, and validate the mail server logs, i dont think liferay is blocking your mails.
Nagaraj Bayanna
RE: Problem with Mail-Server setup via portal-ext.properties
March 22, 2014 11:15 AM
Answer

Nagaraj Bayanna

Rank: New Member

Posts: 12

Join Date: September 28, 2011

Recent Posts

after validating mail server, use this proprieties hope this will be enough, for me its working fine.

#mail
mail.session.mail.imap.host=
mail.session.mail.pop3.host=
mail.session.mail.smtp.host=
mail.session.mail.store.protocol=