Configure BEMS to communicate with the Microsoft Exchange
Server, Microsoft Exchange
Online, or hybrid environment
BEMS
to communicate with the Microsoft Exchange
Server
, Microsoft Exchange
Online
, or hybrid environmentIf your
BEMS
environment uses Microsoft Graph
to communicate with Microsoft Exchange
Online
, see Configure BEMS to communicate with a Microsoft Exchange Online environment using Microsoft Graph API. You must allow BEMS
to authenticate to Microsoft Exchange
Server
or Microsoft Exchange
Online
to access users’ mailboxes and send notifications to users’ devices when new email is received on the device. A hybrid modern authentication environment (for example, both on-premises Microsoft Exchange
Server
and Microsoft Exchange
Online
), allows the on-premises Microsoft Exchange
Server
to use a more secure user authentication and authorization by consuming OAuth access tokens obtained from the cloud. For more information, see the Microsoft
resource How to configure Exchange Server on-premises to use Hybrid Modern Authentication.
For information on configuring email notifications for
BlackBerry Work
using BEMS
Cloud, see the BlackBerry Work
administration content. Verify that you have the following information and completed the appropriate tasks.
- In an on-premisesMicrosoft Exchange Serverenvironment: Verify that the service account has impersonation rights on theMicrosoft Exchange Server.
- In aMicrosoft Exchange Onlineenvironment, verify that you have enabled Modern Authentication using a Client Certificate.BEMSkeystore. For instructions, see Import the trusted mutual TLS certificates into the BEMS keystore. This feature requires that you enable modern authentication using a Credential or Client Certificate.
- In a hybrid environment, if you enable Modern Authentication, make sure that the on-premisesMicrosoft Exchange Serveris configured to use hybrid modern authentication. For more information, see theMicrosoftresource How to configure Exchange Server on-premises to use Hybrid Modern Authentication. If theMicrosoft Exchange Serveris not configured appropriately, users won't receive email notifications.
- In theBlackBerry Enterprise Mobility Server Dashboard, underBlackBerry Services Configuration, clickMail.
- ClickMicrosoft Exchange.
- In theSelect Authentication typesection, select an authentication type based on your environment and complete the associated tasks to allowBEMSto communicate with theMicrosoft Exchange ServerorMicrosoft Exchange Online:The Passive authentication type has been deprecated due toMicrosoft's deprecation of the Application Impersonation permission inMicrosoft Exchange Onlineenvironments. To avoid email notifications for users in the environment, you must configureBEMSto use certificate-based authentication for modern authentication, orMicrosoft Graphto communicate to user's mailboxes. The passive authentication type will be removed in a future release. For more information, see BEMS: Customers using Office 365 and EWS with Credential or Passive Authentication will stop receiving notifications.Authentication typeEnvironmentDescriptionTaskIntegratedOn-premisesMicrosoft Exchange ServerThis option uses the Windows authentication credentialsGood Technology Common Servicesservice to authenticate to theMicrosoft Exchange Serverusing Basic Authentication.No additional actions are required.CredentialOn-premisesMicrosoft Exchange ServerThis option uses a definedBEMSusername and password to authenticate to theMicrosoft Exchange Serverusing Basic Authentication.
- In theUsernamefield, enter the username of theBEMSservice account. Use the format <domain>/<username>.
- In thePasswordfield, enter the password for the service account.
Client Certificate- On-premisesMicrosoft Exchange Server
- Microsoft Exchange Online
- In a hybrid environment, on-premisesMicrosoft Exchange Servermust be configured to use hybrid modern authentication. For more information, see theMicrosoftresource How to configure Exchange Server on-premises to use Hybrid Modern Authentication.
This option uses a client certificate to allow theBEMSservice account to authenticate to theMicrosoft Exchange ServerorMicrosoft Exchange Online.- For theUpload PFXfile, clickChoose Fileand select the client certificate file. For instructions on obtaining the .PFX file, see Associate a certificate with the Entra app ID for BEMS.
- In theEnter PFX file Passwordfield, enter the password for the client certificate.
- In aMicrosoft Exchange Onlineenvironment that uses Client certificate authentication, enable Modern Authentication and use mutual TLS authentication. When you configure Modern Authentication, all nodes use the specified configuration. Note that the "use Credentials if Modern authentication fails" option has been deprecated due toMicrosoft's deprecation of the Application Impersonation permission for users' mailboxes that are onMicrosoft Exchange Online, enabled for modern authentication, and configured to use credential or passive authentication methods. The option will be removed in a future release. For more information, see BEMS: Customers using Office 365 and EWS with Credential or Passive Authentication will stop receiving notifications. Complete the following steps:
- Select theEnable Modern Authenticationcheckbox.
- In theAuthentication Authorityfield, enter the Authentication Server URL that BEMS accesses and retrieve the OAuth token for authentication withMicrosoft Exchange Online(for example, https://login.microsoftonline.com/<tenantname> or https://login.microsoftonline.com/<tenantid>). By default, the field is prepopulated with https:// login.microsoftonline.com/common.
- In theClient Application IDfield, enter the Entra app ID. For instructions, see Obtain an Entra app ID for BEMS with certificate-based authentication.
- In theServer Namefield, enter the FQDN of theMicrosoft Exchange Online. By default, the field is prepopulated with https://outlook.office365.com.
- Optionally, select theUse Mutual TLS Authenticationcheck box to allowBEMSto respond to mutual TLS authentication requests. This step requires that the mutual TLS certificate is imported intoBEMS. For instructions, see Import the trusted mutual TLS certificates into the BEMS keystore.
- Under theAutodiscover and Exchange Optionssection, complete one of the following actions:TaskStepsOverride Autodiscover URLIf you select to override the autodiscover process,BEMSuses the override URL to obtain user information from theMicrosoft Exchange ServerorMicrosoft Exchange Online. For more information about best practices when enabling autodiscover, see Best practice: Enabling autodiscovery.
- Select theOverride Autodiscover URLcheckbox.
- In theAutodiscover URLfield, type the autodiscover endpoint (for example, https:// autodiscover<domain>.com/autodiscover/autodiscover.svc).
Autodiscover andMicrosoft Exchange Serveroptions- Select theSwap ordering of <check box to assist in resolving the autodiscover URL. Consider selecting this option if the order results in timeouts or other failures.domain.com>/autodiscover and autodiscover. <domain.com>/autodiscover
- Optionally, modify theTCP Connect timeout for Autodiscover url (milliseconds)field as required to prevent failures when autodiscovery takes too long. By default, the timeout is set to 120000. The recommended timeout for the Autodiscover url is between 5000 milliseconds (5 seconds) and 120000 milliseconds (120 seconds).
- By default, theEnable SCP record lookupcheckbox is selected. If you clear the checkbox,BEMSdoes not perform aMicrosoft Active Directorylookup of Autodiscover URLs. This option is not available when Override Autodiscover URL is selected.
- Optionally, select theUse SSL connection when doing SCP lookupcheck box to allowBEMSto communicate with the Microsoft Active Directory using SSL. If you enable this feature, you must import theMicrosoft Active Directorycertificate to each computer that hosts an instance ofBEMS. This option is not available when Override Autodiscover URL is selected.
- By default, theEnforce SSL Certificate validation when communicating with Microsoft Exchange and LDAP servercheck box is selected. If you clear this setting and use an un-trusted certificate, then the connection to the on-premisesMicrosoft Exchange Serverfails.
- By default, theAllow HTTP redirection and DNS SRV recordcheck box is selected. If you clear the checkbox, you disable HTTP Redirection and DNS SRV record lookups for retrieving the Autodiscover URL when discovering users forBlackBerry WorkPush Notifications.
- Optionally, select theForce re-autodiscover of user on all Microsoft Exchange errorscheckbox to forceBEMSto perform the autodiscover again for the user when theMicrosoft Exchange ServerorMicrosoft Exchange Onlinereturns an error message.
- In theEnd User Email Addressfield, type an email address to test connectivity to theMicrosoft Exchange ServerorMicrosoft Exchange Onlineusing the service account. ClickTest. You can delete the email address after you complete the test.If the service account is correctly configured and the test fails,BEMSis attempting to communicate with aMicrosoft Exchange Serverthat is not using a trusted SSL Certificate. If yourMicrosoft Exchange Serveris not set up to use a trusted SSL certificate, see "Importing CA certificates for BEMS" in the BEM-Core content.
- ClickSave.