Re: [SPAM] Re: [vchkpw] Prevent certain users from send emails outside the local domain.
Eric Shubert <[email protected]> Fri, 08 Jun 2012 08:12:54 -0700
| Newsgroups | gmane.mail.vpopmail |
|---|---|
| Organization | Eric Shubert & Associates |
| Message-ID | <[email protected]> |
On 06/08/2012 04:43 AM, Todor Petkov wrote: > On 06/08/2012 01:04 PM, Pritam D. Gautam wrote: >> Hi, >> >> 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. >> >> Regards, >> >> >> >> > > Hello, > > > 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 > > > > Regards, > 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' !DSPAM:4fd2168b34201383016228!