diff --git a/charts/rspamd/v0.1.0/templates/locald-configmap.yaml b/charts/rspamd/v0.1.0/templates/locald-configmap.yaml index 0cad9f7..62d39b3 100644 --- a/charts/rspamd/v0.1.0/templates/locald-configmap.yaml +++ b/charts/rspamd/v0.1.0/templates/locald-configmap.yaml @@ -46,7 +46,9 @@ data: spam_header = "{{ .Values.rspamd.workerProxy.spamHeader }}"; # Use the specific spam header reject_message = "{{ .Values.rspamd.workerProxy.rejectMessage }}"; # Use custom rejection message worker-normal.inc: |- + {{ if eq .Values.rspamd.workerProxy.milter "yes" -}} # Disable worker-normal in Milter mode worker "normal" { enabled = false; - } \ No newline at end of file + } + {{- end -}} \ No newline at end of file