软件:atlassian-jira-software-8.5.4-x64.bin
PJ插件:https://gitee.com/pengzhile/atlassian-agent
配置文件:/data/atlassian/jira/conf/server.xml (在“</Context>”标签前添加)
<Resource name="mail/MDSMTPServer"
auth="Container"
type="javax.mail.Session"
mail.smtp.host="smtphz.qiye.163.com"
mail.smtp.port="994"
mail.smtp.auth="true"
mail.smtp.user="admin@abc.com"
password="xxx"
mail.smtp.starttls.enable="true"
mail.transport.protocol="smtps"
mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"/>
发邮件测试异常:
IllegalArgumentException: Mail server at location [java:comp/env/mail/MDSMTPServer] is not of required type javax.mail.Session.
解决办法:
移动/data/atlassian/jira/atlassian-jira/WEB-INF/lib目录下三个文件移动到/data/atlassian/jira/lib目录,重启服务。
javax.activation-1.2.0.jar
javax.mail-1.6.0.jar
javax.mail-api-1.6.0.jar