Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Akram MONCER
Configure Email server for liferay
November 20, 2012 4:53 AM
Answer

Akram MONCER

Rank: Regular Member

Posts: 106

Join Date: September 25, 2012

Recent Posts

hello
i'm trying to configure the email server (just to send mail) use put thise config on the portal-ext.properties


mail.session.mail.store.protocol=imap
mail.session.mail.transport.protocol=smtp
#smtp properties
mail.session.mail.smtp.host=smtp.gmail.com
mail.session.mail.smtp.password=pass
mail.session.mail.smtp.user=user@gmail.com

mail.session.mail.smtp.port=587
mail.session.mail.smtp.auth=true
mail.session.mail.smtp.starttls.enable=true
mail.session.mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory
mail.session.mail.pop3.host=localhost


i try the 587 and 465 port but when i try to send an email for example like in the create account, i get this warn :

11:36:57,822 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: smtp.gmail.com, port: 587
Juhi Kumari
RE: Configure Email server for liferay
November 20, 2012 8:14 PM
Answer

Juhi Kumari

Rank: Expert

Posts: 347

Join Date: December 12, 2011

Recent Posts

Hi,

Use port no as
1mail.session.mail.smtp.port=465


and make sure your your gmail id and password are correct.

Regards
Juhi
asif aftab
RE: Configure Email server for liferay
January 21, 2014 11:20 AM
Answer

asif aftab

Rank: Junior Member

Posts: 95

Join Date: September 2, 2013

Recent Posts

Add this lines of code in your portal-ext.properties

mail.session.mail.pop3.host=pop.gmail.com

mail.session.mail.pop3.password=PASSWORD

mail.session.mail.pop3.port=110

mail.session.mail.pop3.user=USER

mail.session.mail.imap.host=imap.gmail.com

mail.session.mail.imap.port=993

mail.session.mail.store.protocol=imap

mail.session.mail.transport.protocol=smtp

mail.session.mail.smtp.host=smtp.gmail.com

mail.session.mail.smtp.password=PASSWD

mail.session.mail.smtp.user=USERID@gmail.com

mail.session.mail.smtp.port=465

mail.session.mail.smtp.auth=true

mail.session.mail.smtp.starttls.enable=true

mail.session.mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory



* Please user your password in place of PASSWD and your gmail user id in place of USERID.

By three different ways we can configure mail server in Liferay. I am using Liferay 6.2 and initially I got an error that could not connect to smtp host localhost port 25 in liferay by using different code. So I used above code and my mail server is configured properly and my application is able to send mail to the user in forgot password case.

And please see this link. This link help me to solve the issue.

https://www.permeance.com.au/web/tim.telcik/home/-/blogs/how-do-i-configure-liferay-portal-to-use-google-mail

Thanks

asif aftab