Roundcube 1.6 Is Running Out of Road. I Migrated a Docker Install to 1.7 and Found the Leftovers.
Roundcube says its 1.6 branch "will be discontinued rather soon," after six security releases in six months with 72 fixes between them. I upgraded a Docker install from 1.6.21 to 1.7.6, checked what carried over, and tested why 1.7 now refuses to run unless the web server points at public_html.
Self-hosted email gets all the attention for the mail server: DNS records, spam filtering, deliverability. The webmail sitting in front of it is usually whatever came with the stack, often Roundcube, and nobody upgrades it until something breaks. Since May, Roundcube has shipped a security release every three to six weeks.
The November 9 release, 1.6.21 and 1.7.6, came with a warning: "The 1.6 branch is four years old. Please, plan your upgrade to 1.7 soon. Backporting security patches became increasingly time consuming, annoying and error prone. 1.6 will be discontinued rather soon." No date. I ran the upgrade on a Docker install and kept notes on everything that didn't come over clean.
Why Roundcube 1.6 Users Should Upgrade to 1.7
Roundcube 1.7.0 came out on May 10, and 1.6 moved to security-only maintenance. Since then, every release has fixed security bugs in both branches. I counted the "Fix" lines in each release post's security section:
| Release | Date | Security fixes |
|---|---|---|
| 1.6.16 / 1.7.1 | May 24 | 8 |
| 1.6.17 / 1.7.2 | July 5 | 6 |
| 1.6.18 / 1.7.3 | August 9 | 10 |
| 1.6.19 / 1.7.4 | September 6 | 12 |
| 1.6.20 / 1.7.5 | October 19 | 19 |
| 1.6.21 / 1.7.6 | November 9 | 17 |
That's 72 fixes in six months, and the count is rising. November's 17 include Sieve script injection, IMAP command injection through a CRLF in _uid, two server-side request forgery filter bypasses (via nip.io-style hostnames and 6to4 addresses), two CSRF validation bypasses, and passing untrusted attachment content to ImageMagick.
The reason the project wants out of 1.6 is in the warning: every fix has to be written twice. Once 1.6 stops getting backports, a self-hosted 1.6 is on its own.
Who's still on 1.6:
| Source | Roundcube version | Notes |
|---|---|---|
| Debian 13 (trixie) | 1.6.21 | The security repository. The base release shipped 1.6.18 |
| Debian 12 (bookworm) | 1.6.5 + backported fixes | Debian patches its own older version |
| Debian unstable (sid) | 1.6.21 | No 1.7 package yet, even in sid |
Mailu, master branch |
1.6.21 | Its webmail image downloads the 1.6.21 release |
roundcube/roundcubemail:latest |
1.7.6 | Docker's latest moved to 1.7 |
If you run Roundcube from Debian's packages or through Mailu, you can't move to 1.7 with a package update yet. You're relying on Debian or Mailu to keep 1.6 patched after the upstream backports stop.
What 1.7 Breaks
From the 1.7.0 release notes and changelog:
- PHP 8.1 or newer is required.
- MS SQL Server and Oracle databases are no longer supported.
public_html/is the mandatory entry point, and static files are served throughpublic_html/static.php.- The
apccache driver is removed, replaced byapcu. - The
contact_search_nameoption is removed, replaced bycontactlist_name_template. - The password plugin's virtualmin driver is removed, described as "(insecure)."
smtp_lognow defaults tofalse.
We recommend reading Self-Hosted Email in 2026: Mailcow vs Mailu vs Stalwart — Which Mail Server Should You Trust? to continue reading our selection of content. Mailu bundles Roundcube and mailcow bundles SOGo, and that comparison covers the rest of what those stacks ship.
Self-Hosted Email in 2026: Mailcow vs Mailu vs Stalwart — Which Mail Server Should You Trust? Compare Mailcow, Mailu, and Stalwart for self-hosted email in 2026. Explore security, performance, resource usage, scalability, deliverability, and deployment. SudoSecurity · Ayush
I wrote a pre-check for those, to run against a 1.6 install before upgrading. It's my own script, and it only reads files:
#!/bin/sh
# Flag settings in a Roundcube 1.6 install that 1.7 removed or changed.
# Usage: rc17-precheck.sh /path/to/roundcube
R=${1:-.}; C="$R/config/config.inc.php"
php -r 'exit(version_compare(PHP_VERSION, "8.1.0", ">=") ? 0 : 1);' \
&& echo "ok PHP $(php -r 'echo PHP_VERSION;') meets 1.7's 8.1 minimum" \
|| echo "FIX PHP $(php -r 'echo PHP_VERSION;') is older than 8.1, which 1.7 requires"
grep -Eq "db_dsnw'\]\s*=\s*'(sqlsrv|oci|mssql)" "$C" && echo "FIX database is SQL Server or Oracle, which 1.7 dropped"
grep -Eq "_cache'\]\s*=\s*'apc'" "$C" && echo "FIX a cache uses 'apc', which 1.7 removed (use 'apcu')"
grep -Eq "contact_search_name" "$C" && echo "FIX contact_search_name is gone (use contactlist_name_template)"
grep -Eq "password_driver'\]\s*=\s*'virtualmin'" "$R"/plugins/password/config.inc.php 2>/dev/null && echo "FIX password plugin uses the removed virtualmin driver"
grep -Eq "smtp_log'\]\s*=\s*true" "$C" || echo "note smtp_log now defaults to false; set it to true if you rely on logs/sendmail"
echo "note point the web server's document root at $R/public_html"
Against a test config that used all four removed features, it printed:
ok PHP 8.4.27 meets 1.7's 8.1 minimum
FIX database is SQL Server or Oracle, which 1.7 dropped
FIX a cache uses 'apc', which 1.7 removed (use 'apcu')
FIX contact_search_name is gone (use contactlist_name_template)
FIX password plugin uses the removed virtualmin driver
note smtp_log now defaults to false; set it to true if you rely on logs/sendmail
note point the web server's document root at /tmp/t/public_html
It's a grep, not a parser, so it catches the common spellings only. The smtp_log line matters if you use logs/sendmail.log as an audit trail of sent mail. That log stops being written after the upgrade unless you turn it back on.
Why public_html Is Now Mandatory
Roundcube's install directory holds things a browser should never see: config/, logs/, SQL/, bin/, vendor/, the changelog and composer.lock. For years the protection was an .htaccess file with deny rules. That only works if Apache honors .htaccess. Debian's stock apache2.conf sets AllowOverride None for /var/www/, and nginx never reads .htaccess at all.
I tested what that means. I took the 1.6.21 Docker image, pointed Apache's document root at the install directory instead of public_html, and turned off .htaccess processing for /var/www/ the way stock Debian Apache has it. Then I requested files that should never be served:
| Path | .htaccess honored |
.htaccess ignored |
|---|---|---|
/logs/errors.log |
403 | 200, file contents |
/CHANGELOG.md |
403 | 200, exact version on line 3 |
/composer.lock |
403 | 200, every dependency version |
/SQL/sqlite.initial.sql |
403 | 200, full schema |
/bin/update.sh |
403 | 200 |
/composer.json |
403 | 200 |
/config/config.inc.php |
403 | 200, empty (PHP runs it) |
The config files didn't leak, because PHP executes them and they print nothing. The error log did, and Roundcube writes it to logs/errors.log by default. The changelog and lock file hand an attacker your exact version and every library in it, which tells them which of those 72 fixes you're missing.
On 1.7.6 with the same broken setup, the same files were readable, but Roundcube itself stopped working. The root index.php is now a single exit():
exit('Please, configure your HTTP server to point to the /public_html directory (with fallback to /public_html/index.php.');
That's the real change. 1.6 let you run with a document root that exposed files. 1.7 refuses to run until you fix it. Once the document root is public_html, those paths are outside what the web server serves. On my upgraded install they all returned 403 or 404.
One detail for nginx users: 1.7 loads its CSS and JavaScript through URLs like static.php/skins/elastic/styles/styles.min.css. That path after .php has to reach PHP, so a location ~ \.php$ block that only matches URLs ending in .php won't serve the skin.
The Docker Upgrade, Step by Step
The official image keeps the Roundcube files in a volume at /var/www/html and the SQLite database at /var/roundcube/db. On start, its entrypoint checks whether Roundcube is already in the volume. If it is, it runs bin/installto.sh from the new version against it, then composer install. Upgrading means changing the tag.
I started roundcube/roundcubemail:1.6.21-apache with SQLite, added a user, an identity and a contact directly to the database, stopped it, and started 1.7.6-apache on the same two volumes. The log showed the schema migration:
Executing database schema update.
Updating database schema for roundcube (2022100100)... [OK]
Updating database schema for roundcube (2025092300)... [OK]
This instance of Roundcube is up-to-date.
Afterward, the database reported schema version 2025092300, with 18 tables instead of 17, and the user, identity and contact were all there. The login page loaded and served its skin through static.php. Three things weren't clean:
The old .htaccess stayed. The log ended the file copy with:
NOTICE: New public_html/.htaccess file saved as public_html/.htaccess.new.
The upgraded volume kept 1.6's public_html/.htaccess, a symlink to the old root .htaccess with 1.6's rewrite rules. A fresh 1.7.6 install has no root .htaccess at all. The visible symptom was small: /favicon.ico returned 404 on the upgraded install and 200 on a fresh one. The fix:
# replace "roundcube" with your container's name
docker exec roundcube sh -c 'cd /var/www/html/public_html && rm .htaccess && mv .htaccess.new .htaccess'
After that, /favicon.ico returned 200.
Composer printed a wall of warnings. composer install complained that the lock file didn't match composer.json and listed eight packages. It looked alarming. When I compared the installed packages in the volume with the image's own copy of 1.7.6, both had the same 34 packages at the same versions, so nothing was actually out of date.
The PHP inside is behind. Both 1.6.21-apache and 1.7.6-apache, and latest, carried PHP 8.4.27 when I pulled them. That's the release before PHP's November 19 security update, 8.4.28. Roundcube's own docs explain why: full version tags like 1.7.6 "just represent the version and base image at the time of the release. These tags do not receive any updates." Use the rolling 1.7.x-apache tag, which the project describes as "continuously updated with versions of the according release series and updates to the base images." It was built the same day as 1.7.6-apache, with the same digest, so it also had 8.4.27 when I checked. Check php -v after its next rebuild.
We recommend reading How to Install NGINX on Debian & Ubuntu: Server Blocks, HTTPS and Reverse Proxy to continue reading our selection of content. On nginx, pointing the root at public_html is a server-block change, and that guide covers server blocks.How to Install NGINX on Debian & Ubuntu: Server Blocks, HTTPS and Reverse Proxy Install NGINX on Debian or Ubuntu, open the firewall, set up server blocks, add free HTTPS with Certbot and run NGINX as a reverse proxy. SudoSecurity · Santhdium
Before and After, in Order
- Back up the volume or install directory, and the database.
- Run the pre-check against your 1.6 config and fix anything marked
FIX. - Docker: switch the image to
roundcube/roundcubemail:1.7.x-apacheand start it. Tarball: unpack 1.7.6 somewhere else and runbin/installto.sh /path/to/roundcube. - Point your document root at
public_html. The Docker image already does this. - Replace
public_html/.htaccesswith the.htaccess.newthe upgrade left behind. - Log in, open a message, check the address book, and send a test mail.
- Confirm the version on the About page, and remember that anything you installed through composer will be reinstalled by the entrypoint.
What This Doesn't Cover
I tested the official Docker image with SQLite and no real mail server. I didn't test MySQL or PostgreSQL backends, third-party plugins, LDAP address books, or a tarball install on bare metal. My data was one seeded user, not a real mailbox history. The exposure test is a simulation of stock Debian Apache inside the Roundcube image, not a scan of real servers.
I didn't reproduce any of the 72 security bugs, and none are described here beyond their published titles. Mailu's and Debian's plans for 1.7 aren't covered. I only checked what they shipped on November 19.
The Actual Point
Roundcube is telling you, in plain words, that 1.6 is about to stop getting fixes, in a year when it needed 72 of them. The upgrade itself was uneventful: two schema steps and the data carried over. Plan for the leftovers: the old .htaccess, the smtp_log default, and the PHP version inside your image.
The public_html rule is the security improvement worth having. 1.6 would run happily while serving your error log and dependency list to anyone. 1.7 won't run at all until the web server is set up right.
Release dates, fix lists and quotes are from the roundcube.net news posts for 1.6.21 and 1.7.6, 1.7.0 and the four releases between them. The breaking changes are from the 1.7.0 post and the CHANGELOG.md and docs/UPGRADING.md shipped in the 1.7.6 image. Docker tag behavior is quoted from the roundcubemail-docker README. Package versions are from the Debian security tracker, and the Mailu version is from its webmails/Dockerfile on master. The pre-check script is original shell, and the index.php line is reproduced from the 1.7.6 image. Every upgrade log line, HTTP status and package count is reproduced from runs on November 19 and 20, 2026 with roundcube/roundcubemail:1.6.21-apache and 1.7.6-apache pulled from Docker Hub.
$ tail -f /forums
Discussion
Comments live on the community forums — sign in there to reply.