diff --git a/charts/rspamd/v0.1.0/templates/locald-configmap.yaml b/charts/rspamd/v0.1.0/templates/locald-configmap.yaml index 312f761..4a73144 100644 --- a/charts/rspamd/v0.1.0/templates/locald-configmap.yaml +++ b/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`) \ No newline at end of file + 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 }} + } + \ No newline at end of file diff --git a/charts/rspamd/v0.1.0/values.yaml b/charts/rspamd/v0.1.0/values.yaml index d526adc..a8baa61 100644 --- a/charts/rspamd/v0.1.0/values.yaml +++ b/charts/rspamd/v0.1.0/values.yaml @@ -84,6 +84,9 @@ rspamd: reject: 15 add_header: 6 greylist: 4 + + antivirus: + clamav: {} workerProxy: milter: "yes"