Hi, I have an internal domain, "mydomain.com", and around 50 users defined on this domain. I want to restrict 2 certain users, "f...@mydomain.com" and "b...@mydomain.com" from sending emails to external domains. They should be able to send emails only to "mydomain.com", and I want to be able to define this without affecting the other users at all.
I have read the Postfix docs about "Postfix Per-Client/User/etc. Access Control" here: http://www.postfix.org/RESTRICTION_CLASS_README.html#external, section "Restricting what users can send mail to off-site destinations", but it's not clear to me if this will not affect other users, especially because of the "reject" at the end of "local_only" definition. My "smtpd_recipient_restrictions" entry looks like: smtpd_recipient_restrictions = reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unlisted_recipient, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_non_fqdn_helo_hostname, reject_invalid_helo_hostname, reject_rbl_client bl.spamcop.net, reject_rbl_client psbl.surriel.com, reject_rbl_client zen.spamhaus.org, reject_rbl_client pbl.spamhaus.org, check_policy_service unix:private/spfpolicy, check_policy_service inet:127.0.0.1:10031, check_sender_access hash:/etc/postfix/check_backscatterer How should I define the restrictions so other users will not be affected by this restriction, and where should I put them in the config? Thank you!