For future reference, the relevant patch can be found at [1]. It consists of removing the line which set the property "mail.smtp.auth" to true within the if(isisSTARTTLS()) branch in SMTpAppednerBase class.
if (isSTARTTLS()) {
- props.setProperty("mail.smtp.auth", "true");
props.put("mail.smtp.starttls.enable", "true");
}
Tests on pixie (postfix) show that for authentication disabled server, setting the aforementioned property results in
|-ERROR in ch.qos.logback.classic.net.SMTPAppender[EMAIL] - Error occurred while sending e-mail notification. javax.mail.AuthenticationFailedException
at javax.mail.AuthenticationFailedException
at at javax.mail.Service.connect(Service.java:306)
at at javax.mail.Service.connect(Service.java:156)
at at javax.mail.Service.connect(Service.java:105)
at at javax.mail.Transport.send0(Transport.java:168)
at at javax.mail.Transport.send(Transport.java:98)
at at ch.qos.logback.core.net.SMTPAppenderBase.sendBuffer(SMTPAppenderBase.java:343)
at at ch.qos.logback.core.net.SMTPAppenderBase.append(SMTPAppenderBase.java:180)
This confirms the problem reported in this bug.
[1]
https://github.com/markwoon/logback/commit/12a64f95ac0f1ba21
if (isSTARTTLS()) {
- props.setProperty("mail.smtp.auth", "true");
props.put("mail.smtp.starttls.enable", "true");
}
Tests on pixie (postfix) show that for authentication disabled server, setting the aforementioned property results in
|-ERROR in ch.qos.logback.classic.net.SMTPAppender[EMAIL] - Error occurred while sending e-mail notification. javax.mail.AuthenticationFailedException
at javax.mail.AuthenticationFailedException
at at javax.mail.Service.connect(Service.java:306)
at at javax.mail.Service.connect(Service.java:156)
at at javax.mail.Service.connect(Service.java:105)
at at javax.mail.Transport.send0(Transport.java:168)
at at javax.mail.Transport.send(Transport.java:98)
at at ch.qos.logback.core.net.SMTPAppenderBase.sendBuffer(SMTPAppenderBase.java:343)
at at ch.qos.logback.core.net.SMTPAppenderBase.append(SMTPAppenderBase.java:180)
This confirms the problem reported in this bug.
[1] https://github.com/markwoon/logback/commit/12a64f95ac0f1ba21