diff --git a/docs/manual-guides/Rspamd/u_e-rspamd.de.md b/docs/manual-guides/Rspamd/u_e-rspamd.de.md index 1842b351f..9cba26e44 100644 --- a/docs/manual-guides/Rspamd/u_e-rspamd.de.md +++ b/docs/manual-guides/Rspamd/u_e-rspamd.de.md @@ -109,6 +109,7 @@ Wenn redis-cli sich beschwert über... ...das Schlüsselmuster nicht gefunden wurde und somit keine Daten zum Löschen vorhanden sind - ist es in Ordnung. ## CLI-Werkzeuge + === "docker compose (Plugin)" ``` bash @@ -233,6 +234,7 @@ GLOBAL_RCPT_BL { ``` 3. Speichern Sie die Datei und starten Sie Rspamd neu: + === "docker compose (Plugin)" ``` bash @@ -355,7 +357,7 @@ Danach müssen Sie die Konfigurationsparameter des Modules in `data/conf/rspamd/ Falls das Modul `my_plugin.lua` heißt, sollte die Datei wie folgt aussehen: ``` -# rspamd.conf.local +# rspamd.conf.local my_plugin { some_setting = "some value"; } @@ -364,13 +366,12 @@ my_plugin { Falls Ihr Modul keine zusätzlichen Konfigurationen benötigt, reicht es aus einen leeren Konfigurationsblock hinzuzufügen. Wie im folgenden Beispiel zu sehen: ``` -# rspamd.conf.local +# rspamd.conf.local my_plugin { } ``` Falls Sie keinen Konfigurationsblock hinzufügen, dann wird das Modul automatisch deaktiviert und im Logfile des rspamd-mailcow Containers sehen Sie folgende Nachricht: - ``` mailcowdockerized-rspamd-mailcow-1 | 2023-05-20 14:01:32 #1(main) ; cfg; rspamd_config_is_module_enabled: lua module my_plugin is enabled but has not been configured mailcowdockerized-rspamd-mailcow-1 | 2023-05-20 14:01:32 #1(main) ; cfg; rspamd_config_is_module_enabled: my_plugin disabling unconfigured lua module @@ -379,4 +380,5 @@ mailcowdockerized-rspamd-mailcow-1 | 2023-05-20 14:01:32 #1(main) ; cfg Falls Sie das Modul erfolgreich konfiguiert haben, dann sollte das Logfile des rspamd-mailcow Containers wie folgt aussehen: ``` -mailcowdockerized-rspamd-mailcow-1 | 2023-05-20 14:04:50 #1(main) <8ayxpf>; cfg; rspamd_init_lua_filters: init lua module my_plugin from /etc/rspamd/plugins.d//my_plugin.lua; digest: 5cb88961e5 \ No newline at end of file +mailcowdockerized-rspamd-mailcow-1 | 2023-05-20 14:04:50 #1(main) <8ayxpf>; cfg; rspamd_init_lua_filters: init lua module my_plugin from /etc/rspamd/plugins.d//my_plugin.lua; digest: 5cb88961e5 +``` diff --git a/docs/manual-guides/Rspamd/u_e-rspamd.en.md b/docs/manual-guides/Rspamd/u_e-rspamd.en.md index ff2d3c910..2b853f14d 100644 --- a/docs/manual-guides/Rspamd/u_e-rspamd.en.md +++ b/docs/manual-guides/Rspamd/u_e-rspamd.en.md @@ -108,8 +108,8 @@ If redis-cli complains about... ...the key pattern was not found and thus no data is available to delete - it is fine. - ## CLI tools + === "docker compose (Plugin)" ``` bash @@ -194,12 +194,6 @@ To reset custom defined thresholds, run: # or: docker-compose exec mysql-mailcow mysql -umailcow -p$DBPASS mailcow -e "delete from filterconf where option = 'highspamlevel' or option = 'lowspamlevel' and object = 'only-this-mailbox@example.org';" ``` -``` -source mailcow.conf -docker compose exec mysql-mailcow mysql -umailcow -p$DBPASS mailcow -e "delete from filterconf where option = 'highspamlevel' or option = 'lowspamlevel';" -# or: -# docker compose exec mysql-mailcow mysql -umailcow -p$DBPASS mailcow -e "delete from filterconf where option = 'highspamlevel' or option = 'lowspamlevel' and object = 'only-this-mailbox@example.org';" -``` ## Custom reject messages @@ -240,6 +234,7 @@ GLOBAL_RCPT_BL { ``` 3. Save the file and restart Rspamd: + === "docker compose (Plugin)" ``` bash @@ -361,7 +356,7 @@ Next, add any necessary configuration for your module to `data/conf/rspamd/rspam If you have a module named `my_plugin.lua`, configuration might look like the following: ``` -# rspamd.conf.local +# rspamd.conf.local my_plugin { some_setting = "some value"; } @@ -370,7 +365,7 @@ my_plugin { If your module does not require any additional configuration, simply add an empty configuration block, for example: ``` -# rspamd.conf.local +# rspamd.conf.local my_plugin { } ``` @@ -385,4 +380,4 @@ If you have successfully configured your module, the rspamd-mailcow container lo ``` mailcowdockerized-rspamd-mailcow-1 | 2023-05-20 14:04:50 #1(main) <8ayxpf>; cfg; rspamd_init_lua_filters: init lua module my_plugin from /etc/rspamd/plugins.d//my_plugin.lua; digest: 5cb88961e5 -``` \ No newline at end of file +```