The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

blacklist a domain

Discussion in 'E-mail Discussions' started by apogee, Nov 3, 2009.

  1. apogee

    apogee Well-Known Member

    Joined:
    Nov 8, 2004
    Messages:
    107
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Europe
    cPanel Access Level:
    DataCenter Provider
    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. thewebhostingdi

    thewebhostingdi Well-Known Member

    Joined:
    Jan 10, 2008
    Messages:
    141
    Likes Received:
    0
    Trophy Points:
    16
    Kindly try to set the email filtering from your cPanel and have a try.
     
  3. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    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. apogee

    apogee Well-Known Member

    Joined:
    Nov 8, 2004
    Messages:
    107
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Europe
    cPanel Access Level:
    DataCenter Provider
    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.
     
    #4 apogee, Nov 4, 2009
    Last edited: Nov 4, 2009
  5. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,447
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  6. sehh

    sehh Well-Known Member

    Joined:
    Feb 11, 2006
    Messages:
    579
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Europe
    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
     
  7. apogee

    apogee Well-Known Member

    Joined:
    Nov 8, 2004
    Messages:
    107
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Europe
    cPanel Access Level:
    DataCenter Provider
    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. rzamites

    rzamites Member
    PartnerNOC

    Joined:
    Aug 22, 2007
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Or, edit the cpanel/Exim filter file (/etc/cpanel_exim_system_filter) and add a block for the domain(s) in question:


    Hope this helps someone else.
     
Loading...

Share This Page