Set up Outlook as an Email Server
This topic describes how to set up Microsoft Outlook as the email server for Yeastar P-Series Software Edition using modern authentication. This allows the PBX to send and receive emails through your Microsoft account.
Requirements
Platform | Requirement |
---|---|
PBX server |
|
Microsoft 365 |
|
Procedure
Step 1. Obtain redirect URI from PBX
Obtain the redirect URI from Yeastar P-Series Software Edition, which will be required when registering a Microsoft Entra application later.
- Log in to PBX web portal, go to .
- In the Type of Email Server drop-down list, select Custom Email Server.
- In the Select Email Server Provider drop-down list, select Microsoft.
- In the Redirect URI field, click to copy the URI.
Step 2. Register an application on Microsoft Entra ID
Register an application on Microsoft Entra ID with the redirected URI provided by Yeastar PBX, then obtain the application authentication information for SMTP settings on PBX.
- Log in to Microsoft Azure Portal with the Microsoft Administrator account.
- In the search bar, search and select Microsoft Entra ID service to enter your organization's directory.
-
On the left navigation bar of organization's directory, go to App registrations, then click New registration.
- In the Register an application page, configure the
registration information for the application, and click
Register.
- Name: Specify a name to help you identify the application.
- Supported account types: Select Accounts in this organizational directory only.
- Redirect URI: In the Select a platform drop-down list, select Web, then paste the Redirect URI obtained from the PBX.
-
Note down the Application (client) ID and Directory (tenant) ID of the application, as you will need to fill them into the PBX later.
- Generate a client secret for the application.
- On the left navigation bar of the application, go to New client secret. , then click
- In the Add a client secret page, add a
description and set an expiration date for the client secret, then
click Add.
A client secret is created and displayed in the Client secrets list.
- Note down the client secret's
Value as you will need to fill it into
the PBX later.Important: Record the client secret's value before leaving the page, as the key is only shown once. Otherwise, you will have to create a new client secret.
Step 3. Configure SMTP settings on PBX
Configure the SMTP settings of the PBX with the authentication information obtained from the Microsoft Entra application, so as to set Microsoft Outlook as the PBX's email server.
- Log in to PBX web portal, go to .
- In the Type of Email Server drop-down list, select Custom Email Server.
- In the Select Email Server Provider drop-down list, select Microsoft.
- Enter the following authentication information.
- Tenant ID: Paste the Tenant ID of the Microsoft Entra application.
- Application (Client) ID: Paste the Application ID of the Microsoft Entra application.
- Client Secret: Paste the client secret of the Microsoft Entra application.
- Click Save.
You are redirect to the Microsoft Sign-in page.
- Sign in with the Microsoft account that has Global Administrator privilege.
-
In the pop-up window, do as follows to confirm:
- Select the checkbox of Consent on behalf of your organization.
- Click Accept.
- Test
if the mail server can successfully send emails.
- Click Test.
- In the pop-up window, enter a recipient's email address in the Email Address field, then click Test.
Result
admin<admin@ursaconn.onmicrosoft.com>
.- If you want to change the sender name of the emails sent by the SMTP server, change the display name of the Microsoft account.
- If the test email is failed to be sent, the page displays "Failed to send" and prompts you an error message.