On Thu, Jul 02, 2015 at 02:11:58PM -0400, Rod K wrote: > >> ... is there any way to set/override a before queue proxy > >> filter from a policy server? > > > >No, and you can't even specify "FILTER" directives to an SMTP server > >that uses a before queue proxy. Any FILTER directives must happen > >in the downstream smtpd(8) that receives messages processed by the > >pre-queue proxy. > > Hmmm, been thinking about what you wrote here. Is a proxy filter called > before or after check_policy_service under smtpd_recipient_restrictions?
The timing is irrelevant. Once a proxy filter is configured, all mail that is not rejected is passed through the proxy filter. > If > after, would the proxy filter also be called once per recipient? The proxy filter is a transparent SMTP server, the message is forwarded through that proxy in real time carrying all the recipients together. EHLO ... MAIL FROM:<sender> <ESMTP extended options> RCPT TO:<rcpt> <ESMTP extended options> (once per recipient) DATA <message content> . QUIT > My thinking here is using PREPEND to set how the proxy filter should handle > content. You can certaintly use PREPEND. See also http://www.postfix.org/postconf.5.html#smtpd_proxy_options With or without "speed_adjust", the message content (with any PREPENDED headers) is not seen by the proxy until all "RCPT TO" commands are processed by the upstream smtpd(8) daemon. -- Viktor.