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