This article explains how to configure the email server using SMTP in ManageEngine ADAudit Plus. Configuring the SMTP server allows ADAudit Plus to send notifications and reports via email.
To configure the email server using SMTP, you must choose one of the following authentication types:
OAuth with Microsoft Azure as your email provider
OAuth with Google as your email provider
Basic authentication with Gmail as your email server
You will also need administrator access to the ADAudit Plus web console and the administrative portal for your chosen email provider (Azure, Google Cloud, or Gmail).
Go to the Azure portal and sign in using your Microsoft account.
Select Azure Active Directory from the Azure services section.
Navigate to Manage → App registrations → + New registration.
Enter the application name (e.g., ADAudit Plus Application) and select the default Supported account types.
In the Redirect URI field, select Web and paste one of the following URIs:
https://identitymanager.manageengine.com/api/public/v1/oauth/redirect
A localhost URI in the format protocol://localhost:port_number/context_if_any/RestAPI/WC/OAuthSetting (Example: http://localhost:8080/RestAPI/WC/OAuthSetting)
From the left pane, go to Manage → Certificates & secrets.
Click + New client secret, enter a description, choose an expiration period (e.g., 24 months), and click Add.
Copy the generated client secret value.
From the left pane, go to APIs & Services → Library.
Select Gmail API from the list and click Enable.
Navigate to the OAuth consent screen, select a User Type, and enter your application details.
From the left pane, go to Credentials → Create Credentials → OAuth client ID.
Choose Web application as the type and enter an application name.
In Authorized redirect URIs, paste one of the following URIs:
https://identitymanager.manageengine.com/api/public/v1/oauth/redirect
A localhost URI in the format protocol://localhost:port_number/context_if_any/RestAPI/WC/OAuthSetting (Example: http://localhost:8080/RestAPI/WC/OAuthSetting)
Click Save and download the JSON file containing your authentication information.
Copy the Client ID and Client Secret.
If you are using Basic Authentication with Gmail and 2-Step Verification is enabled, you must generate an App Password.
Sign in to your Gmail account and 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 click App passwords.
From the Select app drop-down, choose Other (Custom name) and provide a name.
Click Generate to create a 16-digit App Password to use in ADAudit Plus.
Select SMTP mode.
Enter the required details:
Server Name or IP
Port Number
From Address
Email ID for Notifications (use commas to separate multiple addresses)
Choose a connection security type: SSL, TLS, or None.
Under Authentication, select either Basic Authentication or OAuth Authentication and enter the credentials you obtained in Part 1.
(Optional) Check Send Emails in HTML Format.
Click Save Settings.
If you do not receive the test email, check spam folders or review the SMTP settings for accuracy.
Always use a dedicated service account for authentication rather than a personal user account.
Ensure the firewall on the ADAudit Plus server allows outbound SMTP traffic on the configured port.
If you only add the localhost redirect URI for OAuth, the product must be accessed via localhost to complete the mail server configuration.