The following instructions can be used to configure a Mail Server that connects to Gmail using OAuth2.
These instructions apply to the Email Document Loader Job as well, although the ports will be different.
Enter the following details:
Name | Gmail |
Description | Account settings for Gmail |
Host | smtp.gmail.com |
Port | 587 |
Timeout | 120 |
Connection Security | STARTTLS |
Authentication Method | OAuth2 - Gmail |
The first time this is done, a New OAuth2 Client Registration window will be displayed.
This prompts for the following details:
These are obtained in the following steps. Note the Redirect URI.
while Your restricted scopes should display:
iv. Click SAVE AND CONTINUE
i. Under APIs & Services, select Credentials
ii. Click CREATE CREDENTIALS
iii. Click OAuth client ID
iv. Under Create OAuth client ID, enter
v. Click CREATE
A popup will display, containing the Client ID and Client Secret:
Click OK. This should automatically start the Authorise flow. A new browser will be displayed.
After logging in, follow the prompts, and select 'Read, compose, send and permantly delete all your mail from Gmail'
Click Continue.
In the Mail Server window, click Check Authorisation.
If successful, the Gmail account will appear in the Username field. Click OK.
The following instructions can be used to configure a Mail Server that connects to Microsoft Outlook using OAuth2.
These instructions apply to the Email Document Loader Job as well, although the ports will be different.
Enter the following details:
Name | Microsoft Outlook |
Description | Account settings for Microsoft Outlook |
Host | smtp.office365.com |
Port | 587 |
Timeout | 120 |
Connection Security | STARTTLS |
Authentication Method | OAuth2 - Outlook |
The first time this is done, a New OAuth2 Client Registration window will be displayed.
This prompts for the following details:
These are obtained in the following steps. Note the Redirect URI.
Select Manage Azure Active Directory
This displays a Register an application page.
Enter:
This displays an Overview page.
The Application (client) ID is copied into the Client Id field in step 3
The Directory (tenant) ID is copied into the Tenant Id field 3
This displays a popup. Enter:
This displays the new secret. The Value field must be copied to the Client Secret field in step 3.
This displays a Request API permissions popup.
Select Microsoft Graph.
Then select the permissions:
Click Add permissions.
On completion, API permissions should look as follows:
Back in the OAuth2 Client Registration editor, enter the Tenant Id, Client Id and Client Secret.
Click OK. This should automatically start the Authorise flow. A new browser will be displayed.
After logging in, follow the prompts:
If successful, the Outlook account will appear in the Username field.
Click OK.