On 01/26/2015 02:20 PM, Wietse Venema wrote:
L. D. James:
I'm familiar how to use aliases to send email addressed to specific
email address to a specific user. Can someone advise me of a feature to
reroute (send) email from specific email address to a specific user?
For instance:
From email address | To User
---------------------------------------------------------
u...@test.com | user1
In the above a user with the email address of u...@test.com has sent an
email to us...@domain.com. We are trying to reroute specific emails
from certain email addresses to a specific user on the machine, in this
case, local "user1" instead of local "user2".
Delivery dependent on the combination of (sender AND recipient) is
not implemented in Postfix itself (actually, delivery based on any
combination of properties isn't implemented in Postfix itself).
With a Milter (in Perl, Python, C, or other), one could do this:
Receive envelope sender address
Receive envelope recipient address(es)
Receive end-of-message event
Add new envelope recipient(s) based on sender and recipient address(es)
Delete old envelope recipient(s)
Long ago I decided to provide interfaces for Milters, policy servers,
etc. instead of trying to build everything into Postfix itself.
Wietse
Thanks. The combination isn't a criterion. It's only the sender's
email address that I'm concerned with. All the email from the sender, I
would like to have it rerouted.
I'll be studying the information you provided to try to get this done.
-- L. James
--
L. D. James
lja...@apollo3.com
www.apollo3.com/~ljames