# Connect Office 365 mailbox

### Prerequisites

* Tenant permissions in mluvii
* An existing [shared email account](https://portal.office.com/AdminPortal/Home?#/SharedMailbox)
* An existing user with access to the given mailbox. This user has all rights to the mailbox (it is used to log in to the mailbox via OAuth)

{% hint style="danger" %}
***The user has to have access at least to "IMAP" and "Authenticated SMTP" options. In order to check it, click on the "Manage email apps" item in the particular user account detail.***
{% endhint %}

<figure><img src="https://2503272169-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk7qHNgmhjqfQcnjtzG64%2Fuploads%2FQyCh30iRh9OxLp3avPB7%2FManageEmailApps_Office365_en.png?alt=media&#x26;token=1ad28795-4342-4299-add5-648880cd985f" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
*Don't forget to enable the ability to send emails as another user ("SendAs") for the user account used for MS Identity purposes!*
{% endhint %}

### Settings in mluvii

As a tenant (and higher) administrator, go to tenant settings (Settings -> Applications -> Microsoft identity) and click the ***Add*** button.

When you create a new identity, you will be redirected to a Microsoft page where you need to log into Microsoft Azure (**use the user account with full mailbox permissions**) and agree to the settings that mluvii requires to properly receive and send an email.

<figure><img src="https://2503272169-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk7qHNgmhjqfQcnjtzG64%2Fuploads%2FOHhP3PILdCK9cPZRXnEQ%2Fnew-mailbox-general-CZ.png?alt=media&#x26;token=51f9c9ad-cc47-4362-bdb1-b8d3873e5cb6" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2503272169-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk7qHNgmhjqfQcnjtzG64%2Fuploads%2F81QZrCa3kQ0gEUpqFBK3%2Fnew-mailbox-connection-EN.png?alt=media&#x26;token=272f0c92-4396-4770-be2f-3799ca252b94" alt=""><figcaption></figcaption></figure>

### Connecting a mailbox established identity

When connecting email in mluvii, select *Office 365* to see a list of available Microsoft Identities.

<figure><img src="https://2503272169-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk7qHNgmhjqfQcnjtzG64%2Fuploads%2FzvEBwaARKhoM2PPXInZY%2Fmluvii-nastaveni-email-inbox-en.png?alt=media&#x26;token=44c54df6-28df-4aec-b9ba-e920754f500b" alt=""><figcaption></figcaption></figure>
