Hi,
> The RESTRICTION_CLASS_README example works. > http://www.postfix.org/RESTRICTION_CLASS_README.html#external > > If you have trouble, show what you did and what happened. > Sorry for late reply, 1. I have configured the main.cf like below in order to block all user to send mail outside. smtpd_recipient_restrictions = check_sender_access hash:/etc/postfix/sender_access, reject_unauth_destinations smtpd_restriction_classes = local_only local_only = check_recipient_access hash:/etc/postfix/local_domains, reject 2. Created the file /etc/postfix/sender_access and review the example below. example.com local_only 3. Created the file /etc/postfix/local_domains and review the example below. example.com OK 4. Run below commands to create the hash files. postmap /etc/postfix/sender_access postmap /etc/postfix/local_domains 5. Restart the Postfix service. After doing above configuration in Postfix, user can send mail outside of the example.com domain. Please share your thoughts, what I am missing. --Regards Ashishkumar S. Yadav
