Thank you...Please do you have any idea how to do that? Its just I can figure just one solution..send these forwarded mails to external script..which is solution I dont find very nice :).
Thanks Radim On Thu, May 21, 2009 at 11:45 PM, Wietse Venema <wie...@porcupine.org>wrote: > Radim Roska: > > Hi, > > > > I have an imap server where users can set to forward their mails to > personal > > mails..but our main smtp server does not allow to send mails with not > > allowed sender address. Forwarded emails have sender address that is > mostly > > not allowed (because its address of any sender from the world:). > > > > From: some...@extern.tld > > Rcpt: m...@our.dom > > > > Its forwarded to my external mail > > From: some...@extern.tld > > Rcpt to: m...@extern2.com > > > > but i need > > From: m...@our.dom > > Rcpt to: m...@extern2.com > > > > > > First I wanted to use sender_canonical_maps but thats not possible > because I > > have to search in database m...@our.dom - recipient... > > > > Shortly: I have to change sender address to result of query where key is > > rcpt address. It looks canonical_maps does not allow this... > > > > Thank you very much for any suggestions!! :) > > Postfix does not rewrite address X by looking at the value > of address Y. > > Wietse > -- Radim Roška Sent from Prague, Cst, Czech Republic