On 3 June 2017 at 14:01, Wietse Venema <wie...@porcupine.org> wrote: > Marek Kozlowski: > [ Charset ISO-8859-2 converted... ] > > On 06/03/2017 02:13 PM, Wietse Venema wrote: > > >>> Canonical maps replace headers or envelopes before the entire message > > >>> is received. Milters replace/add/delete envelope or content after > > >>> the entire message is received. > > >> > > >> I'm not quite sure if I understand the term you use: `before/after the > > >> entire message is received'. I'd really appreciate any clarification. > > >> BTW: Is there any way to change the order? > > > > > > To answer the first question, 'before' refers to events that happen > > > earlier than 'after'. Changing the order requires time travel or > > > the ability to predict the future. The second question makes no > > > sense at this point in time. > > > > ;-))) > > > > My question regarded: `the entire message is received'. With the stress > > on `entire'. I thought that local receives a message as a whole. You > > answer suggested that it receives messages partially. Some part, than > > the canonical starts working then the rest and then a milter operates? > > Perhaps surprisingly, Postfix uses the same Milter support > for mail received from the network and from local submission. > Mail in the postdrop queue is not received. It is waiting > to be received by the Postfix mail system. > > Wietse >
Time travel is one way to change the order (i.e. process milter before canonical_maps), but couldn't it also be done by re-injection? Time travel sounds more fun though, please provide working example.