Re: Rewrite source address depending on target address

2015-09-16 Thread Bill Cole
On 16 Sep 2015, at 4:16, Mario Rosic wrote: I haven't been able to find a milter that does just that though. Most of them deal with rewriting depending on domains, not on single addresses. Guess I would have to write one myself or just deal with it. It would be feasible to do this with MIMED

Re: Rewrite source address depending on target address

2015-09-16 Thread Noel Jones
On 9/16/2015 3:16 AM, Mario Rosic wrote: > > For the record: > Apparently there is a way to do conditional rewriting in postfix but > it's ugly and doesn't scale. It is described here in a post from > Noel Jones: > http://thread.gmane.org/gmane.mail.postfix.user/125861/focus=125866 > This is usefu

Re: Rewrite source address depending on target address

2015-09-16 Thread Wietse Venema
Mario Rosic: > Thanks. > I haven't been able to find a milter that does just that though. Most of > them deal with rewriting depending on domains, not on single addresses. > Guess I would have to write one myself or just deal with it. Milter client implementations are available in Python, Perl, et

Re: Rewrite source address depending on target address

2015-09-16 Thread Mario Rosic
Thanks. I haven't been able to find a milter that does just that though. Most of them deal with rewriting depending on domains, not on single addresses. Guess I would have to write one myself or just deal with it. For the record: Apparently there is a way to do conditional rewriting in postfix but

Re: Rewrite source address depending on target address

2015-09-15 Thread @lbutlr
On 15 Sep 2015, at 09:00, Mario Rosic wrote: > > Does that mean that conditional address rewriting will never be > implemented, not even in future releases? It is possible to do this via a milter. There’s no reason to do this within postfix itself (and I suspect there are many reasons not to).

Re: Rewrite source address depending on target address

2015-09-15 Thread Wietse Venema
Mario Rosic: > Does that mean that conditional address rewriting will never be > implemented, not even in future releases? Indeed. No need to repeat what is already said. Wietse > I have been searching for a solution to this problem for a while and I > have noticed that I am by far not t

Re: Rewrite source address depending on target address

2015-09-15 Thread Mario Rosic
Does that mean that conditional address rewriting will never be implemented, not even in future releases? I have been searching for a solution to this problem for a while and I have noticed that I am by far not the only one who would be very happy to see such a feature in a future postfix release.

Re: Rewrite source address depending on target address

2015-09-15 Thread Wietse Venema
Mario Rosic: > Example: > I would like to create a new alias called post...@rosicmario.eu (to > receive mail) AND a rewrite rule that changes the sender from > m...@rosicmario.eu to post...@rosicmario.eu ONLY IF the the recipient is > postfix-users@postfix.org. That may be implemented in mail subm

Re: Rewrite source address depending on target address

2015-09-15 Thread Noel Jones
On 9/15/2015 9:25 AM, Mario Rosic wrote: > Hello, > > I am using aliases in /etc/postfix/virtual a lot, they allow me to > register with a different address on every website and to throw away > that address if it receives spam. > > However, I would like to be able to "send" from those aliases too

Rewrite source address depending on target address

2015-09-15 Thread Mario Rosic
Hello, I am using aliases in /etc/postfix/virtual a lot, they allow me to register with a different address on every website and to throw away that address if it receives spam. However, I would like to be able to "send" from those aliases too _without_ creating additional virtual mailbox users.