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.



you can use virtual_alias_maps
[EMAIL PROTECTED]       [EMAIL PROTECTED], [EMAIL PROTECTED]

With this, all mail sent to userA will be forwarded to userB and userC.

now the question is what to do if the sender is not [EMAIL PROTECTED]

you can use restriction classes to REJECT the message (actions such as HOLD, FILTER and DISCARD are inappropriate because they will cause problems if the message is sent to multiple recipients). see example below.

if you want more control, then use an MDA such as maildrop.

=========
example:

smtpd_restriction_classes =
        ...
        policy_userA

smtpd_sender_restrictions =
        check_recipient_access hash:/etc/postfix/userA

policy_userA =
        check_sender_access pcre:/etc/postfix/userA_sender.pcre


== userA
[EMAIL PROTECTED]       policy_userA


== userA_sender.pcre
/[EMAIL PROTECTED]/     DUNNO
/./                     REJECT user has moved




Reply via email to