> This series follows Wietse's suggestion to let bounce(8) provide the
> normal cleanup(8) service with evidence that a message was generated by
> the local MTA.
>
> There is no separate cleanup service, master.cf entry, Milter protocol
> version, or main.cf parameter. bounce(8) adds a private record to the
> ordinary cleanup record stream. cleanup(8) accepts the record only on
> the internal code path used by bounce(8), verifies that the new message
> has a null sender, and exposes the evidence through two opt-in Milter
> macros:
>
> {postfix_dsn_evidence}=postfix-dsn-evidence-v1
> {postfix_dsn_original_envelope}=<unpadded base64url>
>
> The second macro encodes a bounded, versioned binary record containing
> the original envelope sender and recipients. The macros are transient:
> they are neither read from untrusted cleanup clients nor stored in queue
> files. A Milter receives them only when it requests the macro names in
> the normal negotiation and is configured as a non_smtpd_milter.
>
> Malformed, duplicate, incomplete, and non-null-sender evidence is
> rejected. The cleanup regression test covers these cases. Existing
> bounce tests cover the evidence-bearing notification path. The MILTER
> README source and generated text and HTML forms document the interface,
> format, trust boundary, and compatibility behavior.
>
> The same two changes apply to the official Postfix 3.11.6 release. That
> series passed an Alpine/Linux build, cleanup and bounce regression tests,
> an eight-case Postfix-to-Milter qualification run, and a production
> positive/negative DSN mailflow qualification. The positive case delivered
> a locally generated, DKIM2-signed DSN; a public SMTP null-sender message was
> delivered without acquiring local-DSN authority.
>
> As requested, messages 1/2 and 2/2 contain deterministic `gzip | base64`
> output instead of the uncompressed diffs. Decode each body with:
>
> base64 -d | gzip -dc
>
> Christian Roessner (2):
> bounce: pass DSN origin evidence through cleanup
> milter: expose local DSN origin evidence
>
> README_FILES/MILTER_README | 32 +++++-
> html/MILTER_README.html | 38 +++++++
> proto/MILTER_README.html | 38 +++++++
> src/bounce/Makefile.in | 12 ++-
> src/bounce/bounce_notify_service.c | 9 +-
> src/bounce/bounce_notify_util.c | 100 +++++++++++++++++
> src/bounce/bounce_notify_util_tester.c | 10 +-
> src/bounce/bounce_notify_verp.c | 9 +-
> src/bounce/bounce_one_service.c | 9 +-
> src/bounce/bounce_service.h | 5 +
> src/bounce/bounce_warn_service.c | 9 +-
> src/cleanup/Makefile.in | 1 +
> src/cleanup/cleanup.h | 1 +
> src/cleanup/cleanup_envelope.c | 36 +++++++
> src/cleanup/cleanup_envelope_test.c | 143 +++++++++++++++++++++++++
> src/cleanup/cleanup_milter.c | 10 ++
> src/cleanup/cleanup_state.c | 3 +
> src/global/cleanup_strflags.c | 1 +
> src/global/cleanup_user.h | 1 +
> src/global/mail_proto.h | 1 +
> src/global/post_mail.c | 52 ++++++++-
> src/global/post_mail.h | 2 +
> 22 files changed, 490 insertions(+), 32 deletions(-)
>
> --
> 2.55.0
>
Christian Rößner
--
Rößner-Network-Solutions
Zertifizierter ITSiBe / CISO
Marburger Str. 70a, 36304 Alsfeld
Mobil: +49 171 9905345
USt-IdNr.: DE225643613, https://roessner.website
PGP fingerprint: 658D 1342 B762 F484 2DDF 1E88 38A5 4346 D727 94E5
_______________________________________________
Postfix-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]