diff --git a/charts/rspamd/v0.1.0/templates/locald-configmap.yaml b/charts/rspamd/v0.1.0/templates/locald-configmap.yaml index 4a73144..f28d5d4 100644 --- a/charts/rspamd/v0.1.0/templates/locald-configmap.yaml +++ b/charts/rspamd/v0.1.0/templates/locald-configmap.yaml @@ -77,6 +77,23 @@ data: 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`) + {{- with .Values.rspamd.settings.symbolsWhitelist.entries }} + settings.conf: |- + {{- range . }} + {{ .name }} { + priority = {{ .priority | default "high" }}; + from = {{ .from | quote }}; + + apply { + symbols_disabled = [ + {{- range .symbolsDisabled }} + {{ . | quote }}, + {{- end }} + ]; + } + } + {{- end }} + {{- end }} antivirus.conf: |- clamav { {{- range $key, $value := .Values.rspamd.antivirus.clamav }} diff --git a/charts/rspamd/v0.1.0/values.yaml b/charts/rspamd/v0.1.0/values.yaml index a8baa61..bc9ac27 100644 --- a/charts/rspamd/v0.1.0/values.yaml +++ b/charts/rspamd/v0.1.0/values.yaml @@ -84,6 +84,17 @@ rspamd: reject: 15 add_header: 6 greylist: 4 + + settings: + symbolsWhitelist: + entries: [] + # Example: + # entries: + # - name: no_reply_whitelist + # priority: high + # from: example@interlegis.leg.br + # symbolsDisabled: + # - FREEMAIL_REPLYTO_NEQ_FROM antivirus: clamav: {}