19 lines
542 B
Docker
19 lines
542 B
Docker
FROM alpine:3.21
|
|
|
|
RUN apk add --no-cache postfix openssl
|
|
|
|
COPY main.cf /etc/postfix/main.cf
|
|
COPY master.cf /etc/postfix/master.cf
|
|
COPY outbound_header_checks /etc/postfix/outbound_header_checks
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
RUN chmod 0644 /etc/postfix/main.cf /etc/postfix/master.cf \
|
|
/etc/postfix/outbound_header_checks && \
|
|
chmod 0755 /entrypoint.sh && \
|
|
mkdir -p /var/spool/postfix/pid
|
|
|
|
EXPOSE 25
|
|
|
|
HEALTHCHECK --interval=10s --timeout=3s --retries=5 \
|
|
CMD postfix status >/dev/null 2>&1 || exit 1
|
|
|
|
CMD ["/entrypoint.sh"]
|