# Administration ๐Ÿ•ต๏ธโ€โ™‚๏ธ

## Database Access ๐Ÿ“‚

To access the database, use the following command:

```bash
docker-compose exec -it database mysql -u root -D mailu -p
```

## Container Access ๐Ÿ–ฅ๏ธ

To access the front container, use this command:

```bash
docker-compose exec -it front /bin/bash
```

## Restarting Services ๐Ÿ”„

To restart all services, use the following command:

```bash
docker-compose restart
```

## Resending Queued Mails โœ‰๏ธ

To resend queued mails, use this command:

```bash
docker-compose exec -it smtp postqueue -f
```

# Testing ๐Ÿงช

Use the following tools for testing:

- [SSL-Tools Mailserver Test](https://de.ssl-tools.net/mailservers/)
- [TestEmail.de](http://testemail.de/)

# Updates ๐Ÿ”„

For instructions on updating your Mailu setup, follow the official [Mailu maintenance guide](https://mailu.io/master/maintain.html).

# Queue Management ๐Ÿ“ฌ

To manage the Postfix email queue in Mailu, you can use the following commands:

- **Display the email queue**:

  ```bash
  docker compose exec -it smtp postqueue -p
  ```

- **Delete all emails in the queue**:

  ```bash
  docker compose exec -it smtp postsuper -d ALL
  ```