I have been asked to do some research on how to access a user's mailbox and execute some basic tasks(copy emails, create folders, delete folders/emails, move emails from one folder to another based on a certain criteria) on Exchange Server 2016/2019 without Outlook.
I have seen that the recommended method is through EWS.
But EWS or "anything" over http is not an option as it would be too slow for what we're looking for.
So what i have looked at was MAPI. But i have seen a lot of posts indicating that MAPI beacame obsolete and won't work with Exchange 2016/2019.
So my question is: Can i perform these basic tasks mentioned above with MAPI or Outlook-Redemption on Exchange Server 2016/2019 without Outlook?

- 66
- 1
- 7
1 Answers
The standalone version of MAPI went out of support a couple year ago and is no longer available for download from Microsoft. Even if it were available, it never supported MAPI-over-HTTP and OAuth2 authentication.
For EWS or Graph, your application must be registered on the server if OAuth2 authentication is to be used. Only Basic authentication (which is disabled by default for M365 mailboxes) will work out of the box without any setup on the server.
To use Redemption, you will need the MAPI system, which nowadays means Outlook must be installed. In that case, you can use an existing profile created for Outlook, nothing needs to be done on the server since Outlook is pre-authorized to connect to any Exchange mailbox as long as authorization is successful. In that case you can use either Outlook Object Model (which wraps both Extended MAPI and Outlook GUI, but can only be used on the main Outlook thread) or Redemption (which also wraps Extended MAPI, but can be used on secondary threads).

- 62,942
- 4
- 53
- 78
-
Thank you. I forgot to mention that we use Exchange On-Premise. So just to confirm: In order to be able to use Redemption in these circumstances, Outlook must definitely be installed on the Exchange server? Thanks again. – yoxhall May 25 '22 at 12:07
-
Yes, it needs to be installed on the machine where your Redemption code is running. – Dmitry Streblechenko May 25 '22 at 15:04
-
@DmitryStreblechenko which version of Outlook I have to install to work with Exchange 2016? I have a Redemtion v5. on my machine. Thanks you for your help pls. – Antoine V Nov 21 '22 at 16:29
-
Outlook 2013 SP1 or never should work. – Dmitry Streblechenko Nov 21 '22 at 16:35