Collaborative inbox for La Suite territoriale
Documentation
Roadmap
Getting started
Reach outMessages is the all-in-one collaborative inbox for La Suite territoriale.
Messages is a full communication platform enabling teams to collaborate on emails through shared or personal mailboxes.
It features a MTA based on Postfix, a custom MDA built on top of Django Rest Framework and a frontend using Vite, TanStack Router and BlockNote.js.
To test Messages on your own machine, you only need a recent version of Docker and Docker Compose:
$ docker -v
Docker version 27.5.1, build 9f9e405
$ docker compose version
Docker Compose version v2.32.4⚠️ You may need to run the following commands with
sudobut this can be avoided by assigning your user to thedockergroup.
The easiest way to start working on the project is to use GNU Make:
$ make bootstrapThis command builds all required containers, installs dependencies, performs
database migrations and compiles translations. Later it's a good idea to run
make update each time you are pulling code from the project repository to avoid
dependency-related or migration-related issues.
Your Docker services should now be up and running
You can access the project by going to .
You will be prompted to log in. The default credentials are:
email: user{1,2,3}@example.local
password: user{1,2,3}This means you can use [email protected] / user1 for instance and switch users later to test collaboration.
In your development workflow, the main commands you should use are:
# Stop all containers
$ make stop
# Start all containers, without full bootstrap
$ make start
# View all available commands
$ make helpWhen running the project, the following services are available:
| Service | URL / Port | Description | Credentials |
|---|---|---|---|
| Frontend | http://localhost:8900 | Main Messages frontend | [email protected] / user1 |
| Backend API | http://localhost:8901 | Django REST API and Admin | [email protected] / admin |
| Keycloak | http://localhost:8902 | Identity provider admin | admin / admin |
| Celery UI | http://localhost:8903 | Task queue monitoring | No auth required |
| Mailcatcher | http://localhost:8904 | Email testing interface | No auth required |
| MTA-in (SMTP) | 8910 | Incoming email server | No auth required |
| PostgreSQL | 8912 | Database server | user / pass |
| Redis | 8913 | Cache and message broker | No auth required |
| OpenSearch | 8914 | Search engine | No auth required |
| OpenSearch PA | 8915 | Performance analyzer | No auth required |
| SOCKS Proxy | 8916 | SOCKS5 proxy | user1 / pwd1 |
| Mailcatcher (SMTP) | 8917 | SMTP server | No auth required |
| MPA (Rspamd) | 8918 | Spam filtering service | password |
The frontend API client is generated with Orval. It consumes the OpenAPI schema generated from the backend through drf-spectacular.
The JSON OpenAPI schema is located in
src/backend/core/api/openapi.json.
To update the schema then the frontend API client, run:
$ make api-updateYou can also generate the schema only with:
$ make api-update-backAnd the frontend API client only with:
$ make api-update-frontThere are a couple ways of testing the email infrastructure locally.
These examples use swaks, a simple command-line SMTP client.
…⚠️ Most residential ISPs block the outgoing port 25, so you might not be able to send emails to outside servers from your localhost. This is why the mailcatcher is so useful locally.
We'd love to hear your thoughts, and hear about your experiments, so come and say hi on Matrix.
This work is released under the MIT License (see LICENSE).
While Messages is a public-driven initiative, our license choice is an invitation for private sector actors to use, sell and contribute to the project.
This project is intended to be community-driven, so please, do not hesitate to get in touch if you have any question related to our implementation or design decisions.
We also have a public roadmap.
You can help us with translations on Crowdin.
If you intend to make pull requests, see CONTRIBUTING for guidelines.
Messages is currently led by the French ANCT for use in La Suite territoriale.
We are welcoming new partners and contributors to join us in this effort! So please get in touch if you want to help!
No open issues yet, or sync has not completed.