Browse Source

Add custom whitelist bonus symbol for RspamD

master
parent
commit
7249795c13
  1. 11
      charts/rspamd/v0.1.0/templates/locald-configmap.yaml
  2. 2
      charts/rspamd/v0.1.0/values.yaml

11
charts/rspamd/v0.1.0/templates/locald-configmap.yaml

@ -77,6 +77,10 @@ data:
reject = {{ .Values.rspamd.actions.reject }}; # Reject when reaching this score reject = {{ .Values.rspamd.actions.reject }}; # Reject when reaching this score
add_header = {{ .Values.rspamd.actions.add_header }}; # Add header 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`) greylist = {{ .Values.rspamd.actions.greylist }}; # Apply greylisting when reaching this score (will emit `soft reject action`)
{{- if hasKey .Values.rspamd.settings.symbolsWhitelist "score" }}
scores.conf: |-
"CUSTOM_WHITELIST_BONUS" = {{ .Values.rspamd.settings.symbolsWhitelist.score }};
{{- end }}
{{- with .Values.rspamd.settings.symbolsWhitelist.entries }} {{- with .Values.rspamd.settings.symbolsWhitelist.entries }}
settings.conf: |- settings.conf: |-
{{- range . }} {{- range . }}
@ -90,9 +94,10 @@ data:
{{ . | quote }}, {{ . | quote }},
{{- end }} {{- end }}
]; ];
{{- if hasKey . "score" }} # Explicitly enable a custom adjustment symbol
score = {{ .score }}; symbols_enabled = [
{{- end }} "CUSTOM_WHITELIST_BONUS"
];
} }
} }
{{- end }} {{- end }}

2
charts/rspamd/v0.1.0/values.yaml

@ -87,6 +87,7 @@ rspamd:
settings: settings:
symbolsWhitelist: symbolsWhitelist:
score: "-3.0"
entries: [] entries: []
# Example: # Example:
# entries: # entries:
@ -95,7 +96,6 @@ rspamd:
# from: example@interlegis.leg.br # from: example@interlegis.leg.br
# symbolsDisabled: # symbolsDisabled:
# - FREEMAIL_REPLYTO_NEQ_FROM # - FREEMAIL_REPLYTO_NEQ_FROM
# score: -3.0
antivirus: antivirus:
clamav: {} clamav: {}

Loading…
Cancel
Save