This page describes how to use Gmail for both SMTP and POP3 mail.
Configuring GMail for Outgoing Mail (SMTP)
Follow the instructions from Configuring JIRA to Send SMTP Mail:
- Download OpenSSL:
Import the SSL certificate from Gmail:
For Windows: double-click the openssl file from the directory that gets installed. Run
For Linux: run:
- From the output, you want only the alphanumeric string between the lines which say 'BEGIN CERTIFICATE' and 'END CERTIFICATE' (inclusive). Copy the results into a file called gmail.cert using your favorite text editor.
Exit the openssl prompt, and return to your Java installation's
bindirectory. Import the cert into your keystore:
Move( not copy! ) the activation and mail jar files from the /WEB-INF/lib folder to the /common/lib (Tomcat 5.5) or /lib (Tomcat 6) folder. For example:
Add Gmail as a JNDI Resource in /conf/server.xml in-between JIRA's <Context>...</Context> ( after line 49 ). Change your username and password:
Restart JIRA so that the above changes are picked up by JIRA. Then, configure the SMTP server in JIRA's interface, use the JNDI setting. The proper value (if using the default example), is:
Configuring GMail for Incoming Mail (POP)
To use Gmail, for example, as a create and comment mail handler:
- If you did not import the SSL certificate from Gmail for the SMTP server, refer to the instructions above.
- Enable POP access in GMail's settings
- Add a POP3 mail account