SMTP email server connections can be authenticated using OAuth or basic authentication.
Prerequisites
To configure the email server using SMTP, choose any one of the following authentication types:
SMTP email server configuration using OAuth with Microsoft Azure as your email provider
If you are using OAuth with Microsoft Azure as your mail provider, find the Azure tenant ID, Client ID, and Client Secret using the steps listed below:
- Go to the Azure portal and sign in using your Microsoft account.
- Select Azure Active Directory from the Azure services section.
- Go to Manage > App registrations > + New registration to open the Register an application window.
- Enter the application name (e.g., ADAudit Plus Application) and select the default Supported account types.
- In the Redirect URI field, select Web from the drop-down and paste the following OAuth link (https://identitymanager.manageengine.com/api/public/v1/oauth/redirect) or type in the local host redirect API in the following syntax:
protocol://localhost:port_number/context_if_any/RestAPI/WC/OAuthSetting
Sample: http://localhost:8080/RESTAPI/WC/OAuthSetting
If you have added just the local host as your redirect URI, then the product must be accessed via the local host to configure the mail server.
- On the left pane, go to Manage > Certificates & secrets.
- Click + New client secret.
- Enter an appropriate description. Choose 24 months as the expiration date; this is the maximum value that can be used.
- Click Add.
- Find and copy the client secret value (e.g., "14uClLxkHtIVGR3wkCq12341Nd5VtestkkWTyIPrrE=").
SMTP email server configuration using OAuth with Google as your email provider
If you are using OAuth with Google as your mail provider, find the Google Workspace Client ID and Client Secret using the steps listed below:
SMTP email server configuration using basic authentication with Gmail as your email server
If you are using basic authentication with Gmail as the email server and you have 2-Step Verification enabled for your Google Account, you will need to generate an App Password to receive email alerts from ADAudit Plus.
Steps to generate an App Password
An App Password is a 16-digit passcode that is required for a device or an application to access your Google Account. Obtain the 16-digit code by following the steps below:
- Sign in to your Gmail account from your web browser.
- Go to your Google Account home page.
- Select Security from the left menu.
- Under How you sign in to Google, select 2-Step Verification. Then select App passwords.
- From the Select app drop-down, select Other (Custom name). Enter a name of your choice.
- Click GENERATE. A 16-digit App Password unique to your device will be generated. This code can be regenerated as required.