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

Reply via email to