From 1edbb2304e0854808ae12f59d65fac93ccbe811e Mon Sep 17 00:00:00 2001 From: Fabio Date: Fri, 2 Sep 2022 15:24:06 -0300 Subject: [PATCH] Customize spam action thresholds --- charts/rspamd/v0.1.0/templates/locald-configmap.yaml | 6 +++++- charts/rspamd/v0.1.0/values.yaml | 5 +++++ 2 files changed, 10 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 d260c9e..312f761 100644 --- a/charts/rspamd/v0.1.0/templates/locald-configmap.yaml +++ b/charts/rspamd/v0.1.0/templates/locald-configmap.yaml @@ -72,4 +72,8 @@ data: 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 + autolearn = true + actions.conf: |- + reject = {{ .Values.rspamd.actions.reject }}; # Reject when reaching this score + add_header = {{ .Values.rspamd.actions.add_header }}; # Add header when reaching this score + greylist = {{ .Values.rspamd.actions.greylist }}; # Apply greylisting when reaching this score (will emit `soft reject action`) \ No newline at end of file diff --git a/charts/rspamd/v0.1.0/values.yaml b/charts/rspamd/v0.1.0/values.yaml index d315d1c..d526adc 100644 --- a/charts/rspamd/v0.1.0/values.yaml +++ b/charts/rspamd/v0.1.0/values.yaml @@ -80,6 +80,11 @@ rspamd: skip_local: "false" skip_authenticated: "false" + actions: + reject: 15 + add_header: 6 + greylist: 4 + workerProxy: milter: "yes" timeout: "120s"