~dricottone/container-images

ref: bae25e4edce890d731319f5c0e0896db7bfde8ee container-images/postfix/Dockerfile.tls-in -rw-r--r-- 523 bytes
bae25e4eDominic Ricottone Postfix redesign 1 year, 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM docker.io/library/alpine:latest

COPY aliases /etc/postfix/aliases
COPY master.cf /etc/postfix/master.cf
COPY main.cf.tls-in /etc/postfix/main.cf

COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

RUN mkdir /etc/postfix/sasl && chmod 700 /etc/postfix/sasl
COPY smtpd.conf /etc/postfix/sasl/smtpd.conf

RUN addgroup -S mailer
RUN adduser -SD -s /bin/sh -G mailer -g mailer mailer

RUN apk add --no-cache postfix cyrus-sasl

EXPOSE 25
EXPOSE 465

ENTRYPOINT ["/entrypoint.sh"]

CMD ["postfix", "start-fg"]