Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Nov 2004
    Location
    Europe
    Posts
    106

    Default blacklist a domain

    Hello,

    I've a problem with a stupid spamer, he sends me tousends of mails a day but he's not blacklisted in any blacklist, so now I want to blacklist his domains in my exim, but how?

    I've tried some how-to's which I found but nothing has worked for me.

    I know I can block the IP with whm but the domain of the spamer is hosted on a server which also hosts some domains which sends legitime mails to my customers, so I cant block the server IP address.

    any sugestions?

    thanks!

  2. #2
    Member
    Join Date
    Jan 2008
    Posts
    141

    Default

    Kindly try to set the email filtering from your cPanel and have a try.

  3. #3
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,554
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    I recommend creating a filter to match the desired domain names and discard or reject ("fail with message") the Spam. An alternative may be to use SpamAssassin (if it's enabled on the system) and add the Spammer's domain-specific addresses to the SpamAssassin blacklist via cPanel.

    The described Mail features are detailed in-depth at the following site, including Account-Level Filters, User-Level Filters, BoxTrapper, and SpamAssassin:
    CpanelMail < AllDocumentation/CpanelDocs < TWiki

    Specific sections within the above documentation:
    AccountFiltering < AllDocumentation/CpanelDocs < TWiki
    UserFiltering < AllDocumentation/CpanelDocs < TWiki
    BoxTrapper < AllDocumentation/CpanelDocs < TWiki
    SpamAssassin < AllDocumentation/CpanelDocs < TWiki

  4. #4
    Member
    Join Date
    Nov 2004
    Location
    Europe
    Posts
    106

    Default

    thanks, I already know this but so I must logon to each customers panel und block the domain, not a solution. I want to block the domain for all users on my server. What I need is a "global block" like the IP blocker in whm but not for IP's - for domainnames.
    Last edited by apogee; 11-04-2009 at 02:31 AM.

  5. #5
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,165
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    Personally, I use MSFE from ConfigServer for this sort of thing.
    MailScanner Front-End for cPanel

  6. #6
    Member sehh's Avatar
    Join Date
    Feb 2006
    Location
    Europe
    Posts
    442

    Default

    Can't you just ban his IP address or whole network block?

    You can just add any IP addresses or networks under: /etc/spammeripblocks

    For example:

    93.188.160.0/24

    blocks the entire 93.188.160.xxx range
    CODE IS POETRY

  7. #7
    Member
    Join Date
    Nov 2004
    Location
    Europe
    Posts
    106

    Default

    Quote Originally Posted by Infopro View Post
    Personally, I use MSFE from ConfigServer for this sort of thing.
    MailScanner Front-End for cPanel
    thanks! thats a good idea, i'll now setup an external mailscanner which scanns all mails befor they hit my cpanel servers, this will reduce the load

  8. #8
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Aug 2007
    Posts
    14

    Default Re: blacklist a domain

    Or, edit the cpanel/Exim filter file (/etc/cpanel_exim_system_filter) and add a block for the domain(s) in question:


    Open that file via SSH using your favorite editor and add the following to it :

    if first_delivery
    and ( (“$h_from:” contains “emailtoblock@domainname.com”)
    )
    then fail
    endif

    If you would like a copy of the email to be sent to you after the message fails, use the following code :

    if first_delivery
    and ( (“$h_from:” contains “emailtoblock@domainname.com”)
    )
    then
    unseen deliver “youremail@yourdomainname.com”
    fail
    endif

    Make sure that you substitute the correct email addresses in the above code.
    Hope this helps someone else.

Similar Threads & Tags
Similar threads

  1. Exim Blacklist - IP Range
    By zerokarma in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 05-31-2010, 03:45 AM
  2. Boxtrapper--how to blacklist all?
    By netingenuity in forum E-mail Discussions
    Replies: 9
    Last Post: 05-09-2009, 08:06 PM
  3. domain blacklist?
    By shenzy in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-29-2008, 12:15 AM
  4. setup blacklist
    By centaur777 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-29-2005, 10:42 AM
  5. Blacklist a TLD
    By Raincross in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-04-2004, 08:37 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube