I'm trying to use postfix for relaying messages from two virtual hosts on web server to Google Apps. I would like to have emails generated by each web site to have different originating email addresses so that any reply messages would go to different mailboxes. Web sites (Drupal on PHP) are generating emails with Sender and From addresses according to their individual configuration. But both websites are sending emails in context of web server unix account - web-data. Apparently Postfix is using this unix account for choosing the sasl authentication parameters (according to smtp_sasl_password_maps). As a result, single Google apps account is used. Google apps is overwriting Sender and From addresses of the messages according to the account, which is being used for authentication.
Here is my question: - Can I make Postfix to use Sender or From addresses rather then originating unix account for sasl authentication selection? Can Portfix address overwriting be used to achieve this? I would appreciate any pointers. Thank you. DmiriyG