Open GoogleCodeExporter opened 9 years ago
I think this is the same issue as 1032 but with more detail.
Original comment by simon.lo...@plumbee.co.uk
on 16 Dec 2011 at 2:48
[deleted comment]
And to prove the point switching to SSL fixes the problem.
Original comment by simon.lo...@plumbee.co.uk
on 16 Dec 2011 at 2:56
Suggested patch
git diff
diff --git
a/gerrit-server/src/main/java/com/google/gerrit/server/mail/SmtpEmailSender.java
b/gerrit-server/src/main/java/com/google/gerrit/server/mail/SmtpEmailSender.java
index f681710..6a7fdbb 100644
---
a/gerrit-server/src/main/java/com/google/gerrit/server/mail/SmtpEmailSender.java
+++
b/gerrit-server/src/main/java/com/google/gerrit/server/mail/SmtpEmailSender.java
@@ -244,10 +244,6 @@ public class SmtpEmailSender implements EmailSender {
if (!client.startTLS(smtpHost, smtpPort, sslVerify)) {
throw new EmailException("SMTP server does not support TLS");
}
- if (!client.login()) {
- String e = client.getReplyString();
- throw new EmailException("SMTP server rejected login: " + e);
- }
}
if (smtpUser != null && !client.auth(smtpUser, smtpPass)) {
Original comment by simon.lo...@plumbee.co.uk
on 16 Dec 2011 at 3:01
Original issue reported on code.google.com by
simon.lo...@plumbee.co.uk
on 16 Dec 2011 at 2:47