Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2003
    Posts
    187

    need to block email from an ip with cpanel

    Ive got a red hat box running cpanel that keeps getting a lot of spam from the same ip.

    i want to block all email from that ip address from getting through.

    i dont care if i use cpanel to block it or not, but cpanel is on the server.

    anyone got any ideas how i can block this crap?

  2. #2
    Join Date
    Dec 2001
    Location
    QLD, Australia
    Posts
    284
    Err,

    iptables -A INPUT -p tcp -m tcp -s 123.123.123.123 --dport 25 -d 0/0 -j DROP



    Stuart
    Seekbrain.com - Personal Blog
    E-Currency Australia - Crypto Currency Services

  3. #3
    Join Date
    Apr 2003
    Posts
    187
    Do i need to reboot the mail server or anything after i input that?

  4. #4
    Join Date
    Oct 2002
    Location
    UK
    Posts
    563
    No, the above command will block access from that IP dead.
    Shared Hosting - Servers in the US and the UK
    Reseller Plans - For ultimate reliability
    WebAttention.net - Hosting made easy

  5. #5
    Join Date
    Apr 2003
    Posts
    187
    awesome, thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •