MangerEngine ServiceDesk Plus用starttls认证发送邮件
先说下目前的环境:
- ServiceDeskPlus版本号是9.3构建号9317;
- 邮件服务商是office365,发件认证使用starttls。
一般支持TLS的SMTP服务器可以这样配置:
- 邮件类型:SMTPS
- 启用传输层安全:Yes
- 端口:587
但是office365使用的是starttls,这样配置是无法发送邮件的。需要有如下改动
ManageEngine\ServiceDesk\server\default\conf\wrapper.conf
中在wrapper.java.additional.27=-Dconnection.track=true
后添加wrapper.java.additional.28=-Dmail.smtp.starttls.enable=true
ServicedeskPlus Web 管理页面
邮件类型选择SMTP,如下图
改好后重启一下服务器,我尝试重启过服务,但是没有生效。
参考资料1 The issue I was having with STARTTLS was caused by me getting a secure transport:
transport = session.getTransport("smtps");
After changing it to “smtp” i was able to use STARTTLS.
参考资料2 Edit the wrapper.conf and search for the linewrapper.java.additional.18=-Duser.region=US
In the next line append the following text (Next line to the above line)wrapper.java.additional.19=-Dmail.smtp.starttls.enable=true
Now you can restart the service and check it should work.'