Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 16 to 30 of 45
  1. #16
    Member rs-freddo's Avatar
    Join Date
    May 2003
    Location
    Australia
    Posts
    819
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    If you use :blackhole: then exim accepts the email, processes it through all your RBL's and other assorted rules you have - then deletes it.
    Michael

  2. #17
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    The Dictionary Attack ACL you mentioned will only be effective if you have your Default Addresses set to :fail: and you have the recipient check (which you should since it's been in the cPanel default configuration for months now). Using it should definitely not increase server load, quite the contrary, since mail will be stopped at the RCPT.

    However, there is a major flaw in that ACL and the like, since most put in a delay which on a badly attacked server will cause an effective DOS on exim because you'll soon use all your child processes up with waiting exim processes. If you remove this line, that will be prevented:
    delay = ${eval:30*$rcpt_fail_count}s

    The disadvantage of removing the line, is that the attacker will often reconnect and try again straight away. My experience has shown that many do, but enough don't to make a significant difference.

    I'm actually working on a far better ACL which stores dictionary attack IPs and allows you to either block them at the MTA or iptables firewall. I'll post a link in the Addons forum when it's ready.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #18
    Member rs-freddo's Avatar
    Join Date
    May 2003
    Location
    Australia
    Posts
    819
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by chirpy
    I'm actually working on a far better ACL which stores dictionary attack IPs and allows you to either block them at the MTA or iptables firewall. I'll post a link in the Addons forum when it's ready.
    Well I'm interested in seeing that, for me blocking at MTA is enough, I don't like blocking completely (ie. all services via firewall).
    Michael

  4. #19
    Member
    Join Date
    May 2004
    Posts
    58

    Default

    Thank You guys for helping me and getting me out of this trouble.

    And also thankx chirpy for clearing my doubts

  5. #20
    Member
    Join Date
    Sep 2001
    Location
    Spain
    Posts
    779

    Default

    Chirpy, take a look at this ACL by Alan J. Flavell:

    http://article.gmane.org/gmane.mail.exim.user/19366

    The only problem is that it also blocks legitimate users who:
    a) don't authenticate, and
    b) forget to do pop before smtp auth
    before sending an email to multiple recipients, so a fix for that should be found (I haven't put a lot of thought into it, but I guess it should be easy).

  6. #21
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    That's very close indeed to what I've developed, except I don't do the delays and do check the file for duplicates so it doesn't get too big. I am using different criteria and not had any complaints about people getting themselves blocked as yet.

    I'll put up a web page shrtly on how to implement it.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  7. #22
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495
    Last edited by chirpy; 01-29-2005 at 12:06 PM.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  8. #23
    Member rs-freddo's Avatar
    Join Date
    May 2003
    Location
    Australia
    Posts
    819
    cPanel/Enkompass Access Level

    Root Administrator

    Thumbs up

    That looks very simple and elegant, nice solution.

    I may amend that script to allow cron to remove IP's after a week or so. That'll stop the file from becoming too big.
    Last edited by rs-freddo; 08-16-2004 at 05:59 PM.
    Michael

  9. #24
    Member
    Join Date
    Mar 2003
    Posts
    345

    Default

    Chripy I setup your deny list, however now all we get is 550 Admin Prohibition errors when sending emails. the minute I remove the accept hosts; line exim starts working again. Any ideas?

  10. #25
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Hi,

    I would guess that you either probably deleted a valid line or blank line by mistake. Blank lines in exim.conf can be very important. Make sure that after adding the ACL that the top of that middle box in the first set of 3 in the Exim Configuration Editor, look like this:
    Code:
    #!!# ACL that is used after the RCPT command
    check_recipient:
      # Exim 3 had no checking on -bs messages, so for compatibility
      # we accept if the source is local SMTP (i.e. not over TCP/IP).
      # We do this by testing for an empty sending host field.
      accept  hosts = :
    
      drop hosts = /etc/exim_deny
           message = Connection denied after dictionary attack
           log_message = Connection denied from $sender_host_address after dictionary attack
    
      drop  message   = Appears to be a dictionary attack
            log_message = Dictionary attack (after $rcpt_fail_count failures)
            condition = ${if > {${eval:$rcpt_fail_count}}{3}{yes}{no}}
            condition = ${run{/etc/exim_deny.pl $sender_host_address }{yes}{no}}
            !verify   = recipient
    
      # Accept bounces to lists even if callbacks or other checks would fail
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  11. #26
    Member
    Join Date
    Mar 2003
    Posts
    345

    Default

    I know what happened I removed the accept statement. It was my fault. I was trying to find this post but couldn't lol. Thanks Chirpy that script is working like a charm!

  12. #27
    Member linux-image's Avatar
    Join Date
    Jun 2004
    Location
    India
    Posts
    1,185
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    thank you Jonathan; the script really worked

  13. #28
    Member
    Join Date
    Nov 2003
    Posts
    71

    Default

    We have a customer that gets about 500,000 spams a day dictionary attack-style. I implemented this dictionary rule and it seemed to work at first, but now after only a few days there are over 100,000 IP's in the deny_exim file and the load gets up to 50.0. What to do now??

  14. #29
    cPanel Partner NOC cPanel Partner NOC Badge rvskin's Avatar
    Join Date
    Feb 2003
    Posts
    397

    Default

    pphillips, if I am you, I will implement RBL, and HELO testing to reduce the IP being listed in the deny_exim file.
    RVSkin, a great experience for you, resellers and clients!
    http://www.RVSkin.com - The Most Intelligent Cpanel Skin, 23 Languages included.
    http://www.RVSiteBuilder.com - Website Builder for Hosting Provider.
    http://www.cPanelLicense.com - External cPanel License.

  15. #30
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    No, adding an RBL would increase load, not decrease it compared to a dictionary attack ACL because of the additional burden of the DNS lookups. Any RBL lookups should always be done after the dictionary attack ACL.

    pphillips, did you implement an hourly or daily cron as instructed to on the web page clear down the exim_deny file? If you don't do that your load will increase. The idea is to stop the attacks while they're happening then to remove the IP address once it has stopped.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

Similar Threads & Tags
Similar threads

  1. reinstall dictionary attack?
    By hostseeker in forum E-mail Discussions
    Replies: 1
    Last Post: 08-18-2007, 05:24 AM
  2. How to stop Dictionary Name attack
    By Belaird in forum E-mail Discussions
    Replies: 1
    Last Post: 06-25-2007, 03:32 PM
  3. Dictionary Attack
    By noimad1 in forum cPanel and WHM Discussions
    Replies: 13
    Last Post: 03-06-2007, 04:55 AM
  4. Which is the best Option to stop dictionary Attack SPAM
    By mohit in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 06-04-2006, 07:17 AM
  5. Dictionary attack
    By rmbnet in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 06-29-2004, 08:55 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube