On Thu, Nov 21, 2013 at 06:00:04PM +0100, Michael Storz wrote:

> >There's your mistake.  Set the nexthop for the transport in the
> >transport table.  There is no master.cf (i.e. smtp(8) command-line)
> >option to set the nexthop destination.
> 
> Well, it is not a mistake, it was the question, if this is possible
> and from your answer I see it is not :-(
> 
> Therefore I need a separate transport file for every instance with
> the same domains but different nexthops because variables are not
> supported in hash files. I had the hope to be able to use just one
> file and specify the nexthop in master.cf.

A Makefile will do the job nicely.  Create a source file with just
the rerouted domains.  Run make(1) to build a custom transport
table for each instance.  You'll end up with multiple transport
tables, but you'll only explicitly edit a single input file.

There are tricks you could perhaps play with the LOCALDOMAIN
environment variable, unqualified nexthops and smtp_host_lookup=native,
but those are far uglier, and may not work.

-- 
        Viktor.

Reply via email to