Configuring Gmail SMTP in Jira, error connecting?

Hey guys,

I'm trying forever now to configure the E-Mail from within Jira, trying to have it sending through a G-Mail account though every time I send a test E-Mail I receive an error:

Could not connect to SMTP host: smtp.gmail.com, port: 465;

Now, I know the SMTP for GMail is two IP addresses which are:

173.194.70.108

173.194.70.109

And the port is obviously 465

I've opened 465 for outgoing and incoming for both IP's and I tested it on Telnet from within the server I have Jira installed on and it seems to connect fine.

What am I missing here?

Thanks a lot !!

1 answer

0 vote
Thomas Schlegel Community Champion Jun 03, 2012

Hi Adar,

have a look at this page: https://confluence.atlassian.com/display/JIRA/Using+Gmail+as+a+JIRA+Mail+Server

Maybe it will help you

Best regards

Thomas

Hey,

I've looked into the page but it seems to be outdated or perhaps I simply don't understand it well enough.

The page asks me to move 'Activation.jar' and 'Mail.jar' from one location to another which I have, then it asks me to edit the 'server.xml' file and edit the fields as written in the doc though most of these fields don't exist in the xml file, also, those fields do exist in the Jira EMail configuration UI from within Jira so why would I need to edit them in two different locations?

Then what is written is that I should specify the JNDI Location which is

java:comp/env/mail/GmailSmtpServer

although in Jira I also have a location for that in the settings but it says below it that it has already been set up in JIRA's application server.

What should I be doing?

Thanks a lot :)

Well it is Jira 5.0.3 though I don't see how those docs relate to what I have according to my previous comment.. :(

Thanks

Thomas Schlegel Community Champion Jun 03, 2012

I don't think that the page is outdated. It is from the latest Jira release. Which Version have you installed ? If it is a 4.4, have a look at the version specific page: https://confluence.atlassian.com/display/JIRA044/Using+Gmail+as+a+JIRA+Mail+Server

I don't have a gmail server configured with Jira, so unfortunately I cannot tell you, if the content of these pages is wrong. Maybe someone else here can help you ?

Hi Adar, I spent some time fiddling with my Bamboo 4 install to get it to work with gmail, but in the end it turned out to be pretty easy - but the docs were way out of date (they were related to Bamboo 3, not 4)...

In the end it took no configuration at all, just specifying the details, and apparently this worked for some others according to the comments on https://confluence.atlassian.com/display/JIRA/Using+Gmail+as+a+JIRA+Mail+Server... so maybe you've hit the same kind of doco problem that I had.

HTH!

Jason Wandel [SolveIT Software]

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Posted 14 hours ago in Jira

We want to know what Jira Service Desk apps you're using!

Hi Community! My name is Amir and I’m on the Jira Service Desk product marketing team at Atlassian. Our team would love to understand how you’re leveraging our ecosystem for Jira Service Desk. Wha...

38 views 0 5
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you