이 페이지는 JNDI를 이용해 메일 전송 서버 설정 방법을 정리한다.
Move (don't copy) javax.mail-X.X.X.jar, javax.
and mail-api-X.X.X.jar
activation-X.X.jar
exist only in the <JIRA_Install>/lib
directory. from <Jira-install>\atlassian-jira\WEB-INF\lib
to <jira-install>\lib
(x.x.x. represents the version numbers on the jar files in your installation).
Don't leave a renamed backup of the jar files in \atlassian-jira\WEB-INF\lib
. Even with a different file name, the files will still be loaded as long as it remains in the directory.
... <Engine name="Standalone" defaultHost="localhost" debug="0"> <Valve className="org.apache.catalina.valves.StuckThreadDetectionValve" threshold="60"/> ... |
Edit the <jira-install>\conf\server.xml
file and add the following at the end of the Jira <context> tag, just before </Context>
.
<Resource name="mail/GmailSMTPServer"
auth="Container"
type="javax.mail.Session"
mail.smtp.host="smtp.gmail.com"
mail.smtp.port="465"
mail.smtp.auth="true"
mail.smtp.user="yourEmailAddress@gmail.com"
password="yourPassword"
mail.smtp.starttls.enable="true"
mail.transport.protocol="smtps"
mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"
/>
Go to > System> Mail > Outgoing Mail.
Edit the server settings as necessary, and set the JNDI Location as:
java:comp/env/mail/GmailSMTPServer
Note that the JNDI Location is case sensitive and must match the resource name specified in server.xml.