LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   sendmail domain restriction. (https://www.linuxquestions.org/questions/linux-server-73/sendmail-domain-restriction-809239/)

rahuldevalone 05-21-2010 02:27 AM

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 ?

sang_froid 05-22-2010 06:49 AM

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 (Post 3976286)
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 ?


rahuldevalone 05-23-2010 05:40 AM

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 (Post 3977467)
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



All times are GMT -5. The time now is 12:32 AM.