Wietse Venema:
Actually, here is a simpler one, that uses content_filter.
master.cf:
submission .. .. .. .. smtpd
-o { content_filter = smtp:[mxhost.example.com] }
In my situation this did not give the behavior i was looking for. It
sends all mail to the smtp:host, including mail going to an outside
domain (u...@gmail.com) which then gets bounced by the smtp:host because
relaying denied. I do not want to add relaying permission on the
smtp:host because it would defeat the purpose of having two servers if
everything is still traveling through the one server.