Browse Source

Allow for custom symbols whitelist in rspamd

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

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

@ -77,6 +77,23 @@ 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`)
{{- 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: |- antivirus.conf: |-
clamav { clamav {
{{- range $key, $value := .Values.rspamd.antivirus.clamav }} {{- range $key, $value := .Values.rspamd.antivirus.clamav }}

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

@ -85,6 +85,17 @@ rspamd:
add_header: 6 add_header: 6
greylist: 4 greylist: 4
settings:
symbolsWhitelist:
entries: []
# Example:
# entries:
# - name: no_reply_whitelist
# priority: high
# from: example@interlegis.leg.br
# symbolsDisabled:
# - FREEMAIL_REPLYTO_NEQ_FROM
antivirus: antivirus:
clamav: {} clamav: {}

Loading…
Cancel
Save