postfix/Dockerfile

28 lines
744 B
Docker
Raw Normal View History

2017-09-22 12:32:42 +00:00
FROM registry.gitlab.com/thallian/docker-confd-env:master
2016-07-06 09:42:10 +00:00
RUN apk add --no-cache postfix postfix-ldap libressl spamassassin-client libstdc++ g++ make tar libmilter-dev
2016-07-11 10:39:42 +00:00
2017-09-25 09:15:34 +00:00
RUN addgroup -g 2222 access
RUN addgroup postfix access
2016-07-11 10:39:42 +00:00
RUN mkdir /tmp/spamass-milter
2017-06-13 10:37:27 +00:00
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
2016-07-11 10:39:42 +00:00
WORKDIR /tmp/spamass-milter
RUN ./configure && make && make install
2016-07-11 11:00:44 +00:00
RUN rm -rf /tmp/spamass-milter
2016-07-11 10:51:49 +00:00
WORKDIR /
2016-07-06 09:42:10 +00:00
2016-07-11 11:21:44 +00:00
RUN mkdir /var/run/spamass-milter
RUN chown postfix:postfix /var/run/spamass-milter
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:43:59 +00:00
RUN apk del g++ make tar
2016-07-11 10:39:42 +00:00
2016-07-06 09:42:10 +00:00
EXPOSE 25 587
VOLUME /etc/ssl/mail
ADD /rootfs /