xuxueli / xxl-job

A distributed task scheduling framework.(分布式任务调度平台XXL-JOB)
http://www.xuxueli.com/xxl-job/
GNU General Public License v3.0
27.45k stars 10.86k forks source link

Email SslSMTPPort should support at properties file #359

Closed caryyu closed 6 years ago

caryyu commented 6 years ago

Please answer some questions before submitting your issue. Thanks!

Which version of XXL-JOB do you using?

RELEASE 1.9.1

Expected behavior

Using email alarm feature.

Actual behavior

For some reason, Our 25 port being considered is unsafe so that has been blocked, Only SSL port can be able to get through, so that email alarm feature isn't working.

Steps to reproduce the behavior

Other information

BTW, XXL-JOB is working under alicloud ECS, and Elastic IP isn't really an ethernet or hardware device in linux, which means Process or Program can only be able to automatically get Intranet IP Address or localhost hostname.

xuxueli commented 6 years ago

Thanks for the feedback!

The mail SSL authentication logic is already reserved at the bottom of the system(com.xxl.job.admin.core.util.MailUtil) and can be automatically customized.

caryyu commented 6 years ago

BTW , the following message is what ali-people said.

您好,因为目前由于国际与国内均对垃圾邮件进行严格管控,我国《互联网信息服务管理办法》、《中国互联网协会反垃圾邮件规范》均对垃圾邮件进行说明与管理规范。鉴于服务器25端口被大量垃圾邮件充斥,严重影响广大用户正常使用。为了共同维护良好的网络环境,自即日起阿里云新购服务器不再提供25端口邮件服务,建议您尝试使用465加密端口发送邮件,或与邮件发信提供商咨询是否还有其他smtp发信端口,给您带来的不便深表歉意,请您查看云平台安全规则:https://help.aliyun.com/knowledge_detail/37353.html

xuxueli commented 6 years ago

你好,相关PR已经合并至master分支,可以pull最新代码体验测试。