revert "Significantly lower ratelimit"

This commit is contained in:
missytake 2023-12-26 12:45:58 +01:00 committed by link2xt
parent fd679af577
commit 265403e110
2 changed files with 4 additions and 16 deletions

View File

@ -459,13 +459,10 @@ def _configure_rspamd(dkim_selector: str, mail_domain: str) -> bool:
)
need_restart |= redis_conf.changed
ratelimit_conf = files.put(
name="enable rate limiting",
src=importlib.resources.files(__package__).joinpath("rspamd/ratelimit.conf"),
dest="/etc/rspamd/local.d/ratelimit.conf",
user="root",
group="root",
mode="644",
ratelimit_conf = files.file(
name="disable rate limiting",
path="/etc/rspamd/local.d/ratelimit.conf",
present=False,
)
need_restart |= ratelimit_conf.changed

View File

@ -1,9 +0,0 @@
rates {
user = {
bucket = {
burst = 60;
rate = "40 / 1min";
}
}
}
whitelisted_user = "/etc/rspamd/local.d/whitelisted_users_ratelimit.map";