> From: owner-postfix-us...@postfix.org [mailto:owner-postfix-
> us...@postfix.org] On Behalf Of Pavel Dimow
> 
> I know this is very bad, but I will need this only temporally.
> Basically I need to forward email to one address depending on the
> sender and recipient address
> but still original recipient should receive email. I think that this
> is maybe impossible using header checks or I am wrong?
> For example I need something like this:
> If sender is d...@example.com and recipient is coy...@foobar.com then
> deliver this email to coy...@foobar.com and gr...@foobar.com
> 
> Or this is dovecot's job?

Recently I asked a similar question on this forum except my requirement
did not include sending to the original recipient.

The gist of the recommended solution, which we've not yet implemented,
is to setup separate postfix processes:

1 postfix to relay to a second instance based on Sender address.
2 second instance to forward email based on recipient address.

It breaks the problem down into two parts, handled by two separate
postfix processes. Search this forum from 11/29/2010 for the thread on
"sender_dependent_default_transport_maps and recipient routing," which
may help.

Thank you,
Scott Stirling
AT&T, Boston

Reply via email to