Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

/etc/spammeripblocks format?

Discussion in 'E-mail Discussion' started by coskel, Dec 27, 2011.

  1. coskel

    coskel Registered

    Joined:
    Dec 27, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    51
    cPanel Access Level:
    Root Administrator
    In another discussion, it was suggested to create a spammerblocks text-based file and place it in the following location:

    Simply get a list of IP addresses with subnets for each country you want to ban and add them to your /etc/spammeripblocks

    what format is this file?
    .txt?

    or is it similar to an htaccess, with the dot preceding the entire name?
    .spammerblocks

    thanks in advance for the help
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,608
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    The file is text-based, but .txt isn't a file extension it uses. The file's name is exactly that indicated of /etc/spammeripblocks without any other name or differences. It should already exist on your system and you could simply add IPs to it by doing the following:

    Code:
    echo "IP#" >> /etc/spammeripblocks
    Please replace IP# with the IP number you want to ban. Of note, you do want the "" around the IP number.

    You can see where this exact file name is referenced in /etc/exim.conf file:

    Code:
    root@host [/]# grep spammeripblocks /etc/exim.conf
    hostlist spammeripblocks = net-iplsearch;/etc/spammeripblocks
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    11
    Trophy Points:
    168
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    You can also add IPs in
    WHM-> Exim Configuration Editor-> Access Lists-> Blacklisted SMTP IPs
    You can also use IP blocks, like 192.168.0.1/24
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice