Accessing Office 365 shared mailboxes via IMAP

Our fellow customer and Office 365 user Bob Sledge kindly shared with the community his findings on which settings must be used in order to access Office 365 accounts via IMAP (and therefore with MailBee.NET), including shared mailboxes.

Server hostname: outlook.office365.com
Port: 993 (for encrypted IMAP)
Authentication: AuthenticationMethods.Auto or AuthenticationMethods.Regular
IMAP4 UserName: Email address of the Office 365 mailbox, e.g. bob@mydomain.com
IMAP4 Password: Domain password for the user assigned to that mailbox

Office 365 has the concept of a normal mailbox, and a “shared” mailbox. The above works for a normal mailbox. If you want to fetch mail from a “shared” mailbox, this is the trick to make it work.

You have to use the credentials of a user who has been assigned to a normal mailbox and has been delegated access to the shared mailbox. Let’s say the normal mailbox address is bob@mydomain.com. And let’s assume that the shared mailbox is SharedMailbox@mydomain.com. In order to fetch mail from this shared mailbox, you use these credentials (and bob@mydomain.com must have been delegated access to SharedMailbox@mydomain.com):

IMAP4 UserName: bob@mydomain.com\SharedMailbox
IMAP4 Password: Domain password for the user assigned to bob@mydomain.com

Accessing Office 365 shared mailboxes via IMAP

3 thoughts on “Accessing Office 365 shared mailboxes via IMAP

  1. Bryon Baker says:

    Mail Bee
    I can not get this setup to work Is it possible for you to help me do some trouble shooting?

    Thanks in advance

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s