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

123456789101112131415161718192021222324252627282930313233343536373839
  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 / 1m";
  19. # Limit for all mail per one source ip (rate 1.5 per minute)
  20. #to_ip = "3 / 2m";
  21. # Limit for all mail per one source ip and from address (rate 1 per minute)
  22. #to_ip_from = "1 / 1m";
  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 / 1m";
  29. #}
  30. # If symbol is specified, then it is inserted instead of setting result
  31. #symbol = "R_RATELIMIT";
  32. whitelisted_rcpts = "postmaster,mailer-daemon";
  33. max_rcpt = 5;
  34. .include(try=true,priority=5) "${DBDIR}/dynamic/ratelimit.conf"
  35. .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/ratelimit.conf"
  36. .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/ratelimit.conf"
  37. }