mirror of
https://github.com/chatmail/relay.git
synced 2026-05-19 04:18:09 +00:00
Disable ratelimit module like other modules
This commit is contained in:
@@ -410,7 +410,7 @@ def _configure_rspamd(dkim_selector: str, mail_domain: str) -> bool:
|
|||||||
packages="rspamd",
|
packages="rspamd",
|
||||||
)
|
)
|
||||||
|
|
||||||
for module in ["phishing", "rbl", "hfilter"]:
|
for module in ["phishing", "rbl", "hfilter", "ratelimit"]:
|
||||||
disabled_module_conf = files.put(
|
disabled_module_conf = files.put(
|
||||||
name="disable phishing rspamd plugin",
|
name="disable phishing rspamd plugin",
|
||||||
src=importlib.resources.files(__package__).joinpath("rspamd/disabled.conf"),
|
src=importlib.resources.files(__package__).joinpath("rspamd/disabled.conf"),
|
||||||
@@ -443,13 +443,6 @@ def _configure_rspamd(dkim_selector: str, mail_domain: str) -> bool:
|
|||||||
)
|
)
|
||||||
need_restart |= groups_conf.changed
|
need_restart |= groups_conf.changed
|
||||||
|
|
||||||
ratelimit_conf = files.file(
|
|
||||||
name="disable rate limiting",
|
|
||||||
path="/etc/rspamd/local.d/ratelimit.conf",
|
|
||||||
present=False,
|
|
||||||
)
|
|
||||||
need_restart |= ratelimit_conf.changed
|
|
||||||
|
|
||||||
dkim_directory = "/var/lib/rspamd/dkim/"
|
dkim_directory = "/var/lib/rspamd/dkim/"
|
||||||
dkim_key_path = f"{dkim_directory}{mail_domain}.{dkim_selector}.key"
|
dkim_key_path = f"{dkim_directory}{mail_domain}.{dkim_selector}.key"
|
||||||
dkim_dns_file = f"{dkim_directory}{mail_domain}.{dkim_selector}.zone"
|
dkim_dns_file = f"{dkim_directory}{mail_domain}.{dkim_selector}.zone"
|
||||||
|
|||||||
Reference in New Issue
Block a user