Browse Source

Add section to configure clamav antivirus

master
Fábio Kaiser Rauber 2 years ago
parent
commit
3ca354c293
  1. 13
      charts/rspamd/v0.1.0/templates/locald-configmap.yaml
  2. 3
      charts/rspamd/v0.1.0/values.yaml

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

@ -76,4 +76,15 @@ data:
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`)
greylist = {{ .Values.rspamd.actions.greylist }}; # Apply greylisting when reaching this score (will emit `soft reject action`)
antivirus.conf: |-
clamav {
{{- range $key, $value := .Values.rspamd.antivirus.clamav }}
{{ if or (eq $value "true") (eq $value "false") -}}
{{ $key }} = {{ $value }};
{{- else -}}
{{ $key }} = "{{ $value }}";
{{- end -}}
{{- end }}
}

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

@ -84,6 +84,9 @@ rspamd:
reject: 15
add_header: 6
greylist: 4
antivirus:
clamav: {}
workerProxy:
milter: "yes"

Loading…
Cancel
Save