mirror of
https://github.com/chatmail/relay.git
synced 2026-05-18 20:08:21 +00:00
rspamd: disable RBL checks
This commit is contained in:
@@ -408,6 +408,26 @@ def _configure_rspamd(dkim_selector: str, mail_domain: str) -> bool:
|
|||||||
)
|
)
|
||||||
need_restart |= phishing_conf.changed
|
need_restart |= phishing_conf.changed
|
||||||
|
|
||||||
|
rbl = files.put(
|
||||||
|
name="disable rbl rspamd plugin",
|
||||||
|
src=importlib.resources.files(__package__).joinpath("rspamd/rbl.conf"),
|
||||||
|
dest="/etc/rspamd/override.d/rbl.conf",
|
||||||
|
user="root",
|
||||||
|
group="root",
|
||||||
|
mode="644",
|
||||||
|
)
|
||||||
|
need_restart |= rbl.changed
|
||||||
|
|
||||||
|
options_inc = files.put(
|
||||||
|
name="disable fuzzy checks",
|
||||||
|
src=importlib.resources.files(__package__).joinpath("rspamd/options.inc"),
|
||||||
|
dest="/etc/rspamd/local.d/options.inc",
|
||||||
|
user="root",
|
||||||
|
group="root",
|
||||||
|
mode="644",
|
||||||
|
)
|
||||||
|
need_restart |= options_inc.changed
|
||||||
|
|
||||||
hfilter = files.put(
|
hfilter = files.put(
|
||||||
name="disable hfilter rspamd plugin",
|
name="disable hfilter rspamd plugin",
|
||||||
src=importlib.resources.files(__package__).joinpath("rspamd/hfilter.conf"),
|
src=importlib.resources.files(__package__).joinpath("rspamd/hfilter.conf"),
|
||||||
|
|||||||
1
cmdeploy/src/cmdeploy/rspamd/options.inc
Normal file
1
cmdeploy/src/cmdeploy/rspamd/options.inc
Normal file
@@ -0,0 +1 @@
|
|||||||
|
filters = "dkim";
|
||||||
4
cmdeploy/src/cmdeploy/rspamd/rbl.conf
Normal file
4
cmdeploy/src/cmdeploy/rspamd/rbl.conf
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
url_whitelist = [];
|
||||||
|
|
||||||
|
rbls {
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user