Ubuntu PHP / Postfix Virtual Hosting Multiple Relay Host via Gmail
When dealing with virtual hosting with a PHP lamp server the old way of just sending email via Sendmail right from your server can lead to bad things down the road spam-wise resulting in people not getting key emails from your LAMP hosted applications. I knew how I wanted to do it but did not know the technical way to make it happen. All of my domains email is hosted with google apps so I wanted to have each domain send all mail from my server to gmail smtp server (authenticated). However there are 5 domains all with their own username and passwords hosted at gmail. Here is how I accomplished it.