Documentation for JIRA 4.2. Documentation for other versions of JIRA is available too.
This page describes how to use Gmail for both SMTP and POP3 mail.
Follow the instructions from Configuring JIRA to Send SMTP Mail:
s_client -connect smtp.gmail.com:465
openssl s_client -connect smtp.gmail.com:465
bin
directory. Import the cert into your keystore:
"A keystore is created whenever you use a -genkey, -import, or -identitydb command to add data to a keystore that doesn't yet exist. More specifically, if you specify, in the -keystore option, a keystore that doesn't yet exist, that keystore will be created. If you don't specify a -keystore option, the default keystore is a file named .keystore in your home directory. If that file does not yet exist, it will be created."
From Sun´s Documentation on Keytool
keytool -import -alias smtp.gmail.com -keystore $JAVA_HOME/jre/lib/security/cacerts -file C:\path\to\gmail.cert
sudo keytool -import -alias smtp.gmail.com -keystore $JAVA_HOME/jre/lib/security/cacerts -file /path/to/gmail.cert
The default keystore password is 'changeit'.
mv <JIRA-INSTALL>/WEB-INF/lib/activation-1.1.1.jar lib/; mv <JIRA-INSTALL>/WEB-INF/lib/mail-1.4.1.jar lib/
<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="myusername@gmail.com" password="mypassword" mail.smtp.starttls.enable="true" mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory" />
java:comp/env/mail/GmailSmtpServer
To use Gmail, for example, as a create and comment mail handler: