LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-20-2015, 10:57 PM   #1
lakshminarayanan
LQ Newbie
 
Registered: Jan 2010
Posts: 9

Rep: Reputation: 2
restrict sendmail to send emails to only one domain


Hi,

I am required to configure sendmail to be able to send emails to only two domains. Can some one help me with this. Thank you.
 
Old 03-21-2015, 12:23 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,314

Rep: Reputation: 4459Reputation: 4459Reputation: 4459Reputation: 4459Reputation: 4459Reputation: 4459Reputation: 4459Reputation: 4459Reputation: 4459Reputation: 4459Reputation: 4459
Quote:
Originally Posted by lakshminarayanan View Post
Hi,
I am required to configure sendmail to be able to send emails to only two domains. Can some one help me with this. Thank you.
Ok...so since this is part of your job, can you tell us what you have done/tried/researched on your own to get your job done??? You don't tell us anything about your Linux environment, or what you're really trying to accomplish, and mention sendmail, but don't tell us how it's being used. Without details, there isn't alot we can tell you.

If you did a small bit of research, you'd find a good bit of documentation on how to accomplish this...and there are many ways to do it, too, depending on what you have to work with. The simplest would be to list the domains you want to relay in the /etc/mail/relay-domains file. Anything listed in this file will be accepted for relaying; anything else, will not.
https://www.sendmail.com/sm/open_sou...smtp_relaying/

We are always happy to help, but you will have to show effort of your own as well. You have been here for 5 years now....you should be able to do basic research of your own at this point

Last edited by TB0ne; 03-21-2015 at 12:25 PM.
 
  


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
Sendmail restrict by domain and ip address marcusone Linux - Server 1 07-31-2014 08:48 PM
Restrict users of a domain to send/receive mail from one particular domain tanveer Linux - Server 0 09-02-2007 03:01 AM
Sendmail doesn't send emails Bodyweb Linux - Software 5 07-18-2006 09:53 AM
Qn: How to restrict in/out emails within a domain name/internal organisation only? rebel Red Hat 11 08-24-2004 08:25 AM
Qn: How to restrict in/out emails within a domain name/internal organisation only? rebel Linux - Security 1 08-19-2004 12:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:15 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration