Overview
This article provides step-by-step instructions to:
1. Generate a Client ID and Client Secret using the Google Cloud Console for OAuth 2.0 authentication.
2. Configure SMTP settings in BDRSuite using OAuth-based authentication with Google.
Log in to console.developers.google.com using your personal or work email account.
Ensure that the account you have logged in has the appropriate permissions to create a project. If not, contact your administrator for assistance. If your account has sufficient permissions, create a new project with a name of your choice and the following options:
This option applies for work accounts only: In the Organization field, select your organization to attach it to the project.
If you are using a work account, choose the appropriate parent organization in the Location Field. For personal Gmail accounts, this field will be preset to "No Organization".
Make sure the project you just created is selected as the active project before you proceed to the next step.
Navigate to the API Library page and enable "Gmail API"
Navigate to the OAuth Consent Screen.
Click Get Started.
Under the App Information, Provide the Application Name, the support email of your help desk, and click Next.
Under Audience, Choose the User Type as follows: Select "Internal User" if you have a Google Workspace account, else select "External User" and click "Next".
Fill in your Contact Information and click Next.
Click Create.
Navigate to "Data Access" and provide access to the scope "https://mail.google.com/" under Gmail API and make sure to save the changes.
This step applies only for "External Users": Navigate to the "Audience" page and add Test Users.
Navigate to "Clients" and Create a Client with the following settings:
Set Application Type to "Web Application".
Provide a name of your choice for the client.
Under Authorized Redirect URIs, add a Redirect URI as follows:
If your BDRSuite server is accessed only locally using local IP addresses, Provide a redirect URI in following format: https://<ip_address>.nip.io:<port_number>/emailoauth/gws Eg: https://192.168.103.8.nip.io:6061/emailoauth/gws
If your BDRSuite server is accessed using a public domain name or a public IP addresses, Provide a redirect URI in the following format: https://<public_ip_address or public_domain_name>:<port_number>/emailoauth/gws Eg : https://bdr.example.com:6061/emailoauth/gws
If your BDRSuite server is accessed using the domain name localhost, provide a redirect URI in the following format: https://localhost:<port_number>/emailoauth/gws Eg:https://localhost:6061/emailoauth/gws
Save the OAuth Client.
Make sure you download the "Client Secrets" file (JSON file) containing the authorization server details as it may not be available for download later.
Make sure you copy the Client ID and Client Secret displayed on the screen since some of these information may not be accessible later.
Configure SMTP settings in BDRSuite using OAuth-based authentication with Google
1. Open the redirect URL(specified in step 8 of Generation of Client for OAuth) directly in your browser. Login into BDRSuite Web console with an admin account using the URL as follows,
3. Provide values in various fields such as SMTP Server etc.. as per Google's settings.
4. For the "Authentication" field, choose Select OAuth > Google.
5. Provide the Client ID and Client Secret you saved earlier during the Google Project creation process.
6. Ensure that all fields are appropriately filled and click "Authorize and Save".
7. Proceed with the OAuth consent process.