> On May 6, 2021, at 8:56 AM, Jaroslaw Rafa <r...@rafa.eu.org> wrote: > > "transport_maps" looks into a *map*, and a map in Postfix is more than just > DB. For example it can be a *TCP table*, which means Postfix is asking some > program that listens on a specific port for the key, and gets a value in > return. It is described here: http://www.postfix.org/tcp_table.5.html > > Seems like this can be a solution for you. You have of course to write the > appropriate program that replies with the correct server address depending > on recipient's email adress.
The socketmap table driver makes it possible to handle multiple logical tables at a single server endpoint: http://www.postfix.org/socketmap_table.5.html It is otherwise very similar to tcp_table(5). See http://cr.yp.to/proto/netstrings.txt for the encoding details. -- Viktor.