RE: Split domain and DNS queries
I've found the solution. In postfix nexthop destination domains not enclosed in "" will be subject to MX lookups. So If I have domain.x, I can configure the transport_maps like this::
and postfix makes MX lookups automatically.
I need to configure some domains to be splitting temporarily. There can be some accounts in my postfix platform and some others accounts in the old platform. So I need that when a postfix account of the domain X sends a mail to a account of the other platform, the Postfix can do a DNS query (the MX records of the domain X) and it can relay the email to the old platform. How can I configure this? I know that if I know in advance the IP of the old platform, I can configure the transport_maps with the IP of the old platform.
But this old platform could be a lot of servers depending domain. So I need configure the Psotfix to be "intelligent" and it can do its own DNS querys to look for the MX records of each domain.
Thanks and regards