You can do the same using eMPF. Check below URL on how it work.
http://www.qmailwiki.org/index.php/EMPF Amit Dalia From: Linux [mailto:li...@ikf.co.in] Sent: 04 September 2013 11:05 To: qmailtoaster-list@qmailtoaster.com Subject: [qmailtoaster] block sending mails outside Hi All, I want to block some user to send email to outside of my organization, but they can send mails locally. Is it possible, please somebody help me, how to do it. Regards, Vivek Patil system admin