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.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Please don't modify this file as your changes might be overwritten with
  2. # the next update.
  3. #
  4. # You can modify '$LOCAL_CONFDIR/rspamd.conf.local.override' to redefine
  5. # parameters defined on the top level
  6. #
  7. # You can modify '$LOCAL_CONFDIR/rspamd.conf.local' to add
  8. # parameters defined on the top level
  9. #
  10. # For specific modules or configuration you can also modify
  11. # '$LOCAL_CONFDIR/local.d/file.conf' - to add your options or rewrite defaults
  12. # '$LOCAL_CONFDIR/override.d/file.conf' - to override the defaults
  13. #
  14. # See https://rspamd.com/doc/tutorials/writing_rules.html for details
  15. ratelimit {
  16. #rates {
  17. # Limit for all mail per recipient (rate 2 per minute)
  18. #to = "2 / 1min";
  19. # Limit for all mail per one source ip (rate 1.5 per minute)
  20. #to_ip = "3 / 2min";
  21. # Limit for all mail per one source ip and from address (rate 1 per minute)
  22. #to_ip_from = "1 / 1min";
  23. # Limit for all bounce mail (rate 2 per hour)
  24. #bounce_to = "2 / 1h";
  25. # Limit for bounce mail per one source ip (rate 1 per hour)
  26. #bounce_to_ip = "1 / 1h";
  27. # Limit for all mail per authenticated user (rate 1 per minute)
  28. #user = "1 / 1min";
  29. #}
  30. # If symbol is specified, then it is inserted instead of setting result
  31. #symbol = "R_RATELIMIT";
  32. # If info_symbol is specified, then it is inserted next to set the result
  33. #info_symbol = "R_RATELIMIT_INFO";
  34. whitelisted_rcpts = "postmaster,mailer-daemon";
  35. max_rcpt = 5;
  36. .include(try=true,priority=5) "${DBDIR}/dynamic/ratelimit.conf"
  37. .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/ratelimit.conf"
  38. .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/ratelimit.conf"
  39. }