Overview
Stalwart offers support for multiple database and storage backends. The choice of backend depends primarily on the scale and distribution of your mail server setup.
The following table summarizes the backend options available for each store type:
| Data store | Blob store | Search store | In-memory store | |
|---|---|---|---|---|
| RocksDB | ✅ | ✅ | ✅ | ✅ |
| FoundationDB | ✅ | ✅ | ✅ | ✅ |
| PostgreSQL | ✅ | ✅ | ✅ | ✅ |
| MySQL / MariaDB | ✅ | ✅ | ✅ | ✅ |
| SQLite | ✅ | ✅ | ✅ | ✅ |
| S3/MinIO | ✅ | |||
| Azure Blob Storage | ✅ | |||
| Filesystem | ✅ | |||
| ElasticSearch | ✅ | |||
| Meilisearch | ✅ | |||
| Redis | ✅ |
It’s important to note that the support for each of these databases is compiled directly into the Stalwart binary. Therefore, to switch to certain backends such as FoundationDB, you’ll need to utilize a different binary, corresponding to the desired backend(s).