LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   How to block domain in MailScanner (https://www.linuxquestions.org/questions/linux-enterprise-47/how-to-block-domain-in-mailscanner-4175427020/)

Anup D. 09-13-2012 04:03 AM

How to block domain in MailScanner
 
Hello Friends,

I have one Email Server sendmail with MailScanner installed.
I don't want to receive email from few domains e.g. abc.com or xyz.com .
How to block this domain in sendmail or mailscanner.
It is CentOS .

Thanks,
Anup

tajamari 09-13-2012 04:54 AM

You can use the "access" file in /etc/mail directory

Put something like this:

domain.com REJECT

Anup D. 09-14-2012 10:49 AM

Thank you for your reply.

I had tried by adding the domain name entry in access file but it is not working .
Is there any other way to block domain name in Mailscanner.

Thanks,
Anup


All times are GMT -5. The time now is 04:19 AM.