Rspamd with ratelimit module.

Discussion in 'ISPConfig 3 Priority Support' started by pvanthony, Mar 26, 2021.

  1. pvanthony

    pvanthony Active Member HowtoForge Supporter

    It seems the rspamd ratelimit module in debian 10 and centos 8 is not working anymore.
    Can anyone verify this?
    Here is my config for the ratelimit.conf
    Code:
    symbol = "RATELIMIT";
    rates {
          only_3_per_hour = {
                             selector = 'user.lower';
                             bucket = {
                                      burst = 3;
                                      rate = "1 / 1min";
                             }
          }
    }
    After sending about 10 quick emails, it still does not stop me from sending more.
    Tried changing the rate to 0.06/1min and still does not stop me from sending more.
    Any advice on how to get rspamd's ratelimit to work on ispconfig 3.2.3?
     
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Code:
    rates {
            user = {
                    bucket = {
                            burst = 3;
                            rate = "1 / 1m";
                    }
            }
    }
    Should work, I think.
     
    atle and pvanthony like this.
  3. pvanthony

    pvanthony Active Member HowtoForge Supporter

    Yes! Yes! Yes! It is working!
    Thank you very much for the config.

    Here is the strange thing, on CentOS 7, rspamd 2.7, my config works.
    On Debian 10, CentOS 8, rspamd 2.7, my config does not work and your config works.
    Very strange. Any idea why?
     
  4. pvanthony

    pvanthony Active Member HowtoForge Supporter

    Any idea why the above post can only be seen after login? Is there something that needs to be done so that it can be seen even without login?
     
  5. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    No, sorry.

    I can view it in a private tab.
     

Share This Page