mirror of
https://github.com/bokysan/docker-postfix.git
synced 2025-09-08 15:34:46 +08:00
The postfix configuration was a bit too permissive with `mynetworks`. This commit: - adds `reject` at the end of `*restrictions` list - adds tests for this feature
16 lines
No EOL
752 B
Docker
16 lines
No EOL
752 B
Docker
ARG ALPINE_VERSION=latest
|
|
FROM alpine:${ALPINE_VERSION}
|
|
LABEL maintaner="Bojan Cekrlic - https://github.com/bokysan/docker-postfix/"
|
|
|
|
RUN true && \
|
|
apk add --no-cache --upgrade cyrus-sasl cyrus-sasl-plain cyrus-sasl-login && \
|
|
apk add --no-cache postfix && \
|
|
apk add --no-cache opendkim && \
|
|
apk add --no-cache --upgrade ca-certificates tzdata supervisor rsyslog musl musl-utils bash opendkim-utils && \
|
|
(rm "/tmp/"* 2>/dev/null || true) && (rm -rf /var/cache/apk/* 2>/dev/null || true)
|
|
RUN apk add --no-cache bash bats && \
|
|
(rm "/tmp/"* 2>/dev/null || true) && (rm -rf /var/cache/apk/* 2>/dev/null || true)
|
|
|
|
WORKDIR /code
|
|
ENTRYPOINT ["/usr/bin/bats"]
|
|
CMD ["-v"] |