What is Roundcube?
A webmail client is the honest way to self-host email on a shared platform: the mail server stays wherever deliverability lives (Fastmail, Gmail, your VPS Dovecot), and you own the interface - the part that holds your sessions, contacts, and habits. Roundcube has been the standard for two decades: folders, search, filters, address book, responsive Elastic skin.
This template runs it stateless on a managed Postgres (settings, contacts, caches), behind a thin proxy. Two variables point it at your provider; users log in with their own mailbox credentials.
The deliberately absent piece is stated, not hidden: no SMTP server ships here, because nothing on shared cloud IPs can credibly deliver port-25 mail. Client here, relay where it belongs - the same honest split as the listmonk template.
What you get
- Full webmail: folders, search, filters, contacts, HTML compose
- Works over any IMAP/SMTP provider (ssl:// and tls:// supported)
- Stateless on managed Postgres - settings and contacts in your DB
- Elastic responsive skin; plugins via env
- GPL, actively maintained official image
- Pairs with mailpit (dev) and listmonk (sending) for the full mail lane
How it runs on Lyngbak
| Service | Role | Public |
|---|---|---|
roundcube | webmail (:80, fixed) | no |
web | nginx :5000 -> roundcube:80 | yes |
db | Postgres - managed service on Lyngbak, container locally | no |
Before you deploy
IMAP_HOSTe.g. ssl://imap.fastmail.com
SMTP_SERVERe.g. tls://smtp.fastmail.com (the provider’s submission server)
Sizing and billing
PHP with a 128M limit per worker - 512 MiB carries a team. The managed Postgres holds everything worth keeping.
A resource is a flat monthly price, with RAM and disk add-ons when the stack needs a little more than a tier, and room for your own apps on a larger one. On Usage Billing each service takes the smallest size that fits it and is billed by the second it runs, so a stopped stack stops costing CPU and RAM. Its 5 GiB of volumes cost $0.15 per GiB a month ($0.75/mo) for as long as they exist. One workspace can use both. See pricing
Run it locally first
The same compose file runs with plain Docker Compose. Clone the template source, copy .env.example to .env, and run docker compose up -d.
Questions
Does this replace Fastmail or Google Workspace?
It replaces their web INTERFACE, not their servers: you keep paying your provider per user for the mailbox and deliverability, while the UI, session data, and contacts live on your infrastructure. Full mail-server self-hosting needs port 25 and IP reputation no shared platform can offer - this split is the honest one.
Can different users connect different providers?
The template sets one default IMAP host - right for a team on one provider. Multi-host setups go in a mounted config; for a true multi-account aggregator UX, Cypht is the upstream alternative worth a look.
Does Gmail work?
Yes, with an app password (or OAuth via plugin configuration): imap.gmail.com over ssl:// and smtp.gmail.com over tls://. Workspace accounts behave the same.