D. Karapiperis: > I did the from_inside_network thing to do the logical AND regarding the > sending domain. Is there any way to do this woth permit_mynetworks? > > Is there any way to permit local users (from the inside network) to send > emails using the business domain in a clear and nice way in postfix?
For this you would need smtpd_sender_restrictions = check_sender_access [table that maps your domain -> permit] reject_mynetworks But, since reject_mynetworks is not implemented, you end up implementing it yourself: smtpd_sender_restrictions = check_sender_access [table that maps your domain -> permit] check_client_access [table that maps your networks -> reject] For example /etc/postfix/main.cf: smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/sender_access check_client_access pcre:/etc/postfix/client_access.pcre hash:/etc/postfix/sender_access example.com permit /etc/postfix/client_access.pcre 192.168.0.0/24 reject must send mail as u...@example.com Wietse