Office 365 connectivity

Deprecation of basic authentication

Microsoft has deprecated the basic authentication mechanism shown on this page. We recommend that users migrate to the newer connection type which uses OAuth 2.0. See Integrating with Microsoft 365 using OAuth for more information.

Although Office 365 can be integrated to JEMHC through POP3, IMAP and SMTP, JEMH Cloud also supports inbound messaging and outbound notifications via Microsoft's Exchange Web Service.

To use EWS, just select the type Office 365 EWS when creating Message Source or Message Outbound configurations.

The below requires that you are using at least the Microsoft 365 Business Standard plan.

Message Source

  1. Go to Messaging → Message Sources → Create

  2. Complete the form selecting the Type Office 365 EWS. 

  3. When saving, JEMHC will test how many messages are ready to be processed.

You can now use the EWS Message Source in Message Handlers to poll messages like any other Message Source.

Message Outbound

  1. Go to Messaging → Message Outbounds → Create.

  2. Complete the form selecting the Type Office 365 EWS. 

  3. When saving, JEMHC will send a test email to the To Email address.


The EWS Message Outbound can be used to send email though Email Notification Mappings, Post Functions Notifications and Ad-Hoc Notifications.

JEMHC uses the autodiscover feature to detect the EWS server URL.

Check out Office 365 section in Common Problems.

Errors: 550 5.7.501 Access denied, spam abuse detected

If the emails JEMHC sends bounce (SMTP or Office 365 EWS) back to the inbox with the following messages

Contact Microsoft Exchange Support explaining the error and asking to whitelist your Office 365 domain.

We have used http://answers.microsoft.com/ and the following thread http://answers.microsoft.com/en-us/msoffice/forum/msoffice_outlook/remote-server-returned-550-57501-access-denied/23b2794d-ddc2-4e4d-a4b7-ee1f136a300a

Waiting for an answer!

User Impersonation (for mail retrieval from several/many mailboxes)

The following doc has been referred by a customer using JEMHC + EWS with an on premesis Exchange 2016 server and “User Impersonation”. It enables a ‘main’ account to retrieve mail from ‘many’ mailboxes, not unlike Aliases. It may work with cloud o365, as yet this is unverified/tested, here for information only! We hope it would be Graph compatible, as yet unknown.

Related articles

Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.


Related issues