confluence邮件服务器配置方法

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u011391839/article/details/18705999

邮件服务器配置

1.    选择界面右上角的,然后选择【站点管理】;

2.    选择【配置】->【邮件服务器】

3.     点击【增加新的SMTP邮件服务器】或者编辑已经存在的邮件服务器;        如下图:


         

4.    输入所需要的字段


·        名称:默认为“SMTP服务器

·        发送地址Enter the email address that will bedisplayed in the 'from' field for email messages originating from this server.
This field is mandatory. You will not be able to complete the Confluence mailserver configuration until this field has been specified.

This field is mandatory. You will not be able to complete the Confluence mailserver configuration until this field has been specified.

·        发送名称: Enter the name that will be displayedin the 'from' field for email messages originating from this server. This isthe text which appears before the user's registered email address (in angledbrackets).
This field accepts the following variables, which reference specific detailsdefined in the relevant Confluence user's profile:

This field accepts the following variables, which reference specific detailsdefined in the relevant Confluence user's profile:

·        主题The default is '${fullname} (Confluence)'.

备注:由于配置【服务器主机名称】字段,测试邮件发送不起任何作用,,所以此处采用另一种方法,配置JNDI地址】。

Set up a mail session for the Confluencedistribution to use qq mail as follows

1)停止confluence服务

2)将文件activation-1.0.2.jar mail-1.4.1.jarconfluence-install>/confluence/WEB-INF/lib文件中移动(不是复制)到<confluence-install>/lib文件下

备注:. Confluence 5.2.3版本, activation-1.0.2.jar已经不存在了,不不必移动或重新下载

3<confluence-install>/conf/下的server.xml添加如下代码(注意添加在</Context>标签之前)

<Resource name="mail/QqSMTPServer"

    auth="Container"

    type="javax.mail.Session"

    mail.smtp.host="smtp.exmail.qq.com"

    mail.smtp.port="465"

    mail.smtp.auth="true"

   mail.smtp.user=" yourEmailAddress@gmail.com "

    password=" yourPassword "

    mail.smtp.starttls.enable="true"

    mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"

         />

 

 

 


  

3)启动confluence,继续配置【JNDI地址】,

JNDI 地址是:java:comp/env/mail/QqSMTPServer
注意:jndi地址必须和server.xml名称保持一致

 

(4)提交,然后测试email发送情况修改server.xml后必须要重新启动confluence所在服务器,否则修改无效,邮件发送不成功)


阅读更多
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页