Thanks Viktor!
On Monday, May 18, 2026 at 07:23:20 PM GMT+2, Viktor Dukhovni via
Postfix-users <[email protected]> wrote:
On Mon, May 18, 2026 at 01:20:36PM +0000, Pedro David Marco via Postfix-users
wrote:
> Your statement that “header and body checks run first, then milters”
> is very clear, but the MILTER_README.html seems to suggest that
> processing occurs before queueing, and I had interpreted that as
> implying that milters run before cleanup/header_checks in the flow.
The cleanup daemon also runs pre-queue. Post queue means "during
delivery", once the message enters the active queue, and is at some
point later handed off to a delivery agent.
> My understanding was consistent with the documentation in the sense
> that if I modify the From: header using header_checks, the milters
> would still see the original From: value rather than the modified one.
No, that's not the case. The milter sees the original ENVELOPE sender,
but the From: header seen by milters is actually the one modified by
cleanup.
Cleanup creates the queue file, writing the headers and body. Then
invokes milters, one after another, recording any modifications
requested by the milters, and running milter_header_checks. (I would
guess just once after all the milters are done, but haven't checked that
detail).
--
Viktor. 🇺🇦 Слава Україні!
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]