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

Connect to Office 365 mailbox

Hi, I wonder to know how to configure email channel for office 365 mailbox since Microsoft give that information:

Server: smtp.office365.com

Port 587 (recommended) or  port 25

TLS/start TLS Enables

I tried many way but didn't connect whatever the configuration I made

Thank you

2 answers

0 votes

Hi Patrice,

  • What kind of errors do you see in the UI or in the logs when you try to configure Office 365 in JIRA?
  • Is this a Cloud instance or Server instance?

There is an article titled A3 BAD User is authenticated but not connected error message when using JIRA with Office365 that may help.  If this is a Server instance take a look at the logs and see if you see something similar:

2014-09-12 07:40:48,051 ERROR [365 IMAP] QuartzScheduler_Worker-3 ServiceRunner    Help Desk Handler[10100]: Messaging Exception in service 'com.atlassian.jira.service.services.mail.MailFetcherService$MessageProviderImpl' when getting mail: A3 BAD User is authenticated but not connected.
javax.mail.MessagingException: A3 BAD User is authenticated but not connected.;
  nested exception is:
 com.sun.mail.iap.BadCommandException: A3 BAD User is authenticated but not connected.
 at com.sun.mail.imap.IMAPFolder.open(IMAPFolder.java:961)
 at com.atlassian.jira.service.services.mail.MailFetcherService$MessageProviderImpl.getAndProcessMail(MailFetcherService.java:254)
 at com.atlassian.jira.service.services.mail.MailFetcherService.runImpl(MailFetcherService.java:401)
 at com.atlassian.jira.service.services.file.AbstractMessageHandlingService.run(AbstractMessageHandlingService.java:257)
 at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:61)
 at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48)
 at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
 at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
Caused by: com.sun.mail.iap.BadCommandException: A3 BAD User is authenticated but not connected.

If you do see this and you're using a shared mailbox the current workaround is to use POP3 instead.  There are some comments that purport to have IMAP working fine by resetting the Shared mailbox user's password or adding java parameters.

If this is the issue you're running into take a look at both of these Suggestions and see which one works best for you.


Cheers,

Branden

You need to use a different hostname for this
e.g.: tenant.mail.protection.outlook.com (replace this with the MX endpoint for your O365 tenant, always ends with "mail.protection.outlook.com")
SMTP Port: 25
TLS: Yes

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira Service Desk

Tell us how you've implemented Change Management

Hello Community 👋, I'm a product manager at Atlassian, looking at improving change management capabilities across our products. In particular, we're looking at bridging the gap between Dev & ...

283 views 0 5
Join discussion

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