On 4 Jan 2019, at 10:36, Stefan Bauer wrote:

Would it be possible to have FILTER as action in policy server

Yes, but FILTER behaves as documented in the access(5) man page. The first 5 words there describing what FILTER does are critical, but you should read it all...

(in
recipient_restrictions) and send it to smtp process that uses header_checks
do have mailroute based on subject?

There can be NO WAY to exempt a message from policy that would apply at RCPT time with facts that cannot be known until end-of-DATA time. Postfix cannot modify the basic constraints of non-quantum causality or the arrow of time or tell SMTP clients to re-order the fixed command sequence of SMTP.

If you want to make any decisions about a message based on a header, you must do that with a tool (header_checks, milter, content_filter, or post-delivery backend) that has access to the message data because it operates at end-of-DATA or after queueing.

Reply via email to