I've never tried this however, i have a couple ideas.
You could setup 2 qmail machines or 2 qmail processes on one machine.
Force one process/machine to use the other as a relay. Dont give the
machine relay access for that IP, and it will only allow you to deliver
mail to domains that are 'local' to it, or are in the rcpthosts file.
What i've said might be totally confusing, or i might be trying to think
of one of the most difficult ways to solve a simple problem, and i just
dont know it =)
On Mon, 17 Apr 2000, Markus Fischer wrote:
>On Mon, Apr 17, 2000 at 03:03:10PM -0300, Eduardo Moor wrote :
>> I have been running qmail for Internet mail for almost a year without
>> special problems :-).
>> Could anyone tell me if there is any way to restrict access outside the
>> local domain for some users,
>> I don't want to allow them to send mail to the internet, but yes to the
>> local domain.
>
> I'm not an expert in this. For those users, remove access
>to qmail-queue by chmod'ing it 4750 , chgrp into a group which is
>allowed to send email and put every user in this group.
>
> However, you can't prevent those users to send mail
>directory from your host to internet via port 25. At least not if
>you don't use smtp-auth.
>
> Anyone else comment about this thoughts ?
_ __ _____ __ _________
______________ /_______ ___ ____ /______ John Gonzalez/Net.Tech
__ __ \ __ \ __/_ __ `__ \/ __ /_ ___/ MDC Computers/netMDC!
_ / / / `__/ /_ / / / / / / /_/ / / /__ (505)437-7600/fax-437-3052
/_/ /_/\___/\__/ /_/ /_/ /_/\__,_/ \___/ http://www.netmdc.com
[---------------------------------------------[system info]-----------]
2:45pm up 83 days, 21:42, 4 users, load average: 0.06, 0.17, 0.36