LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-22-2010, 04:33 AM   #1
kindar
LQ Newbie
 
Registered: Jun 2008
Posts: 10

Rep: Reputation: 0
Sendmail - I want to restrict some users from sending mail outside


Hi,

I want to know is it possible in Sendmail to restrict some users from sending / receiving mail to / from outside world i.e. they should be able to send and receive mails only from local domain.

Thanks in advance.

Kiran
 
Old 04-22-2010, 12:49 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,843

Rep: Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596
Hi,

You have to use custom rulesets according to this post.
You might also read this thread here at LQ on the same subject.

Regards
 
Old 04-24-2010, 02:17 AM   #3
kindar
LQ Newbie
 
Registered: Jun 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Hi,

i have gone through your previous post, iam attaching my sendmail.cf file please let me know is it OK or should i do any changes in it.

Just for my knowledge, normally you have to make changes in sendmail.mc file and after compilation it gets updated in sendmail.cf over here we are directly updating sendmail.cf file.

Thanks in advance
Kiran
 
Old 04-24-2010, 06:59 AM   #4
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,300

Rep: Reputation: 102Reputation: 102
Lightbulb

See this link

Try finding out linuxquestions.org before making a duplicate post.


Code:
For example, you can do something like this on google.
sendmail restrict some users site:linuxquestions.org
Hope this will help you out.

Cheers !

Last edited by vikas027; 04-24-2010 at 09:27 AM.
 
Old 04-24-2010, 07:30 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,843

Rep: Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596
Quote:
Just for my knowledge, normally you have to make changes in sendmail.mc file and after compilation it gets updated in sendmail.cf over here we are directly updating sendmail.cf file.
You use sendmail.mc to change sendmail settings, like masquerading, mailers, smarthosts, etc.
In your case you need to change the (built-in) rulesets, that by default allow a local user to send mail wherever he wants.

You didn't attach anything, but in any case you should edit sendmail.cf (make a backup first) according to the 1st link I gave you in the previous post. If you want there is a sendmail.cf attached in the other LQ thread mentioned by vikas and me, so you can see what is changed.

Regards
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Restrict users who are sending mails using alias. shan_nathan Linux - Server 1 08-04-2009 06:26 PM
Howto restrict sendmail delivery for individual users? dpsims Linux - Server 2 04-22-2008 10:06 PM
Sending mail between local users (other than root) fails using sendmail dbradshaw Linux - Server 3 12-29-2007 12:06 AM
Restrict Postfix Users from sending mail to outside the local network gugabaga Linux - Software 4 07-20-2006 05:23 AM
Sendmail sending mail from non-existant users sbms Linux - Security 6 04-05-2006 03:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration