FROM docker.io/debian:12-slim RUN apt-get update \ && apt-get install -y --no-install-recommends \ postfix \ && rm -rf /var/lib/apt/lists/* COPY main.cf /etc/postfix/ EXPOSE 25 587