# First steps After installing, the web UI walks you through setup. The **Overview** page shows a checklist of what is left to do. ## 1. Create the break-glass administrator The first visit asks for the **setup token** the installer printed, then a username, a password (14 characters or more) and an authenticator app. You get **recovery codes** once: store them safely. This account is for emergencies, when Microsoft 365 sign-in is unavailable. Create a second one for another person later (**Users**). ## 2. Connect your Microsoft 365 tenant Go to **Administration → Microsoft 365 tenant** and choose **Connect tenant**. You get a code to enter at Microsoft's sign-in page, on any device. Sign in as a **Global Administrator** and accept the permissions. Mail Safehouse then creates its own app registrations in Entra ID (no portal work needed): - **Backup**: reads what is backed up. - **Restore**: writes restored items back. - **Sign-in**: Microsoft sign-in for this web UI. You get the Admin role; assign others in Entra under *Enterprise applications → Mail Safehouse – Sign-in → Users and groups*. If your tenant blocks device code sign-in with Conditional Access, exclude the admin from that policy for a few minutes. Enabling another module later asks you to run **Update permissions** the same way. ## 3. Choose modules **Modules** lists what can be backed up: Exchange Online (mail, calendars, contacts, tasks), OneDrive and Entra ID. Turn on the ones you want. ## 4. Set up backup storage **Administration → Backup storage** creates an encrypted repository. Choose a **passphrase**: it encrypts every backup, and **if it is lost the backups cannot be read**. Download the **recovery kit** and keep it offline, away from Microsoft 365. By default backups go in the Docker volume `mailsafehouse_backup-repo` (under `/var/lib/docker/volumes/`). To use another disk, see {doc}`maintenance`. ## 5. Create a backup job **Jobs → New job** chooses the modules and users to back up, the repository and the schedule (for example every night, or every few hours). The first run copies everything; later runs store only what is new or changed. Watch progress from the bell at the top. ## 6. Alerts and retention - **Notifications**: who gets an email when a backup fails or a security-relevant setting changes in Entra ID. - **Retention**: how long backups are kept (for example 7 years). Anything still in Microsoft 365 is always kept; holds keep a mailbox's backups regardless. Next: {doc}`backup-restore`.