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: [email protected]
> Rcpt: [email protected]
>
> Its forwarded to my external mail
> From: [email protected]
> Rcpt to: [email protected]
>
> but i need
> From: [email protected]
> Rcpt to: [email protected]
>
>
> First I wanted to use sender_canonical_maps but thats not possible because I
> have to search in database [email protected] - 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