OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
address rewriting before lmtp delivery

From: Abhijit Menon-Sen (amstoroid.org)
Date: Fri Sep 15 2006 - 00:09:12 CDT


Hi.

Postfix, running on box.example.org, knows how to do local deliveries to
fooexample.org. We want to forward an extra copy of messages to certain
recipients via LMTP to otherbox.example.org.

Putting "someuser someuserotherbox.example.org" in a recipient_bcc_maps
hash, and "otherbox.example.org lmtp:otherbox:2026" in a transport_maps
hash gets us most of the way.

But we'd like to have Postfix say "RCPT TO:<fooexample.org>" during the
LMTP delivery, and _not_ "RCPT TO:<foootherbox.example.org>". (The LMTP
server is being tested at the moment, but it's meant to handle all mail
to example.org eventually, so configuring it this way makes it easier
to move into production later.)

With Exim, I just rewrite the address just before delivery in the smtp
transport, but I haven't found an Postfix equivalent incantation.

Is this possible at all?

Thanks.

-- ams