Configure Google as SMTP Using OAuth 2.0
An SMTP Server is an application that allows your device or server to send and receive electronic mails (emails) to and from various recipients. SMTP stands for Simple Mail Transfer Protocol and is a standard protocol used for sending emails.
By default, miniOrange provides and uses its own SMTP server to send OTPs and system emails to users. If you have a custom SMTP server configured, you can use it to send emails from your miniOrange account. miniOrange supports both Basic Authentication and OAuth 2.0–based authentication for Google, allowing you to choose the method that best fits your security requirements. Check out our list of Supported SMTP Servers.
miniOrange IdP allows you to configure Google as an SMTP email provider using either basic configuration or OAuth 2.0, giving you greater control to manage, monitor, and troubleshoot your email communications securely.
Note:
You can contact idpsupport@xecurify.com for adding your own SMTP/Email Server or if you need help with any SMTP Server integration.
Follow the guide below to Configure Google as SMTP Using OAuth 2.0
1. Configure Gmail SMTP OAuth 2.0 in miniOrange
2. Register Your Application in Google Cloud Console
- Go to https://console.developers.google.com/ and sign up/login.
- Click on Select Project to create a new Google Apps Project, you will see a popup with the list of all your projects.

- You can click on the New project button to create new project.

- Enter your Project name under the Project Name field and click on Create.

- Go to Navigation Menu >> APIs & Services >> Credentials.

- Click on Create Credentials button and then select OAuth Client ID from the options provided.

- Select Web Application from dropdown list to create new application.

- Enter the name you want for your Client ID under the name field and enter the Redirect/Callback URL that we saved in the Step 1 and click on the Create button.

- You will see a popup with the Client ID and Client Secret. Copy your Client ID and Client Secret, and optionally download the JSON file for reference.

- You have successfully completed your Google App OAuth Server side configurations.
Enable Gmail API
- In APIs & Services >> Library, search for Gmail API.

- Click Enable to allow your application to authenticate via OAuth.

3. Test SMTP
- Navigate to Step 1 and fill in the Client ID and Client Secret obtained earlier.
- Fill in the required details and click Save & Authorize.
- Once authorization is successful, enter a test email address and click Test Configuration to verify the SMTP setup.
External References