HUB
Sign inSign up

ricariel/dovecot

By ricariel

•Updated 4 days ago

Client tool image (bash, ldapsearch, jq, curl) for jobs next to Dovecot. No Dovecot since 3.x.

Image
0

50K+

ricariel/dovecot repository overview

⁠Dovecot client tools image

Docker Pulls

A small tool image for jobs that work next to a Dovecot⁠ server without running inside it, such as a sync of mailbox ACLs from directory groups through the doveadm HTTP API. It contains no Dovecot.

Based on debian:13-slim, it carries:

  • bash, coreutils, sed, mawk, findutils
  • ldapsearch and the other ldap-utils, for directory lookups
  • curl and jq, to talk JSON to the doveadm HTTP API
  • ca-certificates, for LDAPS and HTTPS

The build runs apt-get upgrade, and the latest release tag is rebuilt every Monday (05:15), so Debian security fixes reach the image without a new release.

The image runs as uid and gid 1000 by default (the vmail account of the Dovecot images). It works with a read-only root filesystem, all capabilities dropped and a writable /tmp.

⁠Version 3

Up to 2.x this image was a Dovecot server image (on dovecot/dovecot:2.4.x-root from 2.0, Dovecot 2.3 before). Since 3.0 Dovecot itself runs from the upstream image dovecot/dovecot without root, and this image only holds the client tools that the upstream image lacks. Do not use 3.x as a Dovecot server; the last server image is 2.3.0.

⁠Usage

docker run --rm -i --read-only --tmpfs /tmp ricariel/dovecot:<version> bash -s < script.sh

In Kubernetes, run the job with runAsUser: 1000, readOnlyRootFilesystem: true and an emptyDir on /tmp.

⁠Tests

tests/run.sh tools builds the image and checks every tool under that security context (docker or podman, CONTAINER_ENGINE picks one). IMAGE points the tests at an image that is built already.

⁠Contributing

Contributions are welcome! Please feel free to submit a pull request. This project uses pre-commit to enforce code style and quality.

⁠Security dashboard

The issue "Security Dashboard" lists the open CVE findings in the image built here, for every environment that runs it, with checkboxes: open an issue, ignore, snooze, request a check, start a rebuild. The weekly CVE scan writes the rows; the workflow .forgejo/workflows/security-dashboard.yaml (pyrox/actions/security-dashboard) executes a ticked box right away. It needs the secrets SECURITY_DASHBOARD_TOKEN and SECURITY_DASHBOARD_KEY.

⁠License

This project is licensed under the MIT License - see the LICENSE⁠ file for details.

Tag summary

Content type

Image

Digest

sha256:093f133cb…

Size

43.7 MB

Last updated

4 days ago

docker pull ricariel/dovecot