> You know what? You do it from sendmail, and people will immediately
> write simple SMTP clients in any language of their choice and send emails
> where ever they want. In fact, I think /bin/mail does this already. IIRC,
so
> does pine.
No direct access to the net so no problems with this as such. They even don
have telnet access to the mail server coz no one has any idea of using pine.
They use Outlook Exp. OR a web based mail client that we have developed in
house.
>
> The easiest thing to do is to run the command
>
> /sbin/ipchains -I output ! --dest 127.0.0.1 --dport 25 -j REJECT
>
> on the server. Sendmail will send back an apologetic mail back to anyone
> who tries to send mails outside saying that it was unable to help them.
The thing is that we use our internal server as SMTP server which in turn
uses the ISP's smtp as a smart host on dial-up. And I have to restrict ONLY
SOME of the users FOR say.... 3-4 days OR a week OR maybe for a longer
period of time so that they cannot SEND any mails outside the office. But
they should be able to send / recieve any internal mails using this
particular server.
VaibhaV
----------------------------------------------
Find out more about this and other Linux India
mailing lists at http://lists.linux-india.org/