mail (14)

Published 2026-02-14 10:06:30 +11:00 by Zi Gao

Installation

docker pull git.mightycastle.net/zimgao/mail:14
sha256:6615c7cfc045c1cd54a5942f1d67f8c62997f5f257a182a96bbc6baea643fe33

Image layers

# debian.sh --arch 'amd64' out/ 'trixie' '@1769990400'
LABEL maintainer=Zi Gao<zi@mightycastle.net>
LABEL version=14
ARG DEBIAN_FRONTEND=noninteractive
RUN |1 DEBIAN_FRONTEND=noninteractive /bin/sh -c set -eux; apt-get update; apt-get install -qy --no-install-recommends dovecot-imapd dovecot-lmtpd dovecot-ldap dovecot-flatcurve postfix postfix-ldap rspamd redis-server procps rsyslog zstd; rm -rf /var/lib/apt/lists/*; apt-get clean; sed -i 's|^\$manpage_directory|# &|' /etc/postfix/postfix-files; sed -i 's/# syslog-enabled no/syslog-enabled yes/' /etc/redis/redis.conf; sed -i 's/# syslog-facility local0/syslog-facility user/' /etc/redis/redis.conf; sed -i 's/# maxmemory <bytes>/maxmemory 64mb/' /etc/redis/redis.conf; sed -i 's/# maxmemory-policy noeviction/maxmemory-policy allkeys-lru/' /etc/redis/redis.conf; # buildkit
COPY data / # buildkit
RUN |1 DEBIAN_FRONTEND=noninteractive /bin/sh -c set -eux; echo "zi@gao.id.au" > /root/.forward; chmod 644 /root/.forward; postmap /etc/postfix/virtual; chown root:root /etc/dovecot/*; chmod 0600 /etc/dovecot/*; chown root:root /etc/rspamd/local.d/*; chmod 0644 /etc/rspamd/local.d/*; chmod 777 /tmp; touch /var/lib/rspamd/stats.ucl; chown _rspamd:_rspamd /var/lib/rspamd/stats.ucl; # buildkit
RUN |1 DEBIAN_FRONTEND=noninteractive /bin/sh -c set -eux; doveconf 1; # buildkit
WORKDIR /root
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]

Labels

Key Value
maintainer Zi Gao<zi@mightycastle.net>
version 14
Details
Container
2026-02-14 10:06:30 +11:00
52
OCI / Docker
linux/amd64
90 MiB
Versions (3) View all
14 2026-02-14
13 2026-01-30
3 2025-08-28