LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   restrict sendmail to send emails to only one domain (https://www.linuxquestions.org/questions/linux-newbie-8/restrict-sendmail-to-send-emails-to-only-one-domain-4175537401/)

lakshminarayanan 03-20-2015 09:57 PM

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.

TB0ne 03-21-2015 11:23 AM

Quote:

Originally Posted by lakshminarayanan (Post 5335423)
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


All times are GMT -5. The time now is 05:52 PM.