Note:
The Mailbox Importer Service must be running prior to adding a mail account.
To add a Gmail account:
-
From the Configuration module, select Import | Mailbox Importer | Accounts. The Accounts dialog box is displayed.
-
Enter a unique name for the account in the field below the Accounts list and click Create. The Account Settings dialog box is displayed.
- Leave the Address/Tenant ID and Port fields blank. These fields are disabled when Google API is selected from the Type drop-down list.
-
In the Polling Period (Minutes) field, enter the number of minutes between polling periods. Polling periods can range from a minimum of 1 minute to a maximum of 1,440 minutes.
The polling period takes effect after all messages are processed in the user's mailbox. If the polling period is set to 1 minute, a sleep cycle of 1 minute initiates after Mailbox Importer connects to the configured mailbox and processes all messages. After the sleep cycle ends, Mailbox Importer checks for new messages.
-
From the Type drop-down list, select Google API as the port type to associate with the account.
Note:
The Address/Tenant ID, Port, and Use SSL options are disabled when Google API is selected in the Type drop-down list.
-
In the Mail Account Information section, click Modify Mail Account. The Mail Account - OAuth2 dialog box is displayed.
- In the Username field, enter the user name or email address associated with the mail account you want to use.
-
Click Web Integration Settings. The Web Integration Settings dialog box is displayed.
-
Click Create. The Web Integration Settings dialog box is displayed.
- From the Integration Type drop-down list, select Mailbox Importer.
- From the Service Type section, select Google.
- From the Settings section, in the Client ID field, enter your Google Service account Client ID. The Client ID can be obtained from the Google API Console when creating your Google Service Account.
-
In the Private Key field, enter your Google Service
Account Private Key. The private key can be obtained from the Google API Console
when creating your Google Service Account.
Note: For information on creating a new private key, see the Create access credentials article on the Google for Developers website.
-
Once a private key is generated, save it as a JSON file.
Note: The private key is automatically dowloaded to your workstation's default folder for Downloads.
- Open the JSON file and look for the field named "private_key".
-
Copy data between -----BEGIN PRIVATE KEY----- and -----END PRIVATE
KEY----- and paste into the Private Key
field in the Web Integration Settings dialog box in the
Configuration module.
Note: You can choose to include or exclude the \n characters.
- Click Save and then click Close from the Web Integration Settings dialog box to return to the Mail Account - OAuth2 dialog box.
- From the OAuth2 Profile drop-down list, select your configured Client ID.
- From the Workstation drop-down list, select your workstation to associate with the account.
- Click OK. The Account Settings dialog box is displayed.
- Click Save.