I have a setup with postfix MXes handing mail off to postfix backend
mailbox servers via smtp. I currently have transport_maps returning
"relay:[fqdn]" where fqdn is the backend server hostname to which mail
is delivered. I want to change this to individual transports (one per
backend) so I can defer delivery, control MX-side queue lifetimes and
other timeouts, etc. on a per-backend basis. Is there a way to specify
within master.cf the next hop of an smtp(8) transport? Will setting
relayhost on each transport do this? For example:
In master.cf:
dojebon unix - - n 0 0 smtp -o relayhost=[dojebon.example.com]
haagen unix - - n 0 0 smtp -o relayhost=[haagen.example.com]
And have transport_maps return "dojebon" or "haagen" as appropriate.
Or am I limited to cloning relay and specifying the nexthop when
returning the transport? For example:
In master.cf:
dojebon unix - - n 0 0 smtp
haagen unix - - n 0 0 smtp
And have transport_maps return "dojebon:[dojebon.example.com]" or
"haagen:[haagen.example.com]" as appropriate.