Andrea Borghi:
> On Thursday 03 March 2016 13:22:51 Wietse Venema wrote:
> > > I need to configure Postfix (version , latest on debian jessie/stable)
> > > and in turn its smtp client in a manner that *for specific sources* it
> > > send all the message in one go, expliciting *all* the recpipients also
> > > in the smtp dialog with the remote server.
> >
> > Use transport_maps: see "man 5 transport".
> >
> > [email protected] smtp:upstream-host
> > recipient1@domain smtp:upstream-host
> > recipient2@otherdomain smtp:upstream-host
>
> sadly i cannot because the destinations are not predetermined.
>
> All i can use as a key is the sender, which i already use with the
> sender_realy map to force a specific next-hop server (the rfc6109-enabled
> one)
> along with the smtp_sasl_password_maps and the
> smtp_sender_dependent_authentication = yes in order to use the correct
> identitication to the next-hop host.
Then, use sender_dependent_relayhost:
sender_dependent_relayhost_maps (default: empty)
A sender-dependent override for the global relayhost parameter setting.
The tables are searched by the envelope sender address and @domain.
This way, Postfix still groups deliveries by method (smtp) and relayhost.
Wietse