mutliple domains / apps > postifx

hi,

i was wondering if someone could point me in the right direction:

i have 3 rails apps on the same server, each needs to send out emails. its all working, but app2 & app3 are sending under the domain name of app1, which is not good. how do you guys fix that?

thx

I've never used Postfix but there's this:

http://www.postfix.org/MULTI_INSTANCE_README.html

Alternatively, using a 3rd-party app (Mandrill, Sendgrid, Postmark)
lets you dispense with local configuration and more easily scale up
(change/add servers, etc.).

FWIW,

​1 on rails: make sure each app is sending on each own (different/separate)
domain
2 on the mta: make sure virtual domains​ contain those 3 domains

best regards
--botp