postfix/Dockerfile
Sebastian Hugentobler ff7c871d8e update milter url
2017-06-13 10:37:27 +00:00

25 lines
669 B
Docker

FROM quay.io/thallian/confd-env:latest
RUN apk add --no-cache postfix postfix-ldap syslog-ng spamassassin-client libstdc++ g++ make tar libmilter-dev
RUN mkdir /tmp/spamass-milter
RUN wget -qO- https://download.savannah.gnu.org/releases/spamass-milt/spamass-milter-0.4.0.tar.gz | tar -xz -C /tmp/spamass-milter --strip 1
WORKDIR /tmp/spamass-milter
RUN ./configure && make && make install
RUN rm -rf /tmp/spamass-milter
WORKDIR /
RUN mkdir /var/run/spamass-milter
RUN chown postfix:postfix /var/run/spamass-milter
RUN chown root /var/spool/postfix/
RUN chown root /var/spool/postfix/pid
RUN apk del g++ make tar
EXPOSE 25 587
VOLUME /etc/ssl/mail
ADD /rootfs /