Debian trixie with postfix, postfix-pgsql, postfix-policyd-spf-python and tini. The image ships only the binaries: main.cf, master.cf and the pgsql map files are mounted by the deployment. Built for a Kubernetes mail pod next to a Dovecot container (LMTP and SASL over unix sockets in a shared volume), but nothing in it is Kubernetes-specific.
postfix check, then postfix start-fg under tini. When main.cf sets maillog_file, a background loop rotates it daily with postfix logrotate followed by postfix reload.
| Path | Content |
|---|---|
/etc/postfix/main.cf | your main.cf (read-only) |
/etc/postfix/master.cf | your master.cf (read-only) |
/etc/postfix/pgsql/*.cf | pgsql map files, readable by the postfix user (proxymap) |
/var/spool/postfix | the queue (persistent volume) |
/etc/mail-tls | certificate and key for smtpd_tls_* (optional path) |
Ports: EXPOSE 25 465 587; PROXY-protocol listeners are configured in master.cf like any other service.
trixie-slim (the Debian base) and latest.
Content type
Image
Digest
sha256:eea85d04f…
Size
60 MB
Last updated
3 days ago
docker pull xomoxcc/postfix-pgsql