Configure an Azure Application for SMTP Authentication

You can configure an Azure application for SMTP authentication to act as an OAuth2 client. This is required when creating client credentials and using the OAuth2 protocol for authentication.

Prerequisites

You have access to the Azure application.

Procedure

  1. Create a client credential. A client secret is defined by a description, an expiration date, a value, and a secret ID. The client secret value is masked later, and you can’t retrieve the value if you don’t save it in this step. Click the copy icon next to the value of the new client secret and paste it somewhere you can retrieve it from later. To create a client credential for your Azure application, see Add a Client Secret.

  1. Find relevant IDs that define the application. From the Overview page of your Azure application, you can find the Client ID in the Application (client) ID field and the Tenant ID in the Directory (tenant) ID field.

  2. Complete the registration for the OAuth2 Client Credentials flow without defining a redirect URL.