postfix transport with smarthost

Dear lazyyweb,

Has anyone got a way for postfix to use a transport map such that it sends email to the given MX host for some specified domains then default to a smarthost for the remainder?

The logic would be:

IF domain in (‘’, ‘’,etc etc) THEN use the relevant MX host ELSE send to

i can use a transport map to send from specific domains to specific hosts, eg goes to mailserver but not to just use’s MX hosts

Enhanced by Zemanta