Stalwart - A Modern complete suite Email Server
Introduction
Stalwart is an open-source mail and collaboration server designed for the modern internet. Stalwart supports a wide range of protocols including JMAP, IMAP4, POP3, SMTP, CalDAV, CardDAV, and WebDAV, making it a comprehensive solution for managing email, calendars, contacts, file storage, and more. Built in Rust, Stalwart is engineered to be secure, fast, robust, and scalable, capable of running everything from small personal mail servers to large, distributed enterprise deployments.
Stalwart offers a variety of services, storage systems, authentication methods and scalability strategies. We're not covering everything here but just being able to run the service with several usages.
Installation
Stalwart is available as a Docker image, to make it easy to install, we'll use it:
Quick setup
We're going to setup a simple setup with a single user and a single domain.
Create a domain
Setup ACME TLS
Create a user
Configuration
Routes: forward emails
This is a simple feature we can find in Postfix, unfortunately, Stalwart doesn't support this feature out of the box (yet? in version 0.12, it's not available). Instead we have to use the routes feature and Sieve scripts to forward emails to a specific address.
Here is the way to proceed:
- Create a user to use the route (
userhere who has the[email protected]email address) - Prepare the Sieve script to forward emails to a specific address:
|
- Update the
routesconfiguration to use the Sieve script.
===
Relay host
In order to avoid managing the server reputation, we can use a relay host.
===