Hi, in our environment we have two domains:
example.com - 1.1.1.1 news.example.com - 2.2.2.2 configured on the external gateway. Each domain using separate IP addresses. Postfix mail server with mailboxes has been configured on the separate system: 3.3.3.3 >From this system we would like to send messages From: @example.com to 1.1.1.1 and messages From: @news.example.com to 2.2.2.2 How to do it properly ? On my postfix I have configured: smtpd_sender_restrictions = check_sender_access regexp:/etc/postfix/check_sender_regexp /.*@example.com/ FILTER smtp:1.1.1.1 /.*@news.example.com/ FILTER smtp:2.2.2.2 For some reason its not working. System sending messages to default relay 1.1.1.1. How to configure it properly to send messages with specified sender domain to specified gateways ? Cheers Zalezny