Fórum

SMTP Setup

Nikhil Sood, modificado 9 Anos atrás.

SMTP Setup

Junior Member Postagens: 41 Data de Entrada: 12/08/09 Postagens Recentes
I have configured SMTP based on instructions from Liferay documentation and various forum discussions.

I am using Liferay 6.2 CE. I don't get any error in telnet smtp.gmail.com 465. Now I am getting javamail authentication failure error. I have doubly confirmed that the gmail account credentials are correct, and I am able to login to the account using same credentials.

Appreciate any advice here.
--------------------------------------------------------------------------------
07:46:16,982 ERROR [liferay/mail-1][MailEngine:77] null
javax.mail.AuthenticationFailedException
at javax.mail.Service.connect(Service.java:306)
at com.liferay.util.mail.MailEngine._send(MailEngine.java:538)
at com.liferay.util.mail.MailEngine.send(MailEngine.java:356)
at com.liferay.util.mail.MailEngine.send(MailEngine.java:425)
at com.liferay.mail.messaging.MailMessageListener.doMailMessage(MailMess
ageListener.java:89)
at com.liferay.mail.messaging.MailMessageListener.doReceive(MailMessageL
istener.java:104)
at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseM
essageListener.java:26)
at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(In
vokerMessageListener.java:72)
at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(Paralle
lDestination.java:69)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._r
unTask(ThreadPoolExecutor.java:682)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.ru
n(ThreadPoolExecutor.java:593)
at java.lang.Thread.run(Thread.java:745)
------------------------------------------------------------------------------------------
Oliver Bayer, modificado 9 Anos atrás.

RE: SMTP Setup

Liferay Master Postagens: 894 Data de Entrada: 18/02/09 Postagens Recentes
Hi Nikhil,

as your telnet connection is working it's not a firewall issue. I would try adding "starttls=true" property.

HTH Oli
thumbnail
Olaf Kock, modificado 9 Anos atrás.

RE: SMTP Setup

Liferay Legend Postagens: 6403 Data de Entrada: 23/09/08 Postagens Recentes
I'm not sure google allows to use the actual account password that you use to log in on the website. Try setting up Thunderbird with the same parameters to get more interactive behaviour. You might need an application password to use google's SMTP rather than the webmail & account login password.
siddhant jain, modificado 9 Anos atrás.

RE: SMTP Setup (Resposta)

Junior Member Postagens: 69 Data de Entrada: 19/03/13 Postagens Recentes
Hi Nikhil,

Google sometimes blocks the login attempt made from application taking it as a threat.
you can login to security.google.com and tell google that the attempt made was by you and unblock it.

thanks
Siddhant
Nikhil Sood, modificado 9 Anos atrás.

RE: SMTP Setup

Junior Member Postagens: 41 Data de Entrada: 12/08/09 Postagens Recentes
Thanks Guys! emoticon

Basically I was using the same email address for testing, and google considered it as a potential attack, and hence blocked the address. The problem was resolved with different TO email addresses, and smtp is working as expected.