How to connect to an Office 365 shared/delegate mailbox via IMAP

Connecting to a delegate accounts via MAPI is a supported feature in Aid4Mail and is well documented in the Aid4Mail help file.


Now connecting to a shared/delegate account via O365 via IMAP  is not officially supported by Aid4Mail but we and other clients of ours have had success using the below syntax. 

As of October 1st, 2022, basic authentication (username and password) does not work when trying to connect to Microsoft accounts. Moving forward, you need to create an App Specific password for Aid4Mail when connecting to an account via IMAP>

Once you create an app password, use the app password in the “password” field in Aid4Mail.

Also please refer to the following articles for more assistance:


In Aid4Mail you can try using the following format for your username (after selecting “IMAP” as your “Mail Source” and selecting “Office 365” as the “Imap Settings”): 


It can also be that you need to add the domain for the SharedMailboxAlias like this: 


You will enter the password of the main user or admin (not the shared\delegate account). 

Here is how it looks in Aid4Mail 5:

If you experience any issues, please don’t hesitate to contact us.

If you would like to buy an Aid4Mail license, please visit the Aid4Mail website.

About Fookes Software

Fookes Software Ltd
La Petite Fin 27
1637 Charmey (en Gruyère)

For over 25 years we have been developing award-winning tools and productivity software. We also have more than 20 years of expertise in the field of email processing and analysis.

Our clients include Fortune 500 companies, government agencies, law firms, universities, and professionals specializing in e-discovery and forensics from around the world.

Your outdated browser! You can download Edge or Chrome or Firefox