You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ratelimit.conf 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # Please don't modify this file as your changes might be overwritten with
  2. # the next update.
  3. #
  4. # You can modify 'local.d/ratelimit.conf' to add and merge
  5. # parameters defined inside this section
  6. #
  7. # You can modify 'override.d/ratelimit.conf' to strictly override all
  8. # parameters defined inside this section
  9. #
  10. # See https://rspamd.com/doc/faq.html#what-are-the-locald-and-overrided-directories
  11. # for details
  12. #
  13. # Module documentation can be found at https://rspamd.com/doc/modules/ratelimit.html
  14. ratelimit {
  15. #rates {
  16. # Predefined ratelimit
  17. #to = {
  18. # bucket = {
  19. # burst = 100;
  20. # rate = 0.01666666666666666666; # leak 1 message per minute
  21. # }
  22. #}
  23. # or define it with selector
  24. #other_limit_alt = {
  25. # selector = 'rcpts:addr.take_n(5)';
  26. # bucket = {
  27. # burst = 100;
  28. # rate = "1 / 1m"; # leak 1 message per minute
  29. # }
  30. #}
  31. #}
  32. # If symbol is specified, then it is inserted *instead* of setting result to soft reject
  33. #symbol = "R_RATELIMIT";
  34. # If info_symbol is specified, then it is inserted next to set the result
  35. #info_symbol = "R_RATELIMIT_INFO";
  36. whitelisted_rcpts = "postmaster,mailer-daemon";
  37. .include(try=true,priority=5) "${DBDIR}/dynamic/ratelimit.conf"
  38. .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/ratelimit.conf"
  39. .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/ratelimit.conf"
  40. }