Mail Profiles


 

Mail Profiles are used to setup the authentication method for receiving E-mails. SapphireIMS supports modern authentication methods using OAuth2. Modern authentication uses tokens rather than username and password. SapphireIMS can use OAuth2 based services provided by Google or Microsoft.

 

To enable Modern Authentication for receiving E-mails, a mail profile needs to be setup. You can proceed to add the profile and save it. There are certain fields which need to be updated based on the values obtained from the provider which is either Azure or Google.  Hence in parallel, you may need to open another tab in the browser and proceed with the registration of the application. Refer to Registering the application in Azure or Registering the application in Google.

 

Creation of Mail Profiles

 

Settings-Advanced-MailProfile-List.jpg

 

Creating a new mail profile

Settings-Advanced-MailProfile-AddExchange.jpg

 

Serial No. Field Name Description

1

Profile Name

Enter a 'Profile Name'.

 

2

Description

Enter the 'Description' for the profile.

3

Provider

Select the Mail provider which is  'Exchange-Outlook' or 'IMAP/SMTP - GSuite/Gmail' or 'IMAP-Outlook'.

4

Alias Name

The alias uniquely identifies the profile and it is also used to build the redirect URI.

 

5

Redirect URI

The Redirect URI is used to redirect the user to the application after authentication. This is a display-only field and is generated using the Base URL and Alias.

Note.gifNote: This URI needs to be copied and pasted into the 'Redirect URI' field while registering the application either in the Azure portal or Google.

6

Scope

SapphireIMS can ask for the scopes for authorization which are entered here. By default if left blank, SapphireIMS requests for email, profile, offline access and openid which are minimally required. Note that these scopes should have been present while registering the application with Azure or Google.

7

Tenant ID

This is applicable for Outlook only. Enter the Tenant ID generated during SapphireIMS registration in Azure portal.

8

ClientID

Enter the Client ID generated during SapphireIMS registration with Azure or Google.

9

Client Secret

Enter the Client secret generated during SapphireIMS registration with Azure or Google.

 

 

Registering  the Application in Azure

SapphireIMS application needs to be registered with the Office 365 service. Upon registering, Azure will issue the client credentials in the form of a client identifier (Client ID) and a Client Secret. The Client ID is a publicly exposed string that is used by the service to identify the application and is also used to build authorization URLs that are presented to users. The Client Secret is used to authenticate the identity of the application to the service  when the application make a request to access a user's account and must be kept private between the application and the service.

 

Note.gifNote: If you have already registered SapphireIMS in the Azure AD for login authentication, then you do not need to create a new registration. Instead you can add a redirect URI for the e-mail-to-record conversion in the existing registration.

 

Azure-Home.jpg

 

Azure-AD-1.jpg

 

Azure-AD-2.jpg

Azure-AD-3.jpg

 

Azure-AD-4.jpg

 

Azure-AD-5.jpg

 

Azure-AD-6.jpg

Azure-AD-7.jpg

Azure-AD-9.jpg

 

Azure-AD-10.jpg

Azure-AD-11.jpg

 

Azure-AD-12.jpg

Azure-AD-13.jpg

Note.gifNote: This is a work-around as the Exchange API is no longer visible on the Azure Portal and this will work only if Exchange API has been previously used in the organization for other applications.

Azure-AD-14.jpg

 

Azure-AD-15.jpg

 

Azure-AD-16.jpg

 

Configuring API Permissions for IMAP

Azure-AD-13.jpg

 

Azure-AD-17.jpg

Azure-AD-18.jpg

 

Azure-AD-19.jpg

 

Registering the Application in Google

 

OAuth2-E2R-1.jpg

 

OAuth2-E2R-2.jpg

 

OAuth2-E2R-3.jpg

OAuth2-E2R-4.jpg

OAuth2-E2R-5.jpg

 

OAuth2-E2R-6.jpg

OAuth2-E2R-7.jpg

 

OAuth2-E2R-10.jpg

OAuth2-E2R-11.jpg

OAuth2-E2R-12.jpg

 

OAuth2-E2R-13.jpg

OAuth2-E2R-14.jpg

OAuth2-E2R-15.jpg

OAuth2-E2R-8.jpg

 

OAuth2-E2R-9.jpg

OAuth2-E2R-16.jpg

Note.gifNote: You can leave the Authorized redirect URIs field blank for the initial configuration and update it later from the URI in the mail profile.

OAuth2-E2R-17.jpg