Comments only, no behaviour changed. Each main.cf/master.cf parameter the
build sets, the wrapper's and the reload hook's reliance on Postfix 3.7.11
(postfix-script, master.5, postconf.5, cleanup_init.c, smtpd_peer.c,
README_FILES), supervisor 4.2.5 (process.py, options.py, events.rst),
logrotate 3.21.0, OpenDKIM's config, Cyrus SASL's sasldb, rspamd 3.11.1
(milter_headers.lua, multimap, the map watcher), Docker Compose, CoreDNS
and certbot now say where that is written. Measurements already there stay
measurements ("date not recorded" where none was); hand-composed fixtures
say so.
Contradictions left for their own commits: C-P31 cleanup's size limit,
C-P42 master outside supervisor's signal, C-V5/V6 startsecs, C-V10,
C-S3/Q3 sasldb written in place, C-Q4/A1 certbot's symlinks, C-R7 rspamd
skips local clients but the signature routine does not, C-P8, C-R4, C-R12,
C-M7, C-E2, C-K8/K9, C-D1.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
30 lines
1.5 KiB
Docker
30 lines
1.5 KiB
Docker
# SMTP sink-MX for the e2e stand (plan C.4): accepts any mail on 25 and dumps
|
|
# each transaction to its own file under /mail, so the test harness can read
|
|
# the raw received message (headers + body, including the DKIM-Signature
|
|
# Postfix/OpenDKIM added) straight off disk. smtp-sink ships in the postfix
|
|
# package itself — no new dependency.
|
|
FROM debian:bookworm-slim
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
RUN echo "postfix postfix/mailname string localhost" | debconf-set-selections \
|
|
&& echo "postfix postfix/main_mailer_type string Internet Site" | debconf-set-selections \
|
|
&& apt-get update \
|
|
&& apt-get install -y --no-install-recommends postfix \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN mkdir -p /mail
|
|
WORKDIR /mail
|
|
|
|
# -d: one file per transaction (a pseudo-random suffix is appended
|
|
# automatically), so the harness just watches the directory for a new file
|
|
# instead of parsing a shared multi-message dump. Binding :25 needs root, and
|
|
# smtp-sink refuses to run as root without an explicit -u to switch to after
|
|
# binding — "-u root" satisfies that check while staying root throughout,
|
|
# which is fine here: throwaway container, isolated e2e network, never
|
|
# exposed. (Postfix 3.7.11, src/smtpstone/smtp-sink.c: -d "Dump each mail
|
|
# transaction to a single-message file" named by the template plus "a
|
|
# pseudo-random hexadecimal number"; main(): "-u option is required if running
|
|
# as root".)
|
|
ENTRYPOINT ["/usr/sbin/smtp-sink"]
|
|
CMD ["-u", "root", "-d", "/mail/%Y%m%d%H%M%S.", "0.0.0.0:25", "100"]
|