Skip to main content

Block spam email addresses in WHM?

Comments

11 comments

  • keat63
    CSF Mailscanner will do this with ease, but it's not free unfortunately. There is a tweak you could add to your exim config, but this would rely on you manually updating a list on the server. Unlike CSF mailscanner which is GUI driven. Search the forum for exim blacklist, it crops up quite frequently. A global filter at WHM level would be a nice feature, maybe i'll raise it as a feature request.
    0
  • CharlesGLondon
    Tx for replying. When you manage multiple servers with over hundreds of domains on each of them then it becomes obvious that we need something to handle spam emails at WHM level. It's just frustrating to keep deleting thousands of spams which we keep deleting everyday and no matter what we do they don't stop coming. Thanks to millions of new tld domains it's not impossible to do even domain blocking.
    0
  • cPanelLauren
    Hi @CharlesGLondon You could use the Exim System Filter to do this. There's even an example of how to block a specific email address used in the documentation here: How to Customize the Exim System Filter File - cPanel Knowledge Base - cPanel Documentation Thanks!
    0
  • keat63
    There is a free RBL list called SpamEatingMonkey, which has a few blocklists based on the age of the domain. along the lines of domains created in the last 5, 10, 15 & 30 days. And then theres spamcop, and barracuda that you could employ. None guaranteed to kill all spam, but all work well together in defeating some of it.
    0
  • Jean Boudreau
    There is a free RBL list called SpamEatingMonkey, which has a few blocklists based on the age of the domain. along the lines of domains created in the last 5, 10, 15 & 30 days. And then theres spamcop, and barracuda that you could employ. None guaranteed to kill all spam, but all work well together in defeating some of it.

    Thank you very much for sharing the Custom RBL's!! It will surely help me as I was just using the default one. I have some issues with spam so it will surely help our servers. I now just need to find a way to scan message when a webform is used on a website. It's just doesn't scan them and deliver it to local account.
    0
  • cPanelLauren
    I now just need to find a way to scan message when a webform is used on a website. It's just doesn't scan them and deliver it to local account.

    Can you elaborate on what you mean by scan?
    0
  • LeeL
    Can you elaborate on what you mean by scan?

    I think what he means Lauren is the same issue as we have when users use our "contact us" page from within our webpage to spam us. So we have hello@mydomain.com as a way for people to reach us, spambots constantly send us spam from this page and is there a way to limit it? We get around 120 emails per day. purely spam from this, and since its a local delivery, it isn't filtered through RBLs.
    0
  • cPanelLauren
    Hi @LeeL In your case it might be best to employ some form of captcha, this would be the most effective method of preventing this. As far as once the mail is submitted there really isn't a way to do what you're requesting with PHP mail since it's considered a local delivery.
    0
  • keat63
    Googles ReCaptur will solve a lot of the web form spamming The sort of thing you often see.. 'prove you are human' 'tick this box' 'click on pictures of bridges' ReCapture may have to be coded in to your web form though.
    0
  • keat63
    I wrote something a while ago, based on a PHP contact form. It will be very much trial and error to get it to work for you, but your'e welcome to look and see if you can glean anything from it. I had 2 url's. one which said success, another which said failed. My contact form had a jpg image with the letters 'jw62k', this was my crude form of 'prove you are human' The human had to type those letters in a box to succeed. If this was compromised, i'd change the letters. )); $Company = Trim(stripslashes($_POST['Company'>)); $Address1 = Trim(stripslashes($_POST['Address1'>)); $Address2 = Trim(stripslashes($_POST['Address2'>)); $Town = Trim(stripslashes($_POST['Town'>)); $City = Trim(stripslashes($_POST['City'>)); $Postcode = Trim(stripslashes($_POST['Postcode'>)); $Tel = Trim(stripslashes($_POST['Tel'>)); $Email = Trim(stripslashes($_POST['Email'>)); $Message = Trim(stripslashes($_POST['Message'>)); // validation $validationOK=true; if (!$validationOK) { print ""; exit; } // prepare email body text $Body = ""; $Body .= "Name: "; $Body .= $Name; $Body .= "\n"; $Body .= "Company: "; $Body .= $Company; $Body .= "\n"; $Body .= "Address1: "; $Body .= $Address1; $Body .= "\n"; $Body .= "Address2: "; $Body .= $Address2; $Body .= "\n"; $Body .= "Town: "; $Body .= $Town; $Body .= "\n"; $Body .= "City: "; $Body .= $City; $Body .= "\n"; $Body .= "Postcode: "; $Body .= $Postcode; $Body .= "\n"; $Body .= "\n"; $Body .= "Tel: "; $Body .= $Tel; $Body .= "\n"; $Body .= "Email: "; $Body .= $Email; $Body .= "\n"; $Body .= "Message: "; $Body .= $Message; $Body .= "\n"; if (Trim(stripslashes($_POST['answer'>))=='jw62k'){ // send email $success = mail($EmailTo, $Subject, $Body, $mailheaders, "-f$Email"); // redirect to success page if ($success){ print ""; } } else{ print ""; } ?>
    0
  • cPanelLauren
    @keat63
    Googles ReCaptur will solve a lot of the web form spamming The sort of thing you often see.. 'prove you are human' 'tick this box' 'click on pictures of bridges'

    This is exactly what I was thinking of when I suggested it, thanks!
    0

Please sign in to leave a comment.