jira 设置使用google email账户来发送邮件
主要参考资料:
官方的: http://www.atlassian.com/software/jira/docs/v3.13/smtpconfig.html
资料不详细。
非官方的: http://www.customware.net/repository/pages/viewpage.action?pageId=36470958
这个资料很好,有使用openSSL来创建keystore的全过程。
1,openssl s_client -connect smtp.gmail.com:465 > ~/.gmail.pem ^C
2, 修改这个文件:只留下CERTIFICATE的部分,包含BEGIN和END行;
3,建立keystore:
$JAVA_HOME/bin/keytool -genkey -keyalg RSA -keystore ~/keystore
输入的密码必须是:changeit
4,$JAVA_HOME/bin/keytool -import -alias smtp.gmail.com -keystore ~/keystore -file ~/.gmail.pem
5, 按照官方文档修改server.xml
6, 重启,确认catalina.log里面没有错误。如果是tomcat 5.5.20(好多版本的jira-standalone用的是这个tomcat),缺一个patch文件,要去下。反正遇到错误,把错误信息copy出来加上 jira四个字google一下就能找到这个patch文件。
7,在jira配置中,配置JNDI Location是 : java:comp/env/mail/GmailSmtpServer
8, 发测试邮件吧。
Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically each day to your feed reader.

No comments yet.
Leave a comment
Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>