bulwark

bulwark

Docker app from Tajniak81's Repository

Overview

A modern, self-hosted webmail client for Stalwart Mail Server, built with Next.js and the JMAP protocol. JMAP Webmail built for the 21st Century. A modern, self-hosted email client for Stalwart Mail Server powered by the JMAP protocol. Email, calendar, contacts and files. Fast, private, and open source. https://bulwarkmail.org https://github.com/bulwarkmail/webmail

Bulwark: webmail for Stalwart Mail Server. Mail, calendar, contacts and files in one browser client.

latest release  docker: ghcr.io/bulwarkmail/webmail  license: AGPL v3  Discord members

Website · Documentation · Live demo · Releases · Discord

Bulwark Webmail is a self-hosted webmail client for Stalwart Mail Server. It talks to Stalwart over JMAP and puts mail, calendar, contacts and files behind one login, with one set of settings and one admin dashboard.

Bulwark inbox on a laptop, with the same message open on a phone

Contents

Screenshots

Calendar week view with events from several calendars Contact details with recent mail and upcoming events
Calendar week view  ·  Contact details with recent mail and upcoming events

Rich-text composer next to the message list The inbox split diagonally between the light and dark theme
Composer with identities and formatting  ·  Light and dark themes

Features

  • Mail: threading, unified inbox, cross-account views, full-text search, Sieve filters, S/MIME, templates, scheduled send
  • Calendar: month, week, day and agenda views, recurring events, iMIP invitations, CalDAV subscriptions
  • Contacts: several address books, groups, vCard import and export
  • Files: Stalwart's JMAP file storage, with previews, sharing and folder upload

All four share single sign-on and 2FA, multiple accounts, 27 languages, PWA install and web push, themes, plugins and keyboard shortcuts. The full list is on the All features page.

There are two editions. The full edition runs as a Node.js server and adds the admin dashboard, OAuth, plugins and settings sync. Bulwark Lite is the same client as static files, served by any web host or by Stalwart itself.

Quick start

docker run -d -p 3000:3000 ghcr.io/bulwarkmail/webmail:latest

Then open http://localhost:3000. A setup wizard asks for your Stalwart server and an admin password. The installation guide has the details, and Stalwart setup covers the mail server side.

Other ways to install

Method Guide
Docker Compose Compose
Behind a reverse proxy or on a sub-path Reverse proxy
From source, without Docker Manual install
Lite on any static host Static hosting
Lite as a container Container image
Lite served by Stalwart Install on Stalwart

Updating explains how to move to a new version.

Container images and release files from 1.12.0 on come with a signed build provenance attestation. To check that one was built by this repository's workflows, run gh attestation verify oci://ghcr.io/bulwarkmail/webmail:<version> --owner bulwarkmail for an image, or gh attestation verify <file> --repo bulwarkmail/webmail for a downloaded file. Release files also have a .sha256 next to them.

Configuration

Most installs are set up in the wizard on first launch and changed later in the admin dashboard. You can also use environment variables, which fit read-only or immutable deployments better. When both set the same key, the value saved in the admin config wins, so an environment variable only fills in what the admin config leaves unset.

JMAP_SERVER_URL=https://mail.example.com
APP_NAME=My Webmail
Topic Guide
Overview, config files and precedence Configuration
Every variable Environment reference
OAuth2 / OIDC and single sign-on Authentication, Embedded SSO
Several JMAP servers, custom endpoints Multi-server deployments, Custom endpoints
Branding, logos, per-domain branding Customization
Anonymous telemetry (off by default) Anonymous usage stats

Documentation

All documentation is at bulwarkmail.org/docs:

The pages are Markdown files in the website repository. Send corrections there.

Development

git clone https://github.com/bulwarkmail/webmail.git
cd webmail
npm install
cp .env.dev.example .env.local   # built-in mock JMAP server, no mail server needed
npm run dev
npm run typecheck
npm run lint
npx vitest run             # unit tests
npm run test:integration   # Stalwart in Docker + Playwright

