View Single Post

  #3 (permalink)  
Old 11-21-2006, 12:38 PM
bhagi123 bhagi123 is offline
Junior Member
 
Join Date: Nov 2006
Posts: 2
Rep Power: 0
bhagi123
Default how to restrict lan users.......

Quote:
Originally Posted by monk
By default user can not reboot or mount cdrom. Here is the example for the same:

Open /etc/mail/access file and add username/hostname to deny:
Code:
From:user@localhost  ERROR:5.7.1:550 Rejected
user@localhost  ERROR:5.7.1:550 Rejected
Restart sendmail to take effect.
but dear, this would block that user in local lan also. i.e. that user won't be able to send mail within the lan.
and I think, entries in the /etc/mail/access go like this...
user@localhost REJECT

Again, I clear the question, I just want that some users should not be able to send mail outside local lan. i.e they should not be able to send mail to www.gmail.com or www.yahoo.com,etc. but at the same time, they are able to send or receive mail from or to local lan. Please note it carefully...........
Reply With Quote