How to enable or disable MAPI over HTTP in your Exchange 2016 organization.

Source : https://technet.microsoft.com/en-us/library/mt634322(v=exchg.160).aspx Summary:

In Exchange 2016, MAPI over HTTP can be set at the organization level or at the individual mailbox level. Mailbox-level settings always take precedence over organization-wide settings.

MAPI over HTTP is enabled by default in new Exchange 2016 topologies

Note:
When MAPI over HTTP is enabled at the organization level, the MapiHttpEnabled parameter of the Get-OrganizationalConfig cmdlet is set to True .
Configure MAPI over HTTP Make sure you have already configured the prerequisites described inMAPI over HTTP in Exchange 2016.aspx). Virtual directory configuration
POWERSHELL
Set-MapiVirtualDirectory -Identity "Contoso\mapi (Default Web Site)" -InternalUrl https://Contoso.com/mapi -IISAuthenticationMethods Negotiate

Certificate configuration [](https://www.blogger.com/null)The digital certificate used by your Exchange environment must include the same InternalURL and ExternalURL values that are defined on the MAPI virtual directory. [](https://www.blogger.com/null)Update server rules Verify that your load balancers, reverse proxies, and firewalls are configured to allow access to the MAPI over HTTP virtual directory. Enable MAPI over HTTP in your Exchange organization [](https://www.blogger.com/null)After running the commands below, Outlook clients with MAPI over HTTP enabled will see a message to restart Outlook to use MAPI over HTTP.

POWERSHELL
Set-OrganizationConfig -MapiHttpEnabled $true
POWERSHELL

POWERSHELL
Enable MAPI over HTTP for an individual mailbox
POWERSHELL
Set-CasMailbox <user or mailbox ID> -MapiHttpEnabled $true
POWERSHELL
Test MAPI over HTTP connections
POWERSHELL
The following example tests the MAPI over HTTP connection from the Exchange server named ContosoMail.

Test-OutlookConnectivity -RunFromServerId ContosoMail -ProbeIdentity OutlookMapiHttpSelfTestProbe
POWERSHELL
A successful test returns output that's similar to the following example:
POWERSHELL
MonitorIdentity StartTime EndTime Result Error Exception
--------------- --------- ------- ------ ----- ---------
OutlookMapiHttp.Protocol\OutlookMapiHttpSelfTestProbe 2/14/2016 7:15:00 AM 2/14/2016 7:15:10 AM Succeeded