On Mon, Mar 15, 2021 at 03:24:19PM +0100, Jens Hoffrichter wrote:

> I can see in the log file that the trivial rewrite resolves the next
> hop correctly from the extra transport map, and sends that back to the
> smtpd, but the information is ignored when it comes to the smtp
> process.

Transport lookups in smtpd(8) are just for recipient classification and
validation, so that it can distinguish between local, virtual alias,
virtual mailbox, relay recipients and the rest.  No actual routing
happens in smtpd(8).

> .. now where the transport_maps entry to the next hop is resolved?
> Is that in the qmgr?

Naturally, the queue manager is responsible for handling off message
envelopes to the various delivery agents.  There's only one queue
manager, which limits your choices to "content_filter", or custom
rewriting in a dedicated per-smtpd(8) cleanup(8) service.

While cleanup(8) can't directly select a custom transport, it
can alter the recipient domain in a manner than ends up selecting
a suitable transport.

-- 
    Viktor.

Reply via email to