From 4da0ff1856ff8a39b308305ad9257710a39ffb46 Mon Sep 17 00:00:00 2001 From: enginefeeder101 Date: Tue, 26 Apr 2022 22:07:50 +0200 Subject: [PATCH] Documentation for configurable default spam threshold --- docs/antispam.rst | 2 ++ docs/configuration.rst | 4 ++++ setup/flavors/compose/mailu.env | 3 +++ towncrier/newsfragments/2328.feature | 1 + 4 files changed, 10 insertions(+) create mode 100644 towncrier/newsfragments/2328.feature diff --git a/docs/antispam.rst b/docs/antispam.rst index a95109e8..7971200c 100644 --- a/docs/antispam.rst +++ b/docs/antispam.rst @@ -43,6 +43,8 @@ Rspamd rejects non-compliant email messages and email messages that contain viru 66% (10/15) is less than 80%, so the email is classified as ham. This email message will go to the inbox folder. If the user wants email messages with a score of 10 (66%) to be classified as spam, then the user defined spam filter tolerance can be lowered to 65% in the administration web interface. + The default spam filter tolerance used for new users can be configured using the environment variable ``DEFAULT_SPAM_THRESHOLD``. See also: :ref:`_advanced_cfg`. + .. image:: assets/screenshots/SpamFiltering.png The location in the administration web interface where the spam filter and spam filter tolerance can be configured. diff --git a/docs/configuration.rst b/docs/configuration.rst index 198315c6..0df8633f 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -181,6 +181,8 @@ An example: Depending on your particular deployment you most probably will want to change the default. +.. _advanced_cfg: + Advanced settings ----------------- @@ -209,6 +211,8 @@ The ``TZ`` sets the timezone Mailu will use. The timezone naming convention usua .. _`TZ database name`: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones +The ``DEFAULT_SPAM_THRESHOLD`` (default: 80) setting is the default spam tolerance used when creating a new user. + Antivirus settings ------------------ diff --git a/setup/flavors/compose/mailu.env b/setup/flavors/compose/mailu.env index ed7ecfdd..675b80ef 100644 --- a/setup/flavors/compose/mailu.env +++ b/setup/flavors/compose/mailu.env @@ -173,6 +173,9 @@ LOG_LEVEL=WARNING # Timezone for the Mailu containers. See this link for all possible values https://en.wikipedia.org/wiki/List_of_tz_database_time_zones TZ=Etc/UTC +# Default spam threshold used for new users +DEFAULT_SPAM_THRESHOLD=80 + ################################### # Database settings ################################### diff --git a/towncrier/newsfragments/2328.feature b/towncrier/newsfragments/2328.feature new file mode 100644 index 00000000..f0d6eea7 --- /dev/null +++ b/towncrier/newsfragments/2328.feature @@ -0,0 +1 @@ +Configurable default spam threshold used for new users