Here, you can route all the outbound messages to an outbound mail gateway server, also known as smart host.
Outbound mail gateway servers are used by some organizations to process messages before being forwarded to their recipient, for archiving in a similar way to Google Vault, and for detecting spam using a private service: