# Creating a New Mailbox Reader Import

While initiating a new Import, T1 and T2 level administrators can choose a tenant for which they want to initiate import whereas for T3 level administrators clicking on New Import button takes them directly to the configuration page.

<figure><img src="https://lh5.googleusercontent.com/gLbl1N4opWLRm479WVCVKgdTelbX7AK6Q07a1EyW9rs-GGQ_kQkPfRfXe7dHmDZ-jKkRK2zfMt7h9nuPuPQNrGzaB5uZSdnaPrhkCEPgkc79daTQiNSqcYokN781xh_FtL1pXPQzmy_7r0rnHL0cVXoKzo44EJZ0JwLFGDvU-eB4Ql76_iSKMkLF1Dbsfw" alt=""><figcaption><p>Choose Customer Page</p></figcaption></figure>

{% hint style="warning" %}
The above is only applicable to T1 and T2 level administrators, where they can select the tenant from the dropdown available. The dropdown will only contain the tenants the user has permission to administrate. So a T2 will only see the T3 tenants beneath them.
{% endhint %}

## **Creating a Mailbox Reader Import**

On clicking the New Import button (& selecting tenant for T1 and T2 level), administrator is taken to the configuration page for the connection.

<figure><img src="https://lh3.googleusercontent.com/tjNXoW1HEm2dU3_gCisL0vrrjedUausEs9dHXQ8-kqkMN12_wP2_VimlyLrK4wdtfJmo6E-B-grptRFT-popwyIUDWsqXZb-cEpd_3q2a_zMryTwkTx9g_tVeJzDTR66-b8snftpdp8vip3Bjo96fT_bke9GsbHY5XHiYEkdP2Yc3X7KB27CxX7AXJeJog" alt=""><figcaption><p>New Mailbox Reader Import</p></figcaption></figure>

### 1. Choose Import Type

Each new import has two key import type options:

1. Mailbox Reader
2. Custom Import (visible when Custom is selected as Import Type)

{% tabs %}
{% tab title="Mailbox Reader" %}
Here, the administrator has an option to select either Mailbox reader or raise a request for Custom Import.&#x20;

