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!

SPAM - hpw tp block some ip´s

Discussion in 'General Discussion' started by mvital, May 4, 2005.

  1. mvital

    mvital Well-Known Member

    Joined:
    May 24, 2003
    Messages:
    58
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Lisbon - PORTUGAL
    Hi

    im receiving on my server hundreds of emails from the same company with diferent alias ( bmkmerchandise.com, bmkmerchant.com, and more several domains from the same ip ) , there is some way to block that emails . Its very annoying end the end of the day delete all that mails from the queue.

    Im newbie, some help will b aprecciated.:confused:

    Best regards,

    Mario Vital
     
  2. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,741
    Likes Received:
    76
    Trophy Points:
    203
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    if in your cpanel use the IP Deny Manager

    serverwide add it to your firewall rules

    no firewall use your ip tables
    /sbin/iptables -I INPUT -s <IP> -j DROP
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. ehpmahesh

    ehpmahesh Well-Known Member

    Joined:
    Jul 3, 2004
    Messages:
    74
    Likes Received:
    0
    Trophy Points:
    156
    Also if you have APF firewall install on the server, you can give IP in the deny file. Deny file is stored on following path
    /etc/apf/.......
    Check
    This will solve your problem ;)
     
  4. mvital

    mvital Well-Known Member

    Joined:
    May 24, 2003
    Messages:
    58
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Lisbon - PORTUGAL
    thz guys

    i will try both but first have to install apf
    i wll say how it works later , thz again
     
  5. gorilla

    gorilla Well-Known Member

    Joined:
    Feb 3, 2004
    Messages:
    695
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    Sydney / Australia
    the easiest way to add into apf is

    apf -d 111.222.333.444

    that'll deny it from root
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. djblamire

    djblamire Well-Known Member

    Joined:
    May 3, 2003
    Messages:
    253
    Likes Received:
    1
    Trophy Points:
    168
    If I don't have apf installed, do I just do:

    /sbin/iptables -I INPUT -s <IP> -j DROP

    How do you view the list of IP's in this list ??

    Are they basically blocked with this command ?

    Thanks in advance,

    Daniel
     
  7. stdio

    stdio Member

    Joined:
    Oct 18, 2004
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    151
    Try iptables -L INPUT. That should list the ips. See iptables --help for more commands :)
     
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