21 lines
635 B
Docker
21 lines
635 B
Docker
FROM debian:buster-slim
|
|
LABEL maintainer "Mauro Torrez <mauro@mau.ro>"
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
ENV LC_ALL C
|
|
RUN echo "_dev_null: /dev/null" > /etc/aliases \
|
|
&& apt-get update && apt-get install -y --no-install-recommends \
|
|
postfix \
|
|
postfix-pcre \
|
|
postfix-ldap \
|
|
postfix-sqlite \
|
|
libsasl2-modules \
|
|
ssl-cert \
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
&& cp /usr/share/postfix/main.cf.debian /etc/postfix/main.cf \
|
|
&& mkdir -p /ssl && chmod 700 /ssl \
|
|
&& cp /etc/ssl/certs/ssl-cert-snakeoil.pem /ssl/cert.pem \
|
|
&& cp /etc/ssl/private/ssl-cert-snakeoil.key /ssl/key.pem \
|
|
|
|
VOLUME /etc/postfix /ssl
|
|
CMD postfix start-fg
|