exim-docker/Dockerfile
Wolfgang Hottgenroth a666ec8452
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci script
2024-12-10 13:27:12 +01:00

34 lines
750 B
Docker

FROM debian:bookworm
LABEL Maintainer="Wolfgang Hottgenroth <woho@hottis.de>"
LABEL ImageName=""
# domain to be used in sender address of sent mails
ENV LOCALMAILNAME=""
# smarthost to send mail to
ENV SMARTHOST=""
# recipient addresses for root aliases, separate multiple addresses by space
ENV ROOT=""
# ip addresses or networks to allow for relaying, separate multiple ones by semicolon
ENV RELAYNETS=""
RUN \
apt update && \
apt upgrade -y --autoremove && \
apt install -y exim4-daemon-light ca-certificates curl && \
rm -rf /var/lib/apt/lists/*
COPY update-exim4.conf.tmpl /etc/exim4/
COPY aliases.tmpl /etc/exim4/
COPY adjust-config.sh /etc/exim4/
COPY start.sh /etc/exim4/
WORKDIR /etc/exim4
EXPOSE 25
CMD [ "./start.sh" ]