Configuring postfix for virtual host using specific smtp (gmail)

1 post / 0 new
#1 Sun, 05/19/2013 - 05:40
hkvega01

Configuring postfix for virtual host using specific smtp (gmail)

i've configured using gmail as for my server for sending out email "globally" like the following tutorial

http://mhawthorne.net/posts/postfix-configuring-gmail-as-relay.html

But my server is hosting multiple domain. So, every domain email will send through above gmail, how can i config each virtual host using its gmail smtp server?

for example domainA.com will use domainA@gmail.com domainB.com will use domainB@gmail.com

i found a tutorial in ubuntu, but i'm using centos and webmin+virtualmin

http://blog.otelconsulting.com/2013/03/ubuntu-php-postfix-virtual-hostin...

how to do this in webmin?