On Tue, Nov 16, 2010 at 02:21:04PM -0500, Zhou, Yan wrote: > > Not if you specify a content_filter, which is the case below. The > > content_filter pre-empts normal routing, and all mail is sent to > > the filter first. > > Is there a way for me to do what I wanted (direct traffic by different > IP) without using content filter?
Your requirements appear to be contradictary, on the one hand you want routing sensibly based on recipient domains, on the other hand you want routing based on the client IP. Which is it? Describe more clearly what you expect to happen. You may find that the recent additions to Postfix 2.7 (IIRC) sender_dependent_default_transport_maps sender_dependent_relayhost_maps helpful. Most likely your requirements are solved by deploying separate Postfix instances: http://www.postfix.org/MULTI_INSTANCE_README.html trying to hack context dependent routing into a single instance is unnecessarily complex and fragile. -- Viktor.