FROM debian:bookworm LABEL Maintainer="Wolfgang Hottgenroth " 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" ]