Email account restrictions

hi,

Is there a way to put restrictions on email accounts so that only selected accounts can send email to the outside world where others can only send on LAN or the same domain as them?

Thank you

http://www.postfix.org/RESTRICTION_CLASS_README.html

http://www.virtualmin.com/forums/hacks/postfix-user-sending-receiving-restrictions-setup.html