You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Shao Feng Shi (Jira)" <ji...@apache.org> on 2020/08/22 01:49:00 UTC

[jira] [Commented] (KYLIN-4515) could not send mail on ssl port

    [ https://issues.apache.org/jira/browse/KYLIN-4515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17182212#comment-17182212 ] 

Shao Feng Shi commented on KYLIN-4515:
--------------------------------------

In Email.java, I see:

 
{code:java}
// code placeholder
if (this.isSSLOnConnect()) {
    properties.setProperty("mail.smtp.port", this.sslSmtpPort);
    properties.setProperty("mail.smtp.socketFactory.port", this.sslSmtpPort);
    properties.setProperty("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
    properties.setProperty("mail.smtp.socketFactory.fallback", "false");
}
{code}
So I think you're correct, we need to set SSLOnConnect as well.

> could not send mail on ssl port
> -------------------------------
>
>                 Key: KYLIN-4515
>                 URL: https://issues.apache.org/jira/browse/KYLIN-4515
>             Project: Kylin
>          Issue Type: Bug
>          Components: Job Engine
>    Affects Versions: v3.0.1
>            Reporter: CHEN Qing
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: v3.0.1
>
>
> Here is context of this problem:[https://www.mail-archive.com/user@kylin.apache.org/msg04009.html]
> When I set {{starttlsEnabled}} to true, and specify a ssl port as 465, the email could not be sent by this ssl port. It still use 25 default port.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)