LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-21-2010, 02:27 AM   #1
rahuldevalone
Member
 
Registered: Feb 2007
Location: New Delhi,India
Distribution: RHEL,Cento,Ubuntu,Kali Linux
Posts: 30

Rep: Reputation: 15
sendmail domain restriction.


Dear ! Friends ,
I am using sendmail.I want to apply sendmail restriction so that nobody cannot send any mail to other domain.my domain name is msp.net

e.g. 1. rahul.com 2.kumar.com

I want to send mails only above two domain only.if any user want to send mail to other domain . it should be not reach.
Can anyone guide to me ? what should i change in sendmail.mc or in my firewall ?
 
Old 05-22-2010, 06:49 AM   #2
sang_froid
Member
 
Registered: Oct 2006
Posts: 179

Rep: Reputation: 15
You can use /etc/mail/access file for the purpose.

Say if you don't want emails to be sent to evildomain.org, then have like this in /etc/mail/access

evildomain.org REJECT

Then simply restart sendmail. It should work



Quote:
Originally Posted by rahuldevalone View Post
Dear ! Friends ,
I am using sendmail.I want to apply sendmail restriction so that nobody cannot send any mail to other domain.my domain name is msp.net

e.g. 1. rahul.com 2.kumar.com

I want to send mails only above two domain only.if any user want to send mail to other domain . it should be not reach.
Can anyone guide to me ? what should i change in sendmail.mc or in my firewall ?
 
Old 05-23-2010, 05:40 AM   #3
rahuldevalone
Member
 
Registered: Feb 2007
Location: New Delhi,India
Distribution: RHEL,Cento,Ubuntu,Kali Linux
Posts: 30

Original Poster
Rep: Reputation: 15
Dear ! Sang Sir,
Thanks for replying me .Plz read my problem again.
I know /etc/mail/access .I cannot write all word domain name in it .

I do not want to send mail to any other Domain beside rahul.com and kumar.com.

Or I want mailing between above domains only.

my domain name is msp.net

If any user want to sendmail to rediffmail or yahoo any other domain .it must be rejected.


------------------------------------------------------------------------


Quote:
Originally Posted by sang_froid View Post
You can use /etc/mail/access file for the purpose.

Say if you don't want emails to be sent to evildomain.org, then have like this in /etc/mail/access

evildomain.org REJECT

Then simply restart sendmail. It should work
 
  


Reply



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
Sendmail Attachment Size & User Quota Restriction. nishith Linux - Server 4 12-16-2008 01:15 AM
user based ftp and sendmail restriction ahpin Linux - Security 1 08-28-2006 03:08 PM
Sendmail Mailbox Quote restriction varunbihani Linux - General 4 03-28-2005 09:26 AM
Sendmail sending as host.domain.com, i want it to be from just domain.com. PlatinumRik Linux - Software 5 10-07-2004 04:32 PM
Sendmail Quota Restriction johnlee Linux - General 1 01-22-2002 10:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:34 AM.

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
Open Source Consulting | Domain Registration