HUB
Sign inSign up

3bal/snappymail

By 3bal

•Updated 4 days ago

SnappyMail webmail on PHP 8.6 and Apache: signed release, non-root, rebuilt and tested weekly

Image
Web servers
0

609

3bal/snappymail repository overview

⁠SnappyMail

SnappyMail⁠ webmail in one image: the official php:8.6-apache image, the PHP extensions SnappyMail uses, and the newest SnappyMail release.

  • The SnappyMail download is checked against the SnappyMail release key (1016 E470 7914 5542 F8BA 1335 4820 8BA1 3290 F3EB); the build fails otherwise.
  • Apache runs as www-data (uid 82) on port 8080, never as root.
  • Works with a read-only root file system and no Linux capabilities.
  • Rebuilt every week with the newest SnappyMail release and the PHP and Debian updates, tested, and published only when something changed.

Source, full documentation and the hardened compose file: https://github.com/ebal/SnappyMail_Container⁠

⁠Quick start

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

⁠Tags

TagMoves?Content
latestyesNewest SnappyMail release on the newest PHP 8.6 image
<snappymail>-php8.6, e.g. 3.1.3-php8.6yes, for PHP and Debian updatesOne SnappyMail release
<snappymail>-php8.6-YYYYMMDDnoOne build, for a rollback

⁠Data and settings

Path / variablePurpose
/var/lib/snappymailSettings, domains, contacts, logs. Must belong to uid 82. Back it up.
TZTime zone of PHP, default UTC
port 8080HTTP. 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).

⁠License

The files of the source repository are BSD-3-Clause. SnappyMail is AGPL-3.0; PHP and Apache have their own licenses.

Tag summary
Recent tags
Content type
Image
Digest
sha256:f1dd43399…
Size
210.3 MB
Last updated
4 days ago
docker pull 3bal/snappymail:latest