<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>ServiceDeskPlus on HiDa</title><link>https://www.0niu.cn/tags/servicedeskplus/</link><description>Recent content in ServiceDeskPlus on HiDa</description><generator>Hugo -- gohugo.io</generator><language>zh</language><lastBuildDate>Fri, 01 Dec 2017 15:18:08 +0800</lastBuildDate><atom:link href="https://www.0niu.cn/tags/servicedeskplus/index.xml" rel="self" type="application/rss+xml"/><item><title>MangerEngine ServiceDesk Plus用starttls认证发送邮件</title><link>https://www.0niu.cn/posts/mangerengine-servicedesk-plus-not-able-with-starttls/</link><pubDate>Fri, 01 Dec 2017 15:18:08 +0800</pubDate><guid>https://www.0niu.cn/posts/mangerengine-servicedesk-plus-not-able-with-starttls/</guid><description>&lt;p>先说下目前的环境：&lt;/p>
&lt;ul>
&lt;li>ServiceDeskPlus版本号是9.3构建号9317；&lt;/li>
&lt;li>邮件服务商是office365，发件认证使用starttls。&lt;/li>
&lt;/ul>
&lt;p>一般支持TLS的SMTP服务器可以这样配置：&lt;/p>
&lt;ul>
&lt;li>邮件类型:SMTPS&lt;/li>
&lt;li>启用传输层安全:Yes&lt;/li>
&lt;li>端口:587&lt;/li>
&lt;/ul></description><content>&lt;p>先说下目前的环境：&lt;/p>
&lt;ul>
&lt;li>ServiceDeskPlus版本号是9.3构建号9317；&lt;/li>
&lt;li>邮件服务商是office365，发件认证使用starttls。&lt;/li>
&lt;/ul>
&lt;p>一般支持TLS的SMTP服务器可以这样配置：&lt;/p>
&lt;ul>
&lt;li>邮件类型:SMTPS&lt;/li>
&lt;li>启用传输层安全:Yes&lt;/li>
&lt;li>端口:587&lt;/li>
&lt;/ul>
&lt;p>但是office365使用的是starttls,这样配置是无法发送邮件的。需要有如下改动
&lt;code>ManageEngine\ServiceDesk\server\default\conf\wrapper.conf&lt;/code>中在&lt;code>wrapper.java.additional.27=-Dconnection.track=true&lt;/code>后添加&lt;code>wrapper.java.additional.28=-Dmail.smtp.starttls.enable=true&lt;/code> ServicedeskPlus Web 管理页面
邮件类型选择SMTP，如下图&lt;br>
&lt;img loading='lazy' src="https://cdn.hida.in/images/a/servicedesk-smtp-config.PNG" alt="SMTP配置界面" />
&lt;br>
改好后重启一下服务器，我尝试重启过服务，但是没有生效。&lt;/p>
&lt;blockquote>
&lt;p>&lt;a href="https://stackoverflow.com/questions/15619349/how-do-i-properly-setup-javamail-to-use-starttls">参考资料1&lt;/a> The issue I was having with STARTTLS was caused by me getting a secure transport: &lt;code>transport = session.getTransport(&amp;quot;smtps&amp;quot;);&lt;/code> After changing it to &amp;ldquo;smtp&amp;rdquo; i was able to use STARTTLS.&lt;br>
&lt;a href="https://pitstop.manageengine.com/portal/community/topic/sending-smtp-problems">参考资料2&lt;/a> Edit the wrapper.conf and search for the line &lt;code>wrapper.java.additional.18=-Duser.region=US&lt;/code> In the next line append the following text (Next line to the above line) &lt;code>wrapper.java.additional.19=-Dmail.smtp.starttls.enable=true&lt;/code> Now you can restart the service and check it should work.'&lt;/p>
&lt;/blockquote></content></item></channel></rss>