On Wed, Apr 09, 2025 at 04:13:40PM +0200, Gioele Pannetto via Postfix-users wrote: > On 09/04/25 15:50, Viktor Dukhovni via Postfix-users wrote: > > You have a choice between running milters while the SMTP client is still > > waiting for a response, and therefore being able to reject some > > recipients or the entire message, and running milters *after* the > > message is accepted (a.k.a. "post-queue" content-inspection), which > > can happen after virtual alias rewriting has taken place. > > > > Which if these do you want more, pre-queue (ability to return SMTP > > 5XX responses), or post-queue (ability to handle rewritten recipients)? > > > For this use case a post-queue milter is more suitable. By the way, are you > referring to non_smtpd_milters?
No, you'd actually need to arrange a "content_filter"-style internal delivery, but not actually have any sort of SMTP proxy in the middle, but just deliver the message to a re-injection port where a second Postfix smtpd(8) would run the desired milter(s). You'd then probably not enable any milters on the first hop, in either smtpd or cleanup, and in particular therefore use separate cleanup services for the two stages. -- Viktor. _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org