1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-01-18 03:21:36 +02:00
2786: adapted to v2 release and a docker change r=mergify[bot] a=elandorr

- v2 changed the path
- docker deprecated/removed the scale command, you have to do it like this now

## What type of PR?
documentation


Co-authored-by: elandorr <56206745+elandorr@users.noreply.github.com>
This commit is contained in:
bors[bot] 2023-04-20 11:19:15 +00:00 committed by GitHub
commit 91f4ac609f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,7 @@ 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 antispam --force-recreate -d
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.