LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   how to do outgoing mail only to a specific domain (https://www.linuxquestions.org/questions/linux-server-73/how-to-do-outgoing-mail-only-to-a-specific-domain-820136/)

orko 07-16-2010 02:54 AM

how to do outgoing mail only to a specific domain
 
i m using sendmail-8.13.8-2.el5 along with MailScanner-4.79.11-1

i want to set a rule so that user1@mydomain.com can send only to anotherdomain.com domain. sending mail to any other domain will be rejected. can it be done by sendmail or MailScanner ??

rjcooks 07-17-2010 01:49 PM

Quote:

Originally Posted by orko (Post 4035026)
i m using sendmail-8.13.8-2.el5 along with MailScanner-4.79.11-1

i want to set a rule so that user1@mydomain.com can send only to anotherdomain.com domain. sending mail to any other domain will be rejected. can it be done by sendmail or MailScanner ??

I believe the answer is yes sendmail can be conf'd to do that.

Now I suppose you want to know how ... :).
Can't do that but this might help:
http://www.sendmail.org/~ca/email/restrict.html
Also, Google is our friend:
http://www.google.com/#hl=en&source=...d9c86769d1bf04


All times are GMT -5. The time now is 06:59 PM.