On Thu, Nov 21, 2013 at 05:45:29PM +0100, Michael Storz wrote: > Correct, default_transport cannot be used because to is too late. > What I need is a smtp option which would be evaluated when the email > arrives at the smtp transport and which would overwrite the > destination already calculated by qmgr.
You don't. Either the SMTP transport in question is the default transport, in which case its nexthop can be bolted its definition: default_transport = smtp:[mynexthop.example] Or it is a non-default transport (thus obtained via transport_maps), in which case do the logical thing in the transport table (or content_filter setting or FILTER actions in access tables, ...). There is no smtp(8) command-line option to override the primary message destination, you can only tweak the smtp_fallback_relay. -- Viktor.