Skip to main content
Skip table of contents

Setting up system email accounts and exchange integration with modern authentication

The content on this page has been adapted for MYOB Acumatica, based on a post in the Acumatica community forum.

This page explains how to set up a system email account or Exchange Integration for the Azure Online and Exchange Online (Office 365) accounts using Modern Authentication (OAuth 2.0).

Support of Modern Authentication (OAuth 2.0) for Exchange Online (Office 365) and Azure Online accounts was added in the version 2020.5.3 of MYOB Acumatica in February 2021.

The steps below describe a system email account set up for the Azure Online account. The same approach can be used when setting up the Exchange Online (Office 365) account.

This topic describes the configuration of a third-party software. Please note the following points:

  • The procedure below is designed for the most common usage scenarios. If you are implementing a more complicated scenario and you encounter difficulties, contact MYOB Acumatica Support.

  • The vendor of the third-party software may change the user interface and settings. Therefore, the form elements and setting names you see may differ from the ones described in the procedure.

  • The procedure will be updated each time information is made available about new common scenarios and changes in the user interface and settings.

Set up a system email account
  1. On the Microsoft Azure Portal, complete steps from the Register an application with the Microsoft identity platform section. On the Overview page, copy the following values which will be used in the MYOB Acumatica setup:

    • Application (client) ID

    • Directory (tenant) ID

    The example of these values are shown in the following screenshots.

  2. On Microsoft Azure Portal, complete steps from the Add a client secret for an application section. Copy the client secret value shown in the following screenshot. The value will be used in the MYOB Acumatica setup. The client secret value:

  3. In MYOB Acumatica, on the External Applications (SM301000) screen, create a new record by doing the following:

    1. In the Type dropdown, select the Exchange SMTP/IMAP/POP value.

    2. In the the Application Name field, specify the application name.

    3. In the Client ID field, specify the Application (client) ID value from Step 1.

    4. In the Client Secret box, specify the Client secret value from Step 2.

    5. Save your changes.

    The specified values are shown in the following screenshot.

  4. Copy the value from the Return Url field. The value will be used in the next step for the Azure application setup.

  5. On the Microsoft Azure Portal, complete steps from the Add a redirect URI section as follows:

    1. On the Overview page, click the Add a Redirect URI link as shown in the following screenshot.

    2. In Configure platforms, select the Web tile as shown in the following screenshot.

    3. In the Redirect URI box, specify the Return Url box value from Step 4.

    4. Click the Configure button.

    The following screenshot demonstrates instructions c and d.

  6. On the Microsoft Azure Portal, complete steps from Application permission to Microsoft Graph to grant the needed delegated permissions as follows:

    1. Select API permissions > Add a permission > Microsoft Graph as the following screenshot shows.

    2. Select Delegated permissions.

    3. Select the following permissions:

      1. offline_access

      2. IMAP.AccessAsUser.All

      3. SMTP.Send

      4. POP.AccessAsUser.All if needed (however, using POP3 not recommended in MYOB Acumatica in general)

    4. Click Add Permissions button as shown in the following screenshot.

  7. In MYOB Acumatica, on the System Email Account (SM204002) screen, create a new record.
    On the Servers tab, specify the following values:

    1. In the Account Name field, specify the account name.

    2. In the Email Address field, specify the email address.

    3. Select the Incoming Mail Protocol needed.

    4. Specify the Root Folder field value.

    5. Specify the Incoming Mail Server and Outgoing Mail Server fields' values (outlook.office365.com for Azure/Office365).

    6. In the Authentication Method dropdown, select either Azure Modern Authentication or OAuth (the label changes depending on your version of MYOB Acumatica).

    7. In the Azure Tenant ID field, specify the Directory (tenant) ID value from Step 1.

    8. In the External Application field, select the external application created in Step 3.

    Example is shown in the following screenshot.


    On the Advanced Settings tab, specify the following values:

    1. If your server supports the encrypted incoming connection, select the Incoming server requires encrypted connection (SSL) checkbox.

    2. If your server supports the encrypted outgoing connection, select the TLS option on the Outgoing server encrypted connection.

    The tab is shown in the following screenshot.


    Save your changes.

  8. Click the Sign In button. On the Sign in to your account window, select and sign in to your email account as shown in the following screenshot.

  9. Click the Test button to send a test email to your email account. Verify the test email in your inbox folder. Example is shown in the following screenshot.


    The system email account is set up using the Modern Authentication (OAuth 2.0).

Set up exchange integration
  1. On the Microsoft Azure Portal, complete steps from the Register an application with the Microsoft identity platform section. On the Overview page, copy the following values which will be used in the MYOB Acumatica setup:

    • Application (client) ID

    • Directory (tenant) ID

    The example of these values are shown in the following screenshots.

  2. On Microsoft Azure Portal, complete steps from the Add a client secret for an application section. Copy the client secret value shown in the following screenshot. The value will be used in the MYOB Acumatica setup. The client secret value:

  3. In MYOB Acumatica, on the External Applications (SM301000) form, create a new record by doing the following:

    1. In the Type dropdown, select the Exchange Online AWS value.

    2. In the Application Name field, specify the application name needed .

    3. In the Client ID field, specify the Application (client) ID value from Step 1.

    4. In the Client Secret field, specify the client secret value from Step 2.

    5. Save your changes.
      Example is shown in the following screenshot.

  4. On the Microsoft Azure Portal, complete steps from Configure for app-only authentication to grant the delegated permissions.

  5. On the Exchange Server Configuration (SM204015) screen, do the following:

    1. In the Account Name field, specify the account name.

    2. In the Email Address field, specify the email address.

    3. In the Authentication Method dropdown, select either Azure Modern Authentication or OAuth (the label changes depending on your version of MYOB Acumatica).

    4. In the Azure Tenant ID field, specify the Directory (tenant) ID value from Step 1.

    5. In the External Application field, select the external application created in Step 3.

    6. Save your changes.

    The example is shown in the following screenshot.

  6. Click the Test Server button to test the account settings. The green check box on the form toolbar indicates that the connection is set up.
    The Exchange Integration is set up using the Modern Authentication (OAuth 2.0).

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.