LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 09-13-2012, 04:03 AM   #1
Anup D.
LQ Newbie
 
Registered: Jan 2012
Location: Nanded
Distribution: RHEL
Posts: 25

Rep: Reputation: Disabled
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
 
Old 09-13-2012, 04:54 AM   #2
tajamari
Member
 
Registered: Jul 2007
Distribution: Red Hat CentOS Ubuntu FreeBSD OpenSuSe
Posts: 252

Rep: Reputation: 32
You can use the "access" file in /etc/mail directory

Put something like this:

domain.com REJECT
 
Old 09-14-2012, 10:49 AM   #3
Anup D.
LQ Newbie
 
Registered: Jan 2012
Location: Nanded
Distribution: RHEL
Posts: 25

Original Poster
Rep: Reputation: Disabled
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
 
  


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
iptable to block a sub-domain ZAMO Linux - Security 1 02-24-2011 01:33 AM
[SOLVED] Block a domain using URL Filter k_oudom Linux - Networking 10 05-10-2010 04:17 AM
IPtables - block subdomains (a.domain.com, b.domain.com, c.domain.com,...) benjalien Linux - Networking 6 06-24-2009 07:03 AM
how to block a domain from apache2 requests? cizzi Linux - Server 4 04-16-2008 07:32 PM
IPTables - How to block an entire domain? SlowCoder Linux - Networking 11 05-03-2006 01:41 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 08:00 PM.

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
Open Source Consulting | Domain Registration