Currently i have a VPS that has a host of email accounts on for several domains.
most are simple and have all local mailboxes.
but i have one user that wants to have a hosted exchange account but leave all the others as they are.
So what i would like to do is:
Domain1.com
– Deliver all mail localy (as it currently does)
Domain2.com
– user1@domain2.com -> send to smart.host1.com
– all others treated as local.
then there is also a possibilty that i could have:
Domain3.com
– user1@domain3.com -> send to smart.host1.com
– user2@domain3.com -> send to smart.host2.com
– all others treated as local.
it also may use useful if i could specify a outgoing smarthost per domain name.
Im sure this has to be possible.
Hope this makes sense!
Best Answer
This can be achieved with
transport_maps = hash:/etc/postfix/transport
inmain.cf