Foren

SMTP Setup

Nikhil Sood, geändert vor 9 Jahren.

SMTP Setup

Junior Member Beiträge: 41 Beitrittsdatum: 12.08.09 Neueste Beiträge
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, geändert vor 9 Jahren.

RE: SMTP Setup

Liferay Master Beiträge: 894 Beitrittsdatum: 18.02.09 Neueste Beiträge
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, geändert vor 9 Jahren.

RE: SMTP Setup

Liferay Legend Beiträge: 6403 Beitrittsdatum: 23.09.08 Neueste Beiträge
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, geändert vor 9 Jahren.

RE: SMTP Setup (Antwort)

Junior Member Beiträge: 69 Beitrittsdatum: 19.03.13 Neueste Beiträge
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, geändert vor 9 Jahren.

RE: SMTP Setup

Junior Member Beiträge: 41 Beitrittsdatum: 12.08.09 Neueste Beiträge
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.