Postfix configuration: different outgoing hosts based on sender

Posted by Joe on Server Fault See other posts from Server Fault or by Joe
Published on 2010-05-29T19:26:17Z Indexed on 2010/05/29 19:34 UTC
Read the original article Hit count: 264

Filed under:
|

I've seen a few answers to this on the web, but nothing definitive nor any good examples.

I relay all my mail out through Postfix, currently everything sent to my ISP's mail server.

However, there are a few users with gmail accounts or gmail-hosted accounts; I'd like to route their outgoing mail through Google's servers (since it will then appear in their Gmail sent folder). All email NOT from one of these senders should go out through the default relayhost.

I believe I need to use the "sender_dependent_default_transport_maps" configuration within Postfix, but can't find a good example on what this setup looks like. Can anyone point me at a specific setup?

© Server Fault or respective owner

Related posts about postfix

Related posts about gmail