nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

how to restrict lan users so that they cannot send

This is a discussion on how to restrict lan users so that they cannot send within the Linux software forums, part of the Linux Getting Started category; hi all, Now, I have sendmail configured. Now, as u know all the lan users are able to send mail ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 11-16-2006, 04:41 PM
Junior Member
 
Join Date: Nov 2006
Posts: 2
Rep Power: 0
bhagi123
Default how to restrict lan users so that they cannot send

hi all,
Now, I have sendmail configured. Now, as u know all the lan users are able to send mail to outside local lan i.e to gmail.com or yahoo.com
Now, the problem is how to restrict some users so that they can't send mail to outside network. Also, they should be able to send mail within local lan.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-17-2006, 11:03 AM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 482
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
Default

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.
Reply With Quote
  #3 (permalink)  
Old 11-21-2006, 12:38 PM
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
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
restrict access of a user to two directories only vikas027 CentOS / RHEL / Fedora 0 04-15-2008 06:35 PM
To send fax direct on application satimis Linux software 0 03-18-2008 08:48 AM
restrict a user to certain command vikas027 Solaris/OpenSolaris 2 03-11-2008 09:14 AM
Restrict number of simultaneous proxy connections in SQUID proxy pkvmreddy Getting started tutorials 1 06-15-2007 04:52 PM
How to restrict devices usage for users in Solaris? kitty@sad Solaris/OpenSolaris 3 05-21-2007 03:05 PM


All times are GMT +5.5. The time now is 10:04 PM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36