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:, port: 465;

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

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 votes
Thomas Schlegel Community Champion Jun 03, 2012

Hi Adar,

have a look at this page:

Maybe it will help you

Best regards



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


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.. :(


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:

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 so maybe you've hit the same kind of doco problem that I had.


Jason Wandel [SolveIT Software]

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,282 views 5 10
Read article

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