N O T I C E
MSPbots WIKI is moving to a new home at support.mspbots.ai to give you the best experience in browsing our Knowledge Base resources and addressing your concerns. Click here
for more info!
Page History
...
Prepare the redirect uniform resource identifier (URI) which is https://app.mspbots.ai/web/um/smtp/redirect. Once the authorization is successful, Microsoft will use this URI to notify MSPbots about the authentication result.Anchor hostname hostname You can find this information with the following steps:
Go to Settings > System > Outgoing Mail.
Click Addv and select OAuth2.
When the Add window opens, go to the Redirect URI field and copy the given URL.
- Sign in to the Microsoft Azure portal and secure the credentials needed for the OAuth 2.0 authorization.
Create a new app registration.
On the Microsoft Azure homepage, click App registrations. If you can't find App registrations on the Microsoft Azure homepage, please search in the search bar.
When the App registrations page opens, click the +New registration tab.
In the Register an application form:
Name - Enter a unique namefor your application.
Supported account types -Select Account in this organizational directory only(MSPbots.ai only - Single tenant) from the options.
Redirect URI(optional) - In the first box, select Web and in the second box, enter the Redirect URI copied from Step 1.
Click Register.
The Application (client) ID will be shown after your registration is done. Take note of this ID.
Next, go to Certificates & secrets in the sidebar menu, then在Client secrets tab下 then click +New client secret on the right under the Client secrets tab.
On the Add a client secret window:Anchor idandsecret idandsecret Description - Add a description.
Expires - Select an expiry date from the dropdown menu.
Note Before the secret expires you must create a new secret and apply it to the MSPbots Outgoing Mail settings.
- Click Add located at the bottom of the Add a client secret window.
Once the Update application credentials popup appears in the top right corner of the page, the addition is successful.、
- Click the copy icon below the Value. You will need these values later when configuring OAuth 2.0 in the mail settings.
Next, go to API Permissions in the sidebar menu.
- Click the Add permissions button.
- Under the Microsoft APIs tab, select Microsoft Graph.
- Next, select Delegated permissions.
- Enter SMTP in the search bar under Select permissions, then click SMTP and check SMTP.Send.
- Enter IMAP in the search bar under Select permissions, then click IMAP and check IMAP.AccessAsUser.All.
- Click the Add permissions button.
- The permissions you added will appear in the Configured permissions list.
- Next, go back to the Overview and click the Endpoints tab.
Copy the OAuth 2.0 authorization endpoint (v2) and the OAuth 2.0 token endpoint (v2) to your local desktop. You will also use these values for creating the OAuth 2.0 credential in the mail settings.Anchor authandtokenurl authandtokenurl
...