mfcmapi using Exchange 2016?

Oct 29, 2015 at 10:54 AM
Hello,

I read that Exchange 2016 does not support CDO-MAPI. But if I am using an Outlook-2013-MAPI-profile, will this still work with mfcmapi?

A first connection test is successful, but if I want to open other mailboxes via GAL, I get
Error: 
Code: MAPI_E_CALL_FAILED == 0x80004005
Function OpenOtherUsersMailboxFromGal( lpMAPISession, lpAddrBook, &lpMailboxMDB)
File MainDlg.cpp
Line 727
ExtendedRights "Receive-As" were set (it worked on Exchange 2013).

Now I am not sure if this is still a misconfiguration or If Exchange 2016 does not support this feature.

Greetings from George2015
Oct 29, 2015 at 12:02 PM
Edited Oct 29, 2015 at 12:14 PM
Hi George,

Is MAPI over HTTP enabled in the Exchange Organisation? In that case it is currently not possible to open other user's mailboxes, This seems to be a known issue for the Outlook 2013 MAPI. Try Outlook 2016 MAPI, this worked for me (without using MFC MAPI, just in code). With MFC MAPI I currently get the error message

Error:
Code: MAPI_E_NOT_FOUND == 0x8004010F
Function HrGetOneProp(pGlobalProfSect, PR_PROFILE_HOME_SERVER, &lpServerName)
File MAPIStoreFunctions.cpp
Line 340

You could also disable MAPI over HTTP and use RPC over HTTP again for the MAPI implementation, see e.g https://technet.microsoft.com/en-us/library/dn635177(v=exchg.150).aspx.

The outlook connections status (RPC/HTTP, HTTP, RPC/TCP) can also be shown, see e.g. here
https://technet.microsoft.com/en-us/library/bb123650(v=exchg.65).aspx

-- Niels
Oct 29, 2015 at 3:46 PM
Hi Niels,

the protocol Outlook used on my system was "HTTP". After
Set-OrganizationConfig -MapiHttpEnabled $false
and waiting for a while I started mfcmapi and I was able to open other mailboxes via GAL. :-) Running Outlook 2016 was not the solution for me, I removed it and re-installed Outlook 2013 SP1. It now uses RPC/HTTP.

Thanks for your help!

Greetings,
George