How to configure a JSM Mail Handler with a shared mailbox using Basic Auth and what are the most common issues?

Platform Notice: Data Center Only - This article only applies to Atlassian apps on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

Configuring a Jira Service Management (JSM) Mail Handler with a shared mailbox using Basic Authentication can be tricky. This article explains how to configure a shared mailbox with Microsoft Office 365 and describes the most common configuration issues.

Environment

This article applies to Jira Service Management on the Data Center platform. The solution was tested in Jira Service Management Server/Data Center 4.13.x and should apply to higher versions.

Solution

Let's assume that:

  • You have a shared mailbox with the email address testsharedmailbox@test.com

  • One of the users who has access to the inbox folder of this shared mailbox is userwithmailboxaccess@test.com

In Project Settings > Email Requests > Other, enter the following settings and select Update:

  • email address: testsharedmailbox@test.com

  • username: userwithmailboxaccess@test.com\testsharedmailbox

  • password: password of the username who has access to the mailbox

  • email protocol: SECURE POP

  • mail server: outlook.office365.com

  • port number: 995

  • timeout: 50000 (default value)

  • request type: request type of your choice

⚠️ Important: IMAP cannot be used with a Mail Handler configured with Basic Authentication. To use Basic Authentication with a shared mailbox, select the SECURE POP protocol.

Known Issues

Issue 1: The configuration of the Mail Handler was successful, but no email was read from the shared mailbox

If the configuration was successful but no email is read from the shared mailbox, check that:

  • The emails are in the shared mailbox's Inbox folder.

  • The emails were sent after the Mail Handler was configured.

  • The emails are marked as UNREAD.

  • The user has access to the shared mailbox's Inbox folder.

  • The username in Project Settings > Email Requests ends with \testsharedmailbox.

Issue 2: The configuration of the Mail Handler keeps being overwritten in the UI

If switching between the Outlook and Other tabs in Project Settings > Email Requests overwrites the username with the email-address value, this is a UI bug. The actual Mail Handler configuration is stored in the database and is not affected.

JSDSERVER-8497 - The Service Management Mail Handler automatically overwrites the username field with the value from the email address field (UI bug)

Issue 3: The configuration of the Mail Handler was not successful, and the error "IMAP fails with A3 BAD User is authenticated but not connected error" is thrown

If the error IMAP fails with A3 BAD User is authenticated but not connected error appears, the configuration is using IMAP with Basic Authentication. That combination is not supported for a shared mailbox.

Use one of these supported options:

  • Keep Basic Authentication and use the POP protocol instead of IMAP.

  • Change the authentication method to Oauth 2.0. OAuth 2.0 was introduced in Jira Service Management 4.10.0 and supports the combination of a shared mailbox and IMAP.

Updated on August 25, 2026

Still need help?

The Atlassian Community is here for you.