fixed postfix configuration

This commit is contained in:
andreas
2023-04-07 15:45:32 +00:00
parent 1bdf801fac
commit d5f5750911
34 changed files with 1024 additions and 605 deletions

View File

@@ -1,8 +1,16 @@
# syntax=docker/dockerfile:1
FROM alpine:latest
# syntax=docker.io/docker/dockerfile:1.5.2
FROM ubuntu:20.04
# install apt packages
ENV TZ Europe/Berlin
RUN apk add --no-cache postfix spamassassin rsyslog logrotate xz
RUN <<EOF
apt-get update
apt-get install -y postfix
# cleanup
apt-get autoclean
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* ~/.cache ~/.npm
echo zntrl.de >>/etc/mailname
EOF
COPY etc/postfix/ /etc/postfix/
COPY --chmod=0775 entrypoint.sh /entrypoint.sh
EXPOSE 25
VOLUME /var/spool/postfix