Configure BEMS to communicate with the Microsoft Exchange
Server or Microsoft Office
365
BEMS
to communicate with the Microsoft Exchange
Server
or Microsoft Office
365
You must allow
BEMS
to authenticate to Microsoft Exchange
Server
or Microsoft Office
365
to access users’ mailboxes and send notifications to users’ devices when new email is received on the device.- Verify that the service account has impersonation rights on theMicrosoft Exchange Server.For instructions, see Grant application impersonation permission to theBEMSservice account.
- In aMicrosoft Office 365environment, if you plan to enable Modern Authentication, verify that you completed the following:
- If you enable Modern Authentication using a Client Certificate,
- 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 Office 365:Authentication typeEnvironmentDescriptionTaskIntegratedMicrosoft Exchange Serveron-premisesThis option usesWindowsauthentication credentials to authenticate to theMicrosoft Exchange Server.No additional actions are required.Credential
- Microsoft Exchange Serveron-premises
- Microsoft Office 365
This option uses theBEMSusername and password to authenticate to theMicrosoft Exchange ServerorMicrosoft Office 365.- In theUsernamefield, enter the username of theBEMSservice account.
- ForMicrosoft Office 365, enter the service account's User Principal Name (UPN).
- For on-premisesMicrosoft Exchange Server, use the format <domain>\<username>.
- In thePasswordfield, enter the password for the service account.
Client Certificate- Microsoft Exchange Serveron-premises
- Microsoft Office 365
This option uses a client certificate to allow theBEMSservice account to authenticate to theMicrosoft Exchange ServerorMicrosoft Office 365.- For theUpload PFX file, clickChoose Fileand select the client certificate file. For instructions on obtaining the .PFX file, see Associate a certificate with the Azure app ID for BEMS
- In theEnter PFX file Passwordfield, enter the password for the client certificate.
- Optional, in aMicrosoft Office 365environment that uses Credential or Client certificate authentication, do the following to enable Modern Authentication:
- Select theEnable Modern Authenticationcheckbox.
- In theAuthentication Authorityfield, enter the Authentication Server URL thatBEMSaccesses and retrieve the OAuth token for authentication withMicrosoft Office 365(for example, https://login.microsoftonline.com/<tenantname>). By default, the field is prepopulated with https://login.microsoftonline.com/common.
- In theClient Application IDfield, enter one of the followingAzureapp IDs depending on the authentication type you selected: one of the following.
- In theServer Namefield, enter the FQDN of theMicrosoft Office 365server. By default, the field is prepopulated with https://outlook.office365.com.
- Optionally, select theUse Credentials if Modern Authentication failscheck box to allowBEMSto communicate withMicrosoft Office 365in the event thatBEMScan't access the modern authentication source. When you select this check box, you must provide theBEMSservice account credentials.
When you configure Modern Authentication, all nodes use the specified configuration. - 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 Office 365. For more information about best practices when enabling autodiscover, see Best practice: Enabling autodiscovery.
- Select theOverride Autodiscover URLcheckbox.
- In theAutodiscover URLOverride Autodiscover field, 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 theMicrosoft Active Directoryusing 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 Office 365returns an error message.
- In theEnd User Email Addressfield, type an email address to test connectivity to theMicrosoft Exchange ServerorMicrosoft Office 365using 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 anMicrosoft 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.
- ClickSave.
If you selected
Client Certificate
authentication, you can view the certificate information. Click Mail
. The following certificate information is displayed:
- Subject
- Issuer
- Validation period
- Serial number