Analytics cookies only (Google Analytics, PostHog). No ad networks, no cross-site tracking. See our privacy policy.
Self-host Roundcube
updated Nov 2026deployed by usprices checked · Jul 2026Install verified on Ubuntu 26.04 · Nov 2026 · how we test
We earn commissions when you shop through the links below. Full disclosure →
A browser-based IMAP email client with an address book, folder management, message search, MIME support and a plugin system. It is webmail only, not a mail server: it connects to an IMAP server for reading mail and an SMTP server for sending, and keeps its own account metadata in a database. The Docker image ships it on Apache with SQLite, MySQL or PostgreSQL.
Pick Roundcube when you already have an IMAP and SMTP server (a host's mailboxes, Mailu, docker-mailserver or Stalwart) and only want a good browser interface for it: it is a webmail client, not a mail server, so it never receives or delivers mail itself. It offers an address book, folders, search, MIME handling and plugins, and is released under GPL-3.0 or later with exceptions for skins and plugins. Our snippet runs the official `apache` image pinned to `1.7.5-apache` with the default SQLite database in a volume, using the image's `ROUNDCUBEMAIL_DEFAULT_HOST` and `ROUNDCUBEMAIL_SMTP_SERVER` variables with example.com placeholders you must replace. We did not find an upstream RAM minimum, so our 256 MB floor is an estimate. The catalog's Mailcow ships SOGo and Mailu can bundle Roundcube or SnappyMail, so a standalone Roundcube fits docker-mailserver, Stalwart or a hosted mailbox.
What you need
Any VPS with at least 256 MB of RAM
A domain you control — most self-hosted setups need HTTPS in front of them
Paid link — we earn a commission if you shop through it.
Install
Run these commands on your server:
# Roundcube — webmail client for an existing IMAP/SMTP server — apache image with SQLite, pinned to 1.7.5-apachecat > docker-compose.yml <<'EOF'services: roundcube: image: roundcube/roundcubemail:1.7.5-apache restart: unless-stopped ports: - 8000:80 environment: ROUNDCUBEMAIL_DB_TYPE: sqlite ROUNDCUBEMAIL_DEFAULT_HOST: ssl://imap.example.com ROUNDCUBEMAIL_DEFAULT_PORT: 993 ROUNDCUBEMAIL_SMTP_SERVER: tls://smtp.example.com ROUNDCUBEMAIL_SMTP_PORT: 587 volumes: - roundcube_db:/var/roundcube/dbvolumes: roundcube_db:EOFdocker compose up -dtimeout 120 bash -c 'until curl -fsS http://localhost:8000/ >/dev/null; do sleep 3; done'# → http://SERVER_IP:8000 — replace imap.example.com / smtp.example.com with your mail host, then log in with a mailbox on it
The Roundcube Docker image's README flags these before you rely on the container:
non-negotiableRoundcube needs a reachable IMAP server and, for sending, an SMTP server. ROUNDCUBEMAIL_DEFAULT_HOST and ROUNDCUBEMAIL_SMTP_SERVER take a tls:// (STARTTLS) or ssl:// (SSL/TLS) prefix, and our snippet's imap.example.com and smtp.example.com placeholders will not log anyone in until you replace them and run docker compose up -d again.
non-negotiableBy default the image keeps account metadata in SQLite under /var/roundcube/db, which our snippet puts in a named volume. The README says to assess individually whether SQLite suits production, and recommends MySQL; ROUNDCUBEMAIL_DB_TYPE also accepts pgsql.
non-negotiableThe image listens on plain HTTP on port 80, and users type their mail passwords into the login page. Put it behind a TLS reverse proxy before exposing it; the README documents ROUNDCUBEMAIL_REQUEST_PATH for serving it under a sub-path behind one.
non-negotiableThe tag is pinned to 1.7.5-apache, and the image also publishes fpm and nonroot variants and floating tags. Plugins listed in ROUNDCUBEMAIL_PLUGINS default to archive,zipdownload, and extra composer plugins are installed on container start, so review them like any code you run.
Roundcube used 36 MB of RAM at idle on GCP e2-standard-2 · Ubuntu 26.04 LTS · Docker 29.9.3 (first boot, measured Nov 2026). We list a minimum of 256 MB.
Is the Roundcube install snippet verified?
The Roundcube install snippet is marked verified on Ubuntu 26.04 (Nov 2026).