FROM debian:bookworm-slim RUN apt-get update && apt-get install -y --no-install-recommends \ postfix \ libsasl2-modules \ opendkim \ opendkim-tools \ rsyslog \ && rm -rf /var/lib/apt/lists/* COPY postfix/main.cf /etc/postfix/main.cf COPY opendkim/opendkim.conf /etc/opendkim.conf COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh EXPOSE 25 ENTRYPOINT ["/entrypoint.sh"]