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.

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:
    6
    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,577
    Likes Received:
    40
    Trophy Points:
    48
    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
     
  3. ehpmahesh

    ehpmahesh Well-Known Member

    Joined:
    Jul 3, 2004
    Messages:
    74
    Likes Received:
    0
    Trophy Points:
    6
    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:
    6
    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:
    699
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Sydney / Australia
    the easiest way to add into apf is

    apf -d 111.222.333.444

    that'll deny it from root
     
  6. djblamire

    djblamire Well-Known Member

    Joined:
    May 3, 2003
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    16
    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:
    1
    Try iptables -L INPUT. That should list the ips. See iptables --help for more commands :)
     
Loading...

Share This Page