confluence邮件服务器配置方法

邮件服务器配置

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所在服务器,否则修改无效,邮件发送不成功)


  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值