The above two are very good suggestions.
In addition, thinking of doing this at client side.
You may setup a mail matching and forwarding rules in .procmailrc at 
user's home to achieve this specific forwarding issues for each users.
You can avoid to touch server side config each time when this kind of 
requests raised again.

Thank you very much!

Yours Sincerely,
Jacky, Hoi Kei Chan




mouss <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
04/11/2008 下午 11:56

To
postfix-users@postfix.org
cc

Subject
Re: Message forwarding, sort of






Brian Evans - Postfix List wrote:
> Francisco Neira wrote:
>> I had been googling but with no avail since I have no clue how to
>> query. I hope you can tell me with directive to use, I will do the
>> rest of the homework :)
>>
>> what I want to make is some kind of rule that does the following:
>>  If an email message arrives from  [EMAIL PROTECTED] to
>> [EMAIL PROTECTED] this message must be resent or forwarded to
>> [EMAIL PROTECTED] _and_ [EMAIL PROTECTED]
>>
>> In this case, userA has been changed to other functions but his
>> subscriptions are still needed by his other two colleagues B and C. If
>> there is any need to reply, they should reply as themselves, B and C.
>> 
> Use a check_sender_access in smtpd_recipient_restrictions:
> example:
> check_sender_access hash:/path/to/file/sender-dependant-forwarding
> 
> /path/to/file/sender-dependant-forwarding:
> [EMAIL PROTECTED]    check_recipient_access
> has:/path/to/file/dependant-forwarding
> 
> /path/to/file/dependant-forwarding:
> [EMAIL PROTECTED]   REDIRECT [EMAIL PROTECTED],[EMAIL PROTECTED]
> 
> Note: the access(5) map definition does not list if multiple recipients
> are valid on REDIRECT. So, you may need to set an alias.
> Also, REDIRECT will override any FILTER access actions.
> 

REDIRECT will cause problems if the message is sent to multiple 
recipients.



Reply via email to