1234567891011121314151617181920212223242526 |
- FROM docker.io/alpine:3.18.4
- ARG POSTFIX_PACKAGE_VERSION=3.8.2-r0
- ARG MOZILLA_CA_CERT_STORE_PACKAGE_VERSION=20230506-r0
- RUN apk add --no-cache \
- ca-certificates=$MOZILLA_CA_CERT_STORE_PACKAGE_VERSION \
- postfix=$POSTFIX_PACKAGE_VERSION \
- && postconf -evv tls_append_default_CA=no `
- RUN postconf -F | grep -E '^postlog/unix-dgram/service = postlog$' \
- && postconf -evv maillog_file=/dev/stdout \
- && postfix check
- VOLUME /var/spool/postfix
- EXPOSE 25/tcp
- COPY postfix.sh /
- CMD ["/postfix.sh"]
|