>>> On 11/18/2014 at 4:02 PM, Wietse Venema <wie...@porcupine.org> wrote: I mis-stated the situation. Allow me to attempt to restate.
There will be no address translation involved at all. The email address both user and domain will remain the same. The current system will be "retired" to an "off line" status yet the message store will remain accessible for various reasons, without the ability to actually send email to the outside world. I was daydreaming about ways to get messages from the old system to the new one, as might be required. For a bit it seemed feasible to cobble up something to allow messages to be sent via SMTP from the old system to the new, in a controlled and highly restricted manner. Having had some time to "breath the free air again", I'm not so sure I should be allowed out without my leash. joe a. >>Joe Acquisto-j4: >> I confess to not having researched this, mainly as I have no clue >> how to search the subject effectively. So, with great trepidation, >> I timidly squeak out this question: > >> Using postfix, is it possible to force a "re-addressing" of an >> email based on the sender of the message? > > This was not planned for as something that people would use a lot. > > But let's first find if this would really solve your problem. > >> To expand a bit, we envision retiring an existing email system, >> migrating but a small portion of the existing message store to >> "the cloud". >> >> Yet, there will still be a need to access the "old stuff" and, >> occasionally, to act upon it. So, I am looking for a way to allow >> such messages to be forwarded to the users new address (or to a >> surrogate, so to speak) and to no other. > > My big question is why would this need to depend on the sender address? > > If the sender sends mail to us...@old.example.com or us...@old.example.com, > would not it make more sense to forward the message to a destination > that depends on the user1 and user2 parts of the recipient address? > >> Even better (he dares, as his courage builds), have the messages >> sent to only one recipient, say gategu...@someplace.com and have >> a virtual lookup table (loose terminology perhaps) to re-address >> the mail based on the sender address. > > It's easy enough to forward mail for old addresses to a single > graveyard email address: > > us...@old.example.com graveyard+us...@new.example.com > us...@old.example.com graveyard+us...@new.example.com > > (this requires Postfix "recipient_delimiter=+"). > > You can list graveyard+user1, graveyard+user2, etc. in a virtual > alias map, or you can process the addresses with procmail or with > a script that is invoked from ~graveyard/.forward. > > Wietse