Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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: - Deliver all mail localy (as it currently does) - -> send to - all others treated as local.

then there is also a possibilty that i could have: - -> send to - -> send to - 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!

share|improve this question

This can be achieved with transport_maps = hash:/etc/postfix/transport in

#/etc/postfix/transport     local:             local:             local:
share|improve this answer
thats great thanks i will try that out. – Steve Taylor Feb 19 '14 at 17:31
I cant seem to get this to work, Currently i have got relayhost = would this effect any of the above? – Steve Taylor Feb 21 '14 at 17:46
Please see postconf transport_maps override relayhost parameter. U can have a * line in your transport file as a workaround – clement Feb 23 '14 at 14:42
It's necessary to run postmap /etc/postfix/transport and restart the service or at least invoke service postfix reload after creating transport and changing – Karl Richter Oct 5 '14 at 13:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.