When setting up my gerrit server, I faced some problem for smtp mail configuration using Gmail.
'semdemail' configuration in gerrit.config is as below.
---------------------------------------------------------
[sendemail]
smtpServerPort = 465
smtpEncryption = SSL
sslVerify = false
smtpPass=[MY_PASSWORD]
---------------------------------------------------------
I double checked my google account and its password.
However, below "Username and Password not accepted." is occurred continually.
---------------------------------------------------------
[2014-09-13 00:28:27,692] ERROR com.google.gerrit.httpd.restapi.RestApiServlet : Error in PUT /accounts/self/emails/
agai...@gmail.comcom.google.gerrit.common.errors.EmailException: Mail Error: SMTP server rejected auth: 535-5.7.8 Username and Password not accepted. Learn more at
at com.google.gerrit.server.mail.SmtpEmailSender.open(SmtpEmailSender.java:276)
at com.google.gerrit.server.mail.SmtpEmailSender.send(SmtpEmailSender.java:173)
at com.google.gerrit.server.mail.OutgoingEmail.send(OutgoingEmail.java:124)
---------------------------------------------------------
I also set the 'Access for less secure apps' is enabled but the result is the same.
I googled a lot but I can't find the _right_ solution for me.
If you let me know the reason or solution,
I would be really happy. :)
Thank you in advances.
Derick.