Incoming mail with Office365 shared mailbox

Hi guys,

I’d like to set up incoming email to use Service Desk. I’m using Office365 as email client and want to use a Shared Mailbox to retrieve the mails.

Following the docs on Incoming email | GitLab I’ve enabled the settings in the config file.

According to this topic: https://social.technet.microsoft.com/Forums/en-US/336e02ee-6767-4810-90a0-1352bd7cc9e9/office-365-how-to-access-a-shared-mailbox-using-imap-client?forum=onlineservicesexchange - I’ve set-up the IMAP configuration with a shared mailbox alias:

incoming_email_adress: sharedmailbox+%{key}@example.com
incoming_email_email: usermailbox@example.com/sharedmailbox_alias

The topic I’m referring to suggests to use a backslash, but this is ignored by Gitlab, so I tried a forward slash.

After reconfiguring and restarting Gitlab, I’m getting the following error:

IMAP server credentials are correct? … Checking usermailbox@example.com/sharedmailbox_alias
no
Try fixing it:
An error occurred: Net::IMAP::NoResponseError: LOGIN failed.
Check that the information in config/gitlab.yml is correct
For more information see:
doc/administration/reply_by_email.md
Please fix the error above and rerun the checks.

Is there anyone around who was able to get this work?

Also, I’m using multi-factor authentication, but created an app password to authenticate with.