SnappyMail webmail on PHP 8.6 and Apache: signed release, non-root, rebuilt and tested weekly
609
SnappyMail webmail in one image: the official
php:8.6-apache image, the PHP extensions SnappyMail uses, and the newest
SnappyMail release.
1016 E470 7914 5542 F8BA 1335 4820 8BA1 3290 F3EB); the build fails otherwise.www-data (uid 82) on port 8080, never as root.Source, full documentation and the hardened compose file: https://github.com/ebal/SnappyMail_Container
mkdir -p data && sudo chown 82:82 data
docker run -d --name snappymail -p 8080:8080 \
--read-only --tmpfs /tmp --tmpfs /run/apache2 --tmpfs /run/lock \
--cap-drop ALL --security-opt no-new-privileges:true \
-e TZ=UTC -v "$PWD/data:/var/lib/snappymail" \
3bal/snappymail:latest
Open http://<host>:8080/?admin once, then read the admin password:
sudo cat data/_data_/_default_/admin_password.txt
| Tag | Moves? | Content |
|---|---|---|
latest | yes | Newest SnappyMail release on the newest PHP 8.6 image |
<snappymail>-php8.6, e.g. 3.1.3-php8.6 | yes, for PHP and Debian updates | One SnappyMail release |
<snappymail>-php8.6-YYYYMMDD | no | One build, for a rollback |
| Path / variable | Purpose |
|---|---|
/var/lib/snappymail | Settings, domains, contacts, logs. Must belong to uid 82. Back it up. |
TZ | Time zone of PHP, default UTC |
port 8080 | HTTP. Behind a reverse proxy, Apache takes the client address from X-Forwarded-For for private ranges and 100.64.0.0/10. |
The data folder of djmaze/snappymail works as is (same path, same uid 82).
The files of the source repository are BSD-3-Clause. SnappyMail is AGPL-3.0; PHP and Apache have their own licenses.
docker pull 3bal/snappymail:latest