On 06/08/2012 04:43 AM, Todor Petkov wrote:
On 06/08/2012 01:04 PM, Pritam D. Gautam wrote:

I am required to prevent certain users on my Qmail Server from sending
emails to outside domain.
In my understanding, only IP Addresses can be prevented from relaying!
But that's something which does not work in my environment considering
we have DHCP setup.

Any help will be appreciated.



not 100% sure, but I think you can do it via vmoduser and adding -r flag
to the user. This, however, will require smtp auth usage.
For more information, look at http://www.qmailwiki.org/Vpopmail#vmoduser


That's an interesting approach. I think you'd want to use the -s flag for the user, then configure their email client to not authenticate. Local email would be accepted (for all domains on the host though, not strictly inter-domain), and relaying would be rejected.

I think eMPF (as Amit suggested) is a nicer solution though. It's more straight forward, and has more flexibility to control this sort of thing. Not surprising, as that's what it was created to do.

-Eric 'shubes'


Reply via email to