Pavel Urban wrote:
Hello,

is there an ellegant way to filter by source and route mail by
destination? I have the following scenario:

- two destinations
- one should accept mails from one domain only

restriction classes.

- the second one accepts everything

I have to route mail to these destinations. Right now I'm using
smtpd_sender_restrictions, check_sender_access with FILTER rules. These
rules route mails coming from the selected domain to the second Postfix
instance. The mail is then routed from both instances by transport maps.

Is there a better way?

check the examples in
        http://www.postfix.org/RESTRICTION_CLASS_README.html

Reply via email to