From 52bcb24eaa2c2093dfcad66b0595d021027cf3a2 Mon Sep 17 00:00:00 2001 From: elandorr <56206745+elandorr@users.noreply.github.com> Date: Thu, 20 Apr 2023 04:00:30 +0000 Subject: [PATCH] adapted to v2 release and a docker change - v2 changed the path - docker deprecated/removed the scale command, you have to do it like this now --- docs/antispam.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/antispam.rst b/docs/antispam.rst index 7b0c7373..1d484493 100644 --- a/docs/antispam.rst +++ b/docs/antispam.rst @@ -83,8 +83,8 @@ Via the multimap filter it is possible to block emails from a sender domain. See The following steps have to be taken to configure an additional symbol (rule) that uses the multimap filter to block emails from sender domain. -1. In the overrides folder create a configuration file for the multimap filter. This configuration is included by Rspamd in the main multimap configuration file. This means you do not have to use the "multimap {}" element. Files in the /mailu/overrides/rspamd/ folder are mapped to /etc/rspamd/override.d. - Create the file /mailu/overrides/rspamd/multimap.conf with contents: +1. In the overrides folder create a configuration file for the multimap filter. This configuration is included by Rspamd in the main multimap configuration file. This means you do not have to use the "multimap {}" element. Files in the ``/mailu/overrides/rspamd/`` folder are mapped to ``/overrides``. + Create the file ``/mailu/overrides/rspamd/multimap.conf`` with contents: .. code-block:: bash @@ -93,7 +93,7 @@ The following steps have to be taken to configure an additional symbol (rule) th local_bl_domain { type = "from"; filter = "email:domain"; - map = "/etc/rspamd/override.d/blacklist.inc"; + map = "/overrides/blacklist.inc"; score = 14; description = "Senders domain part is on the local blacklist"; group = "local_bl"; @@ -129,8 +129,8 @@ The following steps have to be taken to configure an additional symbol (rule) th .. code-block:: bash - docker compose scale antispam=0 - docker compose scale antispam=1 + docker compose up -d --scale antispam=0 + docker compose up -d --scale antispam=1 4. (Optional) Check if the custom symbol is loaded. To access the Rspamd webgui, log in the Mailu administration web interface with a user that is an administrator and go to Antispam. In Rspamd webgui go to tab Symbols. Change the group drop-down box to local_bl. The following additional rule will be listed.