[logback-dev] [JIRA] Commented: (LBCORE-225) Do not require authentication to use TLS in SMTPAppender
Ceki Gulcu (JIRA)
noreply-jira at qos.ch
Tue Oct 11 22:16:12 CEST 2011
[ http://jira.qos.ch/browse/LBCORE-225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12201#action_12201 ]
Ceki Gulcu commented on LBCORE-225:
-----------------------------------
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
> Do not require authentication to use TLS in SMTPAppender
> --------------------------------------------------------
>
> Key: LBCORE-225
> URL: http://jira.qos.ch/browse/LBCORE-225
> Project: logback-core
> Issue Type: Bug
> Affects Versions: 0.9.30
> Reporter: Mark Woon
> Assignee: Ceki Gulcu
>
> Enabling TLS should not require authentication. Pull request submitted to remove this requirement.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the logback-dev
mailing list