On Thu, Jun 09, 2022 at 01:53:39PM -0400, Wietse Venema wrote: > Viktor Dukhovni: > > On Thu, Jun 09, 2022 at 09:19:11AM -0400, Wietse Venema wrote: > > > > > Below is the order of how Postfix receives email. Steps with "*" > > > are logged with -v or with -v -v, other steps are logged only when > > > they fail. > > > > > > * repeat: receive header and send header to milter > > > > > > * send 'end of headers' to milter > > > > > > receive body > > > > I was under the impression (not yet backed by code inspection) that > > milter content processing does not begin until the message body is > > received in its entirety. And I'd na?vely expect the second milter > > (...) to only see the headers/body after the previous milter is done > > processing both. > > Correct. First the entire message is received. Then the MIME processor > walks over file and sends headers or body chunks to the 'current' > milter. Then repeat the previous sentence for the next milter.
So in that case, "smtpd_end_of_data_restrictions" actions would I think run *before* milter header/body processing... -- Viktor.