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 need_restart |= redis_conf.changed
ratelimit_conf = files.put( ratelimit_conf = files.file(
name="enable rate limiting", name="disable rate limiting",
src=importlib.resources.files(__package__).joinpath("rspamd/ratelimit.conf"), path="/etc/rspamd/local.d/ratelimit.conf",
dest="/etc/rspamd/local.d/ratelimit.conf", present=False,
user="root",
group="root",
mode="644",
) )
need_restart |= ratelimit_conf.changed 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";