On 12/14/2009 7:44 AM, Tobias wrote:
I have two email adresses: [email protected] and [email protected]
Only [email protected] is registred with several mailinglists. But the user
[email protected] is the one I want to use. So I need to find a way to rewrite
the sender address ([email protected]) to [email protected] BUT only in case the
receiver is [email protected]. If the email has not to be sent to the
maillist no rewrite in senderaddress should be performed.
Is there a way in Postfix to do such a conditional sender rewrite?
If it's not then no problem as I will register [email protected] with the
maillists. I just wonder whether this would be technically possible with
Postfix or not.
Thanks a lot for all tips/hints
Cheers
tobi
Postfix's normal table based rewrites don't support this.
You could probably convince postfix to do this by sending
certain recipients to a custom transport and rewriting the
sender with smtp_generic_maps on that transport, but that
doesn't scale very well (requires one transport per rewrite rule).
Better to just register b...@domain for your lists.
-- Noel Jones