On 12/14/2009 7:44 AM, Tobias wrote:
I have two email adresses: a...@domain.tld and b...@domain.tld
Only a...@domain.tld is registred with several mailinglists. But the user
b...@domain.tld is the one I want to use. So I need to find a way to rewrite
the sender address (b...@domain.tld) to a...@domain.tld BUT only in case the
receiver is us...@maillist.tld. 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 b...@domain.tld 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

Reply via email to