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:[email protected]] 发送时间: 2019年8月8日 4:56 收件人: user <[email protected]> 主题: 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: [email protected]<mailto:[email protected]> Apache Kylin FAQ: https://kylin.apache.org/docs/gettingstarted/faq.html Join Kylin user mail group: [email protected]<mailto:[email protected]> Join Kylin dev mail group: [email protected]<mailto:[email protected]> Khalil Mejdi <[email protected]<mailto:[email protected]>> 于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 [email protected]<mailto:[email protected]> - 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 <[email protected]<mailto:[email protected]>> 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:[email protected]] [cid:[email protected]]
