Skip to main content

Using an Office365 Email Account for On-Premise

in Office365
Authors list
Published: 7 Oct 2022|Last updated: 5 Jun 2024

As Microsoft has disabled Basic Authentication for Microsoft Entra ID logins, this means that Office 365 mail accounts must use OAuth2 in order to login to send and receive emails.

Before adding your Office365 account, you will need to configure an OAuth2 app within Microsoft Entra. Please follow the guide here and make a note of the Client ID and Client Secret before proceeding.

Warning


We recommend logging into Deskpro in a Private Browsing / Incognito window during this installation, as active logins to Office365 in your browser could override the login section, and log Deskpro in as the wrong user.

In order to add a mail account to your Deskpro On-Premise installation, first login to your admin panel, then navigate to Admin > Channels > Email > Email Accounts

Note


If you have an existing Office365 email account configured in Deskpro, select that and skip to Step 4.

  1. Click on ‘New Email Account’ in order to create a new email account.

image.png

  1. Enter your Office365 email account in the Email Address field, click the toggle to Enable the email account and select ‘Ticket Email Account’ type.

image.png

Note


If your Office365 account is configured to use a custom domain, specify that email address and not the .onmicrosoft.com address. This will be the email address which Deskpro uses to send outbound mail from this account.

  1. For Account Details, there are two options, Office365 (Exchange) and Office365 (POP3/SMTP). We recommend using the Exchange method for Office365 emails. Please consult with your Office365 administrator to see if you have any limitations on how to connect to your mail account.

image.png

If you select Office365 (Exchange), you will have the option to configure a custom exchange server address if required. The address outlook.office.com should work for most users, but please confirm with your Office365 administrator.

  1. Using OAuth2

At this point you will have the option to manually configure your Office365 mail account, or to use OAuth. The manual method is deprecated by Microsoft and is not recommended.

To configure your OAuth account, choose OAuth under authentication methods, click on ‘Get Access Token’ button, a window will open with a choice to either use deskpro to authenticate with Office365 or to use your own app.

Deskpro to authenticate option will need you to log in to your Office 365 account and grant Deskpro access to your emails. Use your own app option will require client ID and client secrets generated from an application within Microsoft Entra ID

image.png

Use Deskpro to authenticate with Office 365Copy link to Use Deskpro to authenticate with Office 365 to clipboard

After selecting the first option pressing connect, the Deskpro OAuth provider will prompt you to grant permission to access your emails - check the box and click allow

image.png

Use your own appCopy link to Use your own app to clipboard

Before adding your Office365 account with this method, you will need to configure an OAuth2 app within Microsoft Entra. Please follow the guide here and make a note of the Client ID and Client Secret before proceeding.

After choosing to connect using your own app, you will be prompted to enter your Client ID and Client Secret.

image.png image.png image.png

This would be where you would place your Client ID and Client Secret generated by the Azure AD app. If you do not have this information, instructions on how to generate them can be found here

Entering your Client ID and Client Secret then clicking Save will then open a popup window asking you to sign into your Office365 account. This account will be the one you wish to add to Deskpro.

image.png

image.png

Once you have signed in with your login credentials, Microsoft will prompt you confirm the permissions requested by Deskpro. Click ‘Accept’ to continue. If you have any form of Multi-Factor Authentication enabled for this account, you will also be asked to confirm your login through that.

  1. When the pop-up window closes, you should now see the Access Code has been filled. You can now click Create at the bottom of the page to set up your email account.

image.png

Your Office365 email address should now be configured to send and receive emails.

HelpfulUnhelpful
next pageUsing an Office365 Email Account for Cloud
previous pageCreating an OAuth2 application in Office365

Please log in or register to submit a comment.