Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Trying to configure Outgoing Mail using Office365 Connection refused

Trying to configure Outgoing Mail using Office365 Connection refusedCaptura.PNG

2 answers

0 votes

Hello Hugo,

Thanks for coming to Community for your Office365 connection issues. The screenshot you included does confirm an issue with the connection, but the error that is presented is vague. We’ll need further information from the atlassian-jira.log to find out what is really behind this failure. Could you please attempt your Office365 configuration again and then review the atlassian-jira.log and let us know of any events which occurred around the same time?

We look forward to hearing back to help ensure you’re able to connect Jira to Office365.

Stephen Sifers

Hello Hugo,

Thanks for retesting and providing the logs. There is definitely an issue connecting to Office365 with the account you’ve provided. Can you please confirm you’ve logged into Office365 as the account you’re wanting to use and you’ve configured the mailboxes timezone and account settings before testing? 

Office365 does require you to set up a mailbox prior to connecting to it which may result in the errors you’re seeing.

Stephen Sifers

Hi the account is correct, with timezone configure and log in account via mailboix correctly

Hello Hugo,

Thanks for confirming the mailbox has been configured before attempting a connecting. I would like us to attempt a connection from your application server to ensure you’re able to communicate with For this, please test and report back the following:


  • Ping -n 1
  • Telnet 587


  • Ping -c1
  • Telnet 587

This will let us know if your application server is able to reach the SMTP server at Office365. If this fails or reports back an error then there may be a proxy issue or another underlying networking configuration causing this.

Stephen Sifers

I tried, ping  and telnet connection work correctly.

Hello Hugo,

Thanks for verifying that you're able to see and telnet to the SMTP server. I'm wondering if you've tested with SMTP instead of SECURE_SMTP to see if you're able to connect. If you've not done this, can we please give this a try?

Additionally, while not ideal for your needs, I would like to test IMAP to see if there is something else causing an issue with your mail configuration. Please attempt an IMAP configuration if the above does not resolve your issue.

Stephen Sifers

Hi Stephen I have tried all posibilities so far: SMTP , SECURE_SMTP , IMAP Configure,  tried serveral accounts that we can daily log in in the mail box.

The telnet connection to office 365 is established ok 


Can we the test same configuration in the IIS of the server ?


Thanks for all.

Like Stephen Sifers likes this

Hello Hugo,

Thanks for testing other configuration within Jira to attempt to connect to Office365. I would ask for you to review the following article to see if Office365 has been configured to allow applications to send the email. Please see: How to set up a multifunction device or application to send email using Office 365

After reviewing and following this article, please let us know if you’re still having issues allowing Jira to send mail through Office365.

Stephen Sifers

Hi , I tried  test by my computer and by the Server and the atlassian.log result is:


2019-09-04 15:40:43,553 http-nio-8080-exec-13 ERROR hmoliner 940x97024x1 rxu8r0 /secure/admin/VerifySmtpServerConnection!update.jspa [c.a.j.p.mail.webwork.VerifyMailServer] Unable to connect to the server at due to the following exception: Connection refused: connect
2019-09-04 15:43:03,543 http-nio-8080-exec-2 ERROR hmoliner 943x97111x1 i1lyzc /secure/admin/VerifySmtpServerConnection!update.jspa [c.a.j.p.mail.webwork.VerifyMailServer] Unable to connect to the server at due to the following exception: Connection refused: connect

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Software

How to create Jira issus from Excel file?

When to use CSV importer When managing your processes in Jira, there are many occasions where you need to create a lot of tasks. Creating them one by one will cost you a lot of time and effort and i...

4,348 views 22 31
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you