The contributing guide covers tests, translations, code style and pull requests. Architecture explains how the code is organized.

The stack: Next.js 16 and React 19, TypeScript, Tailwind CSS v4, Zustand, Tiptap, next-intl, Tabler Icons, and our own JMAP client (RFC 8620). Tests run on Vitest and Playwright.

Use of AI

AI tools are part of how Bulwark is developed. A change is held to the same standard whether a person or a tool wrote it: it has to be understood, reviewed and pass the checks and tests before it is merged.

Bulwark itself has no AI features and doesn't send your mail, contacts, calendar or files to an AI service. If your Stalwart server classifies spam with an LLM, Bulwark shows the verdict, but the classification happens on your server.

Contributors can use AI tools too, as long as they use capable, current models and not small or outdated ones. The contributing guide explains what we expect.

Community and support

License

GNU AGPL v3 only, with an additional permission to distribute apps built from this code through app stores such as the Apple App Store and Google Play. The permission is provisional until every earlier contributor has agreed to it (consent request); contributions made since 30 September 2026 are already covered. This repository preserves the original MIT attribution for the fork lineage in NOTICE.

Acknowledgments

Thanks to root-fr/jmap-webmail and @ma2t for the groundwork this project builds upon.

Categories

Related apps

Explore more like this

Explore all

Details

Repository
ghcr.io/bulwarkmail/webmail:latest
Last Updated2026-10-16
First Seen2026-05-02

Runtime arguments

Web UI
http://[IP]:[PORT:3000]/
Network
bridge
Shell
sh
Privileged
false

Template configuration

WebUI PortPorttcp

Bulwark Webmail HTTP port

Target
3000
Default
3000
Value
3000
Settings DataPathrw

Persistent encrypted user settings storage

Target
/app/data/settings
Default
/mnt/user/appdata/bulwark/bulwark-settings
Value
/mnt/user/appdata/bulwark/bulwark-settings
Admin DataPathrw

Persistent admin and extension marketplace data

Target
/app/data/admin
Default
/mnt/user/appdata/bulwark/bulwark-admin
Value
/mnt/user/appdata/bulwark/bulwark-admin
HOSTNAMEVariable

Bind address. Use :: for dual-stack IPv6.

Default
0.0.0.0
Value
0.0.0.0
PORTVariable

Internal listen port for the Bulwark container

Default
3000
Value
3000
ADMIN_PASSWORDVariable

Admin password for Bulwark management features

APP_NAMEVariable

Application name shown in the UI

Default
Bulwark Webmail
Value
Bulwark Webmail
JMAP_SERVER_URLVariable

URL of the JMAP-compatible mail server

STALWART_FEATURESVariable

Enable Stalwart-specific features such as password changes and sieve filters

Default
true
Value
true
SESSION_SECRETVariable

Secret used to encrypt remembered sessions and synced settings. Generate with: openssl rand -base64 32

SETTINGS_SYNC_ENABLEDVariable

Enable encrypted server-side settings sync

Default
true
Value
true
SETTINGS_DATA_DIRVariable

Path inside the container where encrypted settings are stored

Default
./data/settings
Value
./data/settings
LOGIN_LOGO_LIGHT_URLVariable

Logo displayed on the login page in light mode

Default
/branding/Bulwark_Logo_Color.svg
Value
/branding/Bulwark_Logo_Color.svg
LOGIN_LOGO_DARK_URLVariable

Logo displayed on the login page in dark mode

Default
/branding/Bulwark_Logo_Color.svg
Value
/branding/Bulwark_Logo_Color.svg
LOGIN_COMPANY_NAMEVariable

Company or organization name shown on the login page

Default
Bulwark Webmail
Value
Bulwark Webmail
LOGIN_WEBSITE_URLVariable

Website link shown on the login page

Default
https://bulwarkmail.org
Value
https://bulwarkmail.org
EXTENSION_DIRECTORY_URLVariable

Bulwark extension marketplace URL

Default
https://extensions.bulwarkmail.org
Value
https://extensions.bulwarkmail.org