commit e8d2ef3: Create bayes_expiry.conf

GitHub noreply at github.com
Mon Jul 29 17:56:58 UTC 2024


Author: Dmitriy Alekseev
Date: 2024-05-16 02:47:18 +0300
URL: https://github.com/rspamd/rspamd/commit/e8d2ef375f50ff87309c6681a40893f7b14f914d

Create bayes_expiry.conf

---
 .../{external_relay.conf => bayes_expiry.conf}      | 21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 deletions(-)

diff --git a/conf/modules.d/external_relay.conf b/conf/modules.d/bayes_expiry.conf
similarity index 51%
copy from conf/modules.d/external_relay.conf
copy to conf/modules.d/bayes_expiry.conf
index 7d52ced0d..be63ff9bc 100644
--- a/conf/modules.d/external_relay.conf
+++ b/conf/modules.d/bayes_expiry.conf
@@ -1,22 +1,25 @@
 # Please don't modify this file as your changes might be overwritten with
 # the next update.
 #
-# You can modify 'local.d/external_relay.conf' to add and merge
+# You can modify 'local.d/bayes_expiry.conf' to add and merge
 # parameters defined inside this section
 #
-# You can modify 'override.d/external_relay.conf' to strictly override all
+# You can modify 'override.d/bayes_expiry.conf' to strictly override all
 # parameters defined inside this section
 #
 # See https://rspamd.com/doc/faq.html#what-are-the-locald-and-overrided-directories
 # for details
 #
-# Module documentation can be found at  https://rspamd.com/doc/modules/external_relay.html
+# Module documentation can be found at  https://rspamd.com/doc/modules/bayes_expiry.html
 
-external_relay {
-  # This module is default-disabled
-  enabled = false;
+bayes_expiry {
+  interval = 60;
+  count = 1000;
+  epsilon_common = 0.01;
+  common_ttl = 10 * 86400;
+  significant_factor = 3.0 / 4.0;
+  cluster_nodes = 0;
 
-  .include(try=true,priority=5) "${DBDIR}/dynamic/external_relay.conf"
-  .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/external_relay.conf"
-  .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/external_relay.conf"
+  .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/bayes_expiry.conf"
+  .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/bayes_expiry.conf"
 }


More information about the Commits mailing list