What you're asking is not very difficult -- especially if you use tcpservers.
First however, it's important to note what your current network looks like.
In the case of a local network that's firewalled to the internet, you can simply use
RELAYCLIENT= and a shellscript .
simply change your smtp server to call a shell script instead of qmail-smtpd; this
shell script should look something like this:
#!/bin/sh
if [ "$TCPREMOTEADDR" = "192.168.0.5" ]; then
qq=""
else
qq="env RELAYCLIENT="
fi
exec $qq /var/qmail/bin/qmail-smtpd
then make sure that /var/qmail/control/rcpthosts only contains your local domains.
if however, you use a server that's on a public network, you must also limit the
appropriate ip addresses. the shell script
above should make it easy to do the trick.
finally, if bychance the ip addresses aren't known however, you'll be in a bit more
trouble...
On Wed, 3 May 2000 11:33:33 -0400, Tim Hunter wrote:
>I find it amazing what corp enviroments ask IT to do instead of confronting
>a user on specific issues, but I was told to look into it.
>I have a particular user who is abusing the mail system with improper
>mailings to friends. We use email internally for everyone as a wonderful
>means of contact and do not want to completely take away access.
>Is there a way to restrict mail for one user to only have access to internal
>mail (that is only cimx.com can receive or send mail to this user?) I am
>thinking that receiving I can hack something together with a .qmail file (if
>anyone has any simple ideas or solutions, my shell scripting is at best
>poor) but I have no idea if it is even possible to stop outgoing mails
>without compromising system integrity.
>
>If its more pain then its worth tell me, I would much rather tell them to
>deal with things without moving behind someone's back with technology.
>
>Thanks,
>Tim Hunter -- [EMAIL PROTECTED]
>SysAdmin -- CIMx
>http://www.cimx.com
>
>