I'm trying to configure GIT to send emails via Google's SMTP servers
using an email address/domain that I have setup with Google Apps.
I have been able to get SSMTP working with this configuration:
root=
ger...@mydomain.com
mailhub=
smtp.gmail.com:587
AuthUser=
ger...@mydomain.com
AuthPass=****
UseSTARTTLS=YES
UseTLS=YES
My Gerrit configuration looks like:
[sendemail]
from = ${user} <
ger...@mydomain.com>
smtpServer =
smtp.gmail.com
smtpServerPort = 587
smtpUser =
ger...@mydomain.com
smtpPass = ****
smtpEncryption = tls
Gerrit is unable to send mails and I am getting this error in the UI
after quite awhile (> 30 seconds), I don't see anything in [gerrit2]/
logs/error_log:
ERROR com.google.gerrit.httpd.rpc.account.AccountSecurityImpl :
Cannot send email verification message to
us...@mydomain.com
com.google.gerrit.server.mail.EmailException: Connection closed
without indication.
at
com.google.gerrit.server.mail.SmtpEmailSender.open(SmtpEmailSender.java:
201)
at
com.google.gerrit.server.mail.SmtpEmailSender.send(SmtpEmailSender.java:
107)
at
com.google.gerrit.server.mail.OutgoingEmail.send(OutgoingEmail.java:
202)
at
com.google.gerrit.httpd.rpc.account.AccountSecurityImpl.registerEmail(AccountSecurityImpl.java:
267)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
Any ideas on what I need to change in the Gerrit configuration to get
this working?
- Eric