2016-07-06 09:42:10 +00:00
|
|
|
FROM thallian/confd-env:latest
|
|
|
|
|
2016-07-11 10:39:42 +00:00
|
|
|
RUN apk add --no-cache postfix postfix-ldap rsyslog spamassassin-client g++ make
|
|
|
|
RUN apk add --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted libmilter-dev
|
|
|
|
|
|
|
|
RUN mkdir /tmp/spamass-milter
|
|
|
|
RUN wget -qO- http://download.savannah.gnu.org/releases/spamass-milt/spamass-milter-0.4.0.tar.gz | tar -xz -C /tmp/spamass-milter
|
|
|
|
WORKDIR /tmp/spamass-milter
|
|
|
|
RUN ./configure && make && make install
|
|
|
|
RUN rm -rf /tmp/spamass-milter
|
2016-07-06 09:42:10 +00:00
|
|
|
|
2016-07-06 12:14:32 +00:00
|
|
|
RUN chown root /var/spool/postfix/
|
|
|
|
RUN chown root /var/spool/postfix/pid
|
|
|
|
|
2016-07-11 10:39:42 +00:00
|
|
|
RUN apk del g++ make
|
|
|
|
|
2016-07-06 09:42:10 +00:00
|
|
|
EXPOSE 25 587
|
|
|
|
|
|
|
|
VOLUME /etc/ssl/mail
|
|
|
|
|
|
|
|
ADD /rootfs /
|