mail (3)

Published 2025-06-16 00:54:39 +10:00 by Zi Gao

Installation

docker pull git.mightycastle.net/zimgao/mail:3
sha256:8423aa7c64c46eeb3184f68107c203443be6e3e362fc1b10b2dc5ace7fa0d52c

Image layers

# debian.sh --arch 'amd64' out/ 'bookworm' '@1747699200'
LABEL maintainer=Zi Gao<zi@mightycastle.net>
LABEL version=4.0
ARG DEBIAN_FRONTEND=noninteractive
RUN |1 DEBIAN_FRONTEND=noninteractive /bin/sh -c apt-get update && apt-get install -qy --no-install-recommends dovecot-imapd dovecot-lmtpd dovecot-ldap dovecot-fts-xapian postfix postfix-ldap postfix-policyd-spf-python procps opendkim opendkim-tools opendmarc cron rsyslog zstd python3 nano && rm -rf /var/lib/apt/lists/* /var/log/*.log /usr/share/doc/* /usr/share/info/* /usr/share/linda/* /usr/share/lintian/overrides/* /usr/share/man/* /etc/cron.daily/* /etc/cron.d/* # 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; mkdir -p /etc/opendkim; mkdir -p /var/spool/postfix/opendmarc; chown opendmarc:opendmarc /var/spool/postfix/opendmarc -R; chmod 750 /var/spool/postfix/opendmarc/ -R; adduser postfix opendmarc; postmap /etc/postfix/virtual; python3 -m compileall /tmp/pyscript; mv /tmp/pyscript/__pycache__/mail-setup.*.pyc /usr/local/bin/mail-setup.pyc; rm -rf /tmp/pyscript; chown root:root /etc/dovecot/*; chmod 0600 /etc/dovecot/*; chmod 777 /tmp; # buildkit
WORKDIR /root
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]

Labels

Key Value
maintainer Zi Gao<zi@mightycastle.net>
version 4.0
Details
Container
2025-06-16 00:54:39 +10:00
9
OCI / Docker
linux/amd64
98 MiB
Versions (1) View all
3 2025-06-16