base-trixie: the image on Debian trixie, Postfix 3.10.13; Received: hidden on 465/587
test / test (push) Canceled after 0s
test / test (push) Canceled after 0s
The runtime base is debian:trixie-slim, the build stage golang:1.26-trixie:
Postfix 3.10.13 with upstream's 2026 security fixes up to the August
batch, libmilter 8.18.1, OpenSSL 3.5. Every citation of another program in
code, scripts and documents was re-read against the trixie sources
(dev/upstream; bookworm's kept in dev/upstream-bookworm) and updated;
development.md's cited-package table holds the trixie versions.
What the re-reading changed in behaviour:
- logtail: reject lines with sasl_method/sasl_username/sasl_sender
(smtpd_check.c:1019-1026); cleanup's "removed (canceled)" forgets a
port-25 id (cleanup_api.c:363-364).
- internal/postfix/retry.go reads postconf's stdout only: since 3.9 a
deprecated-parameter warning on stderr made one value too many and the
panel fell back to the compiled-in retry policy.
- logrotate-loop.sh: logrotate 3.22 exits 1 when it ignores a config;
the loop refuses on that output whatever the status.
- postfix-config.sh: cyrus_sasl_config_path set explicitly (bookworm's
07_sasl_config.diff is gone); maillog_file_permissions=0640; mynetworks
explicit; Dockerfile: SYNC_CHROOT= in /etc/default/postfix,
opendkim-tools dropped, openssl named, systemd-standalone-sysusers so
cron does not bring the whole of systemd.
- The selfpost group is 10998, outside the system range 100-999: in
trixie a package took 998 and the build failed (owner's decision:
a conflict-free id, the distribution's own ids untouched). The
entrypoint hands /data back by name when the user or the group differs.
Guide, backup refusal text, help (design commit 68ec8b2), e2e.
- smtpd_hide_client_session=yes on smtps and submission (owner's
decision): Received: names no client, TLS, login or protocol; port 25
keeps the full header. e2e checks both.
- test/upstream/opendkim-probe.sh makes keys with openssl genrsa.
Tests: on the server, make e2e exit 0 (674 s, the image built on trixie),
go vet + go test 27 packages ok. CHANGELOG [Unreleased], guide,
architecture.md, security.md, roadmap.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+18
-6
@@ -218,6 +218,14 @@ operator can act on it.
|
||||
|
||||
- **Not an open relay** — SASL only on 465/587; `reject_unauth_destination`;
|
||||
`smtpd_sender_login_maps` + `reject_sender_login_mismatch`.
|
||||
- **A recipient does not learn where an application runs (`2.7.0`).** The
|
||||
`Received:` header Postfix adds on 465 and 587 carries no client name,
|
||||
address, HELO name, TLS details or login (`smtpd_hide_client_session=yes`,
|
||||
the owner's decision of 2026-10-15): before, every message told its
|
||||
recipients the address and the internal host name of the machine the
|
||||
application sent from. What a complaint needs stays with the operator - the
|
||||
queue id in the header, the panel's log and smtpd's `client=` line in
|
||||
mail.log. Port 25 keeps the full header, as RFC 5321 requires of an MTA.
|
||||
- **An application signs only as itself (`2.4.0`).** OpenDKIM chooses the
|
||||
key by the `From:` header and Postfix holds only the envelope sender
|
||||
against the login, so until `2.4.0` an application of one sending domain
|
||||
@@ -264,12 +272,16 @@ operator can act on it.
|
||||
on inbound. An optional antispam milter is inbound-only; default action is
|
||||
fail-open (`accept`). Since `2.6.1` the listener ends DATA only at the
|
||||
standard `<CR><LF>.<CR><LF>` (`smtpd_forbid_bare_newline=normalize`, the
|
||||
2023 SMTP-smuggling defence, which Postfix 3.7 leaves off by default): a
|
||||
2023 SMTP-smuggling defence, which Postfix 3.7 left off by default): a
|
||||
`.` line next to a bare newline is body, and what a smuggler would put
|
||||
behind it is delivered as part of the one message, not read as a second
|
||||
transaction. The submission ports keep the default - there a smuggled
|
||||
transaction is still the authenticated session's, under its sender
|
||||
bindings and milters ([own-mta-builds](own-mta-builds-2026-10-15.md) § 5).
|
||||
transaction. The submission ports keep the default. Since `2.7.0` the
|
||||
image runs Postfix 3.10.13, whose default is `normalize` too (Postfix 3.9
|
||||
and later; `src/global/mail_params.h`, `DEF_SMTPD_FORBID_BARE_LF`), so
|
||||
they end DATA the same way; the port-25 setting stays explicit. Before
|
||||
`2.7.0` a smuggled transaction on a submission port was still the
|
||||
authenticated session's, under its sender bindings and milters
|
||||
([own-mta-builds](own-mta-builds-2026-10-15.md) § 5).
|
||||
- **The panel's milters judge every message of a connection.** Postfix
|
||||
introduces a client to a milter once per connection, and the milter library
|
||||
replaces the milter's session after any reply that is not "continue". Until
|
||||
@@ -303,7 +315,7 @@ operator can act on it.
|
||||
parsed from `mail.log` from the head of the line, with the reply ending at
|
||||
Postfix's own `; from=<` so that the HELO name after it - the client's text,
|
||||
which Postfix logs with non-printable characters and ` <>()\";@` turned into
|
||||
`?` (Postfix 3.7.11, src/smtpd/smtpd.c `helo_cmd()`) - cannot stand in for
|
||||
`?` (Postfix 3.10.13, src/smtpd/smtpd.c `helo_cmd()`) - cannot stand in for
|
||||
the sender, the recipient or the reply; an address with a quote, a bracket or a space in it is not kept.
|
||||
Only a recipient at an inbound domain makes a row. The journal is cut to
|
||||
10 000 rows every 500 rows the tailer writes, and by age every six hours.
|
||||
@@ -524,7 +536,7 @@ deferred item from the roadmap.
|
||||
§ Roles.
|
||||
- **Level-2 in-flight reservations can outlive a broken SMTP session until TTL.**
|
||||
Postfix tells the milters ABORT when a client drops the connection
|
||||
mid-transaction (Postfix 3.7.11, src/smtpd/smtpd.c `mail_reset()` ->
|
||||
mid-transaction (Postfix 3.10.13, src/smtpd/smtpd.c `mail_reset()` ->
|
||||
`milter_abort()`), and the journal milter releases the reservation then.
|
||||
When that never arrives - smtpd killed, the milter connection lost - go-milter
|
||||
has no close callback, and the in-memory reservation is released by TTL
|
||||
|
||||
Reference in New Issue
Block a user