You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@kylin.apache.org by 高扬02 <ga...@bianfeng.com> on 2019/08/08 06:29:29 UTC

答复: error with send mail

Hi Shaofeng and Khalil Mejdi,
Thank you for your reply.
I have changed the configuration of kylin.properties, checked the SMTP Settings, reloaded kylin config, and restarted kylin.sh ,but nothing worked.
Then I tried Shaofeng's suggestion and it worked.
Thank you all for your kind help and advice.

Best regards,
YangGao

发件人: ShaoFeng Shi [mailto:shaofengshi@apache.org]
发送时间: 2019年8月8日 4:56
收件人: user <us...@kylin.apache.org>
主题: Re: error with send mail

You can check the source code in MailService.java as below:

Email email = new HtmlEmail();
email.setHostName(host);
email.setStartTLSEnabled(starttlsEnabled);
if (starttlsEnabled) {
    email.setSslSmtpPort(port);
} else {
    email.setSmtpPort(Integer.parseInt(port));
}



If "kylin.job.notification-mail-enable-starttls" set to true, it will set the SSL SMTP Port to the value of "kylin.job.notification-mail-port", not setting the SMTP port. I'm not sure how that was written. In your case, you can true to set the "startttls" to false and then try again. Or you can modify the code to update all these two ports when StartTLS enabled.


Best regards,

Shaofeng Shi 史少锋
Apache Kylin PMC
Email: shaofengshi@apache.org<ma...@apache.org>

Apache Kylin FAQ: https://kylin.apache.org/docs/gettingstarted/faq.html
Join Kylin user mail group: user-subscribe@kylin.apache.org<ma...@kylin.apache.org>
Join Kylin dev mail group: dev-subscribe@kylin.apache.org<ma...@kylin.apache.org>




Khalil Mejdi <kh...@gmail.com>> 于2019年8月7日周三 上午3:17写道:
Hello again,

I am not sure if you saw my previous reply but that's okay, I think you need to restart kylin or reload config from the System section,
or you need to check if you have the privilege to use that smtp, cause some smtp needs to be activated to be able to use them freely.
else check the smtp provider settings...

(as for your question you should change kylin.properties settings)
Best Regards


Khalil Mejdi

Middle Developer



[图像已被发件人删除。 Logo]<https://www.smart-etech.tn/>

P: +216 27 782 201


khalilmejdi@istic.u-carthage.tn<ma...@istic.u-carthage.tn> - www.smart-etech.tn<http://www.smart-etech.tn/>

Technopark Borj Cedria

[图像已被发件人删除。 Facebook icon]<https://www.facebook.com/eTechSmart/>  [图像已被发件人删除。 LinkedIn icon] <https://www.linkedin.com/company/smart-etech>






On Wed, Aug 7, 2019 at 10:46 AM 高扬02 <ga...@bianfeng.com>> wrote:
Hello,

I have set the mail-port , but it is still 25 . Please tell me where to modify it.
Thank you very much.

Best regards,
YangGao

[cid:image001.png@01D54D47.EBD9BD70]

[cid:image002.png@01D54D47.EBD9BD70]