From b7e315c1028b87927a7f66e7174b7a171c3d3b04 Mon Sep 17 00:00:00 2001 From: Fabio Date: Thu, 1 Sep 2022 11:05:55 -0300 Subject: [PATCH] Enabled autolearn and redis conf for bayes --- charts/rspamd/v0.1.0/templates/locald-configmap.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/charts/rspamd/v0.1.0/templates/locald-configmap.yaml b/charts/rspamd/v0.1.0/templates/locald-configmap.yaml index 8e676fb..d260c9e 100644 --- a/charts/rspamd/v0.1.0/templates/locald-configmap.yaml +++ b/charts/rspamd/v0.1.0/templates/locald-configmap.yaml @@ -67,4 +67,9 @@ data: milter_headers.conf: |- extended_spam_headers = {{ .Values.rspamd.milter.headers.extended_spam_headers }}; skip_local = {{ .Values.rspamd.milter.headers.skip_local }}; - skip_authenticated = {{ .Values.rspamd.milter.headers.skip_authenticated }}; \ No newline at end of file + skip_authenticated = {{ .Values.rspamd.milter.headers.skip_authenticated }}; + classifier-bayes.conf: |- + backend = "redis"; + servers = "{{ printf "%s-%s" .Release.Name "redis-master" | trunc 63 | trimSuffix "-" }}:6379"; + password = "{{ .Values.redis.auth.password }}"; + autolearn = true \ No newline at end of file