Hi, I have a "mail store server" which is's not an open source software and I can't modify its internals (neither it supports the feature I have to implement). However there is the project now that every mail user can set forward address (or even addresses - it's possible to give more forward addresses) with or without the "local copy" option (which means: original rcpt will receive it too, "without local copy" means that original rcpt will not get the mail, only it's forwarded to the address/addresses specified by the mail forward setting(s)). Since the "mail store server" does not support this feature (and I can't just replace it) I want to do this on a postfix before it: all incoming/outbound mails are relayed through it anyway, so maybe it's a good place to do it. Mail users, all parameters etc are stored in LDAP. How can I do this with postfix? I've tried to figure out myself, without too much success. As far as I understand, postfix's "alias" mechanism is about the local delivery which is not my case. Rcpt based bcc map seems to be OK, but still I can't really understand how I can configure the "local copy" / "there is no local copy" setting. I guess I can create a config to use rcpt based bcc map, and discard the "original" rcpt address if no local copy is wanted. However it seems to be a bit hackish for me. I can also imagine the usage of address rewriting. There is a lots of possibilities (at least for me) so I can't really see what I should read further to learn more about the implementation detailes: what I should use at all.
Also, as far as I can see I can have difficulties with odd ideas of some users to forward mail to another user which is also forwarded ... Eh. Maybe this case can't be handled too well, and it's open to create ugly mail loops, but the other systems (where I want to migrate users from) has this feature as well, and it seems it's used by some users. Can someone suggest a configuration for postfix to implement this? Thanks in advance (and happy new year soon, btw). - Gábor