Browse Source

Add section to configure clamav antivirus

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

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

@ -77,3 +77,14 @@ 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`)
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

@ -85,6 +85,9 @@ rspamd:
add_header: 6
greylist: 4
antivirus:
clamav: {}
workerProxy:
milter: "yes"
timeout: "120s"

Loading…
Cancel
Save