Route mail from Postfix to SMTP Relay and Back

Solution 1:

I think what you are looking for is Postfix after queue filtering by utilizing the the content_filter parameter as described in the http://www.postfix.org/FILTER_README.html. You would have to make sure that the 3rd party filtering can submit mail back to your Postfix on another port (ans you would need to create a corresponding entry in master.cf for it)