![](https://lh6.googleusercontent.com/3-BhrF5CjsFBLoxqE8UN89EGRxRRdLdp_6G4N96lIzovl9WAy44e8brtUIionJVBi9YjQu-Ei0TN8KWCS0KSubN0LYAdUaWshNeBR4oVvXttPDA0kkQ_TAakh8hP1ND5cXz-jugfEzd2ThRqMy5ODG2Gpg7DQrYFhqksAnD-IJ5xICenQiuGZHDbfxUNGA)

Using a mailbox reader is the default option present here, which will use the connection details provided by the administrator for connecting to mailboxes and importing the data.

Whereas for Custom Import, a request will be raised and forwarded to the support team.&#x20;
{% endtab %}

{% tab title="Custom Import" %}
In this section, the administrator can raise a request to customize the import. Some details need to be provided here i.e., what type of data you are trying to import, file format of the data, if you are migrating from Mimecast or similar solutions etc.&#x20;

!\[Graphical user interface, text, application, email

Description automatically generated]\(<https://lh6.googleusercontent.com/qtQmCq1NSMMVBpWXPKAabG4WXKnvQowPX11KKE9D_M790Uy5v-sHcS5DIqXe43Gyo758WlKmM5uDaSsaBLmugPR-FZKBgYoizPINMvPII96uirQbXusbe4bb_fnAG6K9uCTyL3YHIkmUPHAJ4CAllQRumrMDO3qLjkOwaJfQAXWh0eSt9TlRdirAhclSdg>)

Based on the details provided, some charges may apply.
{% endtab %}
{% endtabs %}

### 2. Add Connection Details

This section allows Administrators to configure the settings to setup a Mailbox Reader Connection. The protocol you wish to use for accessing and reading from the mailboxes will depend on the mail server. Some recommendations for protocol are:

* For Exchange 2007 onwards, use EWS (Exchange Web Services). This is a powerful facility and is becoming more efficient and effective with later Exchange releases.
* For most other mail sources, use IMAP (Exchange 2003 / Gmail / Hotmail / etc.)
* Use POP3 as a last resort.
* MSGraph

Then you will need to discover the server from which to access the mailboxes. For Exchange, the CAS server is usually preferred – as this offers the IMAP (if enabled) and EWS web services. For EWS you MUST enter the correct server host name – it must match the services’ certificate and standard URL. Please note: If this is not correct, EWS will not authorise the connection and errors.

For IMAP/POP3, you will generally use the service names that are well documented by the various mail vendors

EWS is the recommended method for mail extraction from an on-premises Exchange system.

MSGraph is the recommended method for mail extraction from Microsoft Exchange online (Office365).

<figure><img src="https://lh3.googleusercontent.com/tnK9KZqih61J2paYOcUtwpE_mZ1DNtOGs8U9Vb__vxnuNsmAsZtEhHBo4R3VoU8kV3yum3eZoF7MKPJLH8o3ksVJG7HT-pvT57cEoWnwi3SarZWbeSebLKsuICJ1g0XlLUiCaEcXb8cHCoyvXj4wWcmfK6fTeYHIg1hqyOqsb7xyw2GMQCg9WC0-EY-vmA" alt=""><figcaption><p>Connection Details Panel</p></figcaption></figure>

**Connection via Multiple Protocols**

{% tabs %}
{% tab title="Using MSGraph" %}
Prerequisite: Server Address, OAuth Connection, Tenant ID.

Administrator must enter the prerequisites mentioned above and click save & test connection button. This protocol is mostly used for Office 365 accounts.&#x20;

OAuth connection used here must be already created for the tenant. <br>

<figure><img src="https://lh3.googleusercontent.com/MjnVgboWMu6GvZGtlA22ObB7ath47WdxAooZuyNipikoG_FzfWCQYqeTy2xI4LCdbLap4TV_NK5cmC7ZQmE46h847dKTcuaLTRO7e2YIuq6HDySi0GrXc-EPPXxMA8h7S6Ouo1TsC47WrKwWokQMNpSDqNaLT91NoWOxUhwMLV4hKOeqs7U8pffNByXPFw" alt=""><figcaption><p>Connected Successfully</p></figcaption></figure>
{% endtab %}

{% tab title="Using EWS" %}
Pre-requisite: Server Address, Domain name, Port number, Impersonation Account.

Administrator must enter the prerequisites mentioned above and click save & test connection button. Domain is required if the Impersonation account username does not have an email domain in it. This protocol is used mostly for on-premises Exchange systems.&#x20;

If the test connection is successful, a message will appear, and the Mailboxes section will be visible.

![](https://lh5.googleusercontent.com/PwPbk2ZWmzstWzpxgKyCCRoOCwNwG1PDbZBTCrmLHrWFzHplvWfFPi_Mtf4dVltOG7w3JnBzctVDhyCgAuCjMlKomRCX0Ts8-W1CoI2FYW89vaiPel5FxMsZS2ewufOg98_lbq0nG8U2zOvN9aShHJkGjMPoKYp5RcPFy9tk2CrtnPrKOP_Xj-JrVh7JaQ)

Otherwise, a failed connection message will be displayed. In case connection fails please check the details entered and try again. For help in setting up an Impersonation Account, click [here](https://help.solar-archive.com/configuring-an-impersonation-account/).

![](https://lh6.googleusercontent.com/-TWoEZm1hBr3PNMbtzN8S9QiTOZjHJAHM33p6yjDbnBj-p5ieFmeewccgpJmTx7xfCyYMngI3Yc2sOsM1fEseB2AjE4-vBfLYNZWwwxhuJE76d8wtM62y6PAt7LT0cnq1Df-klkjfaKhgejlom1tAaeOGb0QSuuH7Dy4U-UJ05XCGukFGUud9Db3FUOHug)<br>
{% endtab %}

{% tab title="Using IMAP" %}
Prerequisite: Server Address, Domain name, Port number, App password or Google Service Account.

Administrator must enter the prerequisites mentioned above and click save & test connection button. This protocol is mostly used for Google mailboxes. There are 2 ways of accessing emails from Google in this case.

1. [Google Service Account](https://cloud.google.com/iam/docs/service-accounts#what_are_service_accounts): A service account is a special kind of account used by an application to make authorized API calls. [It is different from a user account](https://cloud.google.com/iam/docs/service-accounts#differences_between_a_service_account_and_a_user_account). While using this, a service account key {Type: JSON} is required to validate the account.<br>
2. [Sign in with App passwords](https://support.google.com/accounts/answer/185833): For normal user accounts where service accounts are not present, a user can create an app password for accessing mail in any 3rd party application. This app password is required here to import emails from the mailbox. <br>

<figure><img src="https://lh4.googleusercontent.com/kARy6ANNvCaQ8JPCLxTJorH3e-VTv0-s80DFcCMaTe2keFHytE3-LpxtahPS9EYs0rkTge9aoWEeV91sFPVjHVakeMP8r4oVkAuM5aw3rZ9QHrn5tsXAJSgR1rHwtS5IJRE_p9lnIsslBb2fAgCB1PI1YylbZp6y_bs9KKRLjBqoo_koscyruFoqE754XA" alt=""><figcaption></figcaption></figure>

NOTE: In case of IMAP connection, test connection always fails until a mailbox is added to the connection.
{% endtab %}

{% tab title="Using POP3" %}
Pre-requisite: Server Address, Domain name, Port number, App password.

Administrator must enter the pre-requisites mentioned above and click save & test connection button. This protocol is also mostly used for Google mailboxes.

<figure><img src="https://lh3.googleusercontent.com/4e_qnFXgmkrZDis2JEbOj5yi7VxW0Wnlc7Z2AQbblRgls86D1igpk7UrWeWbyarHMvTBUzrIo1tGaExJVD6SdCXMEJDaR2lODvpWdEYpaNO70dT3VcJWWS0Apedf6krZXRBxOjb4DavzV9yerOqMKbqTCbSbC6mtFO2YP9hO5E5qtZ7HjqB5YVPf9MnEAw" alt=""><figcaption><p>POP3 Connection</p></figcaption></figure>

This protocol has not been well tested yet.
{% endtab %}
{% endtabs %}

### 3. Select Import Settings

In this section, administrators can alter the import settings based on the requirement.

<figure><img src="https://lh3.googleusercontent.com/aPl7EzLfbwmZPEYvgkHNCEUHYckiHPrnvX22uHNng2zchcBcLzTEx4Xf8fZkjtGHgEJ44yeuc6l3C1MzVniW_bI3P69Ydz25w_VBQiDVE24RR1_XPpKHzsfEp8KFw7WTXdnBjfOo2UTWpN5caYNCpL9BEBDipJ29wJNy2nxguoYV1igSchuFSElE38g8kw" alt=""><figcaption><p>Import Settings Panel</p></figcaption></figure>

Multiple options are present for configuration here like&#x20;

1. Include folders
2. Exclude folders
3. Selection range (Date period based)
4. Idle alert period (time since last mail downloaded)
5. Archive and Public folder download

### 4. Choose Mailboxes

This section provides configuration to add mailboxes for the connection. There are 3 ways provided here for the import of mailboxes.

{% tabs %}
{% tab title="From Office365" %}
Import Mailboxes via Office 365: This option automatically fetches the mailboxes from OAuth connection that is provided in the connection details above. After successful fetch operation, it displays a message stating the number of email addresses found and added.<br>

!\[Graphical user interface, application

Description automatically generated]\(<https://lh5.googleusercontent.com/rv_4cG1Go6tB6TSFc6kItnXplZTAG5OO1my3ql2vg7Mk_B7ADqOxK2SyowMahyk6fctrVC8qaUCT5moQ2j0ISOslfJa8nbQDvBrh0tJmGTs2AlwtNVu3VU_kfKAhMzhaO3uxaMrGPOQx6HHwI-g7H24luZEoyONfxYTiiOTofUY10RlZYROXa1QOfb2iwg>)

![](https://lh6.googleusercontent.com/WZztM2S3q7Y7xSuP7vkKwcS0UBehhtxF3BpUkrTNQYoHk-UKuprUzJfxXoc3uKQBtur4deIKuPPzaoF0lLssHIrRghlZg8WgsEBdzaO622PXvdTRrG5tZ6k2YyFydnJmVASweQh2kZjn8eET8XTPfg5HzIf90z4axoI6AwsICLuXB3ae_oZPcSLKwG0bgQ)
{% endtab %}

{% tab title="From LDAP" %}
This option automatically fetches the users from configured LDAP server. LDAP server being configured is a pre-requisite for this option.
{% endtab %}

{% tab title="From CSV" %}
This option uses a CSV file and fetches all the users mentioned in it. Specific formatting is required for uploaded CSV, an example CSV link is provided in the section.

![](https://lh5.googleusercontent.com/p0Vt1ZnSeKrGj-L-WxW2bzTi4H4-VSm3Q2MG7WxYowwPeCCLYDVY_Id_LbAtg635oSHQo2yJy8Ib7CalVe0n9TNdR3Ve9rBqDxqPQbokvH0uwrMTv-hElIcZ7YsYVmtWvc12uGHkzi-OoY6KoJp9JjR2rgKY5kQB-HvkpaCSuG9NoR_yfpWQP4simtmz0A)
{% endtab %}
{% endtabs %}

### 5. Confirm & Start

This last section is for acquiring consent from the administrator to try and connect to mailboxes configured above. On clicking the Start Mailbox Reader button, the Import process will be started.

<figure><img src="https://lh6.googleusercontent.com/8pRNj-o4JLspXwQuLeBNW5smiTNWQwLu7HHOenItjd9Sa81LKNCdSN-DIoPyC-Eqa5n_OPE9b22BOwQLterEQ_3D9zXvBqIWJ52swF4Lb0D8uUJYpIf671Rxq1eLlSbJrVvSwpviW9IUIR0H6mjkOiT9__oSJU-XK6jC0bbi_hz6ZK1LQkaGlCmaH-FeKA" alt=""><figcaption><p>Confirm Mailbox Reader</p></figcaption></figure>
