Skip to content

Commit

Permalink
feat: add the possibility to disable RSPAMD (#337)
Browse files Browse the repository at this point in the history
* feat: bump mailu version to 2024.06.3

Signed-off-by: fastlorenzo <git@bernardi.be>

* added flag to enable rspamd

* feat: add the possibility to disable RSPAMD

Signed-off-by: fastlorenzo <git@bernardi.be>

---------

Signed-off-by: fastlorenzo <git@bernardi.be>
Co-authored-by: fastlorenzo <git@bernardi.be>
  • Loading branch information
migs35323 and fastlorenzo authored Jun 24, 2024
1 parent d35ecce commit bb5a3ab
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions mailu/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,7 @@ Check that the deployed pods are all running.

| Name | Description | Value |
| ---------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------- |
| `rspamd.enabled` | Enable rspamd | `true` |
| `rspamd.overrides` | Enable rspamd overrides | `{}` |
| `rspamd.antivirusAction` | Action to take when an virus is detected. Possible values: `reject` or `discard` | `discard` |
| `rspamd.logLevel` | Override default log level | `""` |
Expand Down
2 changes: 2 additions & 0 deletions mailu/templates/rspamd/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
{{- if .Values.rspamd.enabled }}
apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }}
kind: Deployment
metadata:
Expand Down Expand Up @@ -146,3 +147,4 @@ spec:
{{- if .Values.rspamd.extraVolumes }}
{{- include "common.tplvalues.render" (dict "value" .Values.rspamd.extraVolumes "context" $) | nindent 8 }}
{{- end }}
{{ end }}
2 changes: 1 addition & 1 deletion mailu/templates/rspamd/pvc.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
{{- if not .Values.persistence.single_pvc }}
{{- if and (not .Values.persistence.single_pvc) .Values.rspamd.enabled }}
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
Expand Down
2 changes: 2 additions & 0 deletions mailu/templates/rspamd/service.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
{{- if .Values.rspamd.enabled }}
apiVersion: v1
kind: Service
metadata:
Expand All @@ -22,3 +23,4 @@ spec:
- name: rspamd-http
protocol: TCP
port: 11334
{{ end }}
2 changes: 2 additions & 0 deletions mailu/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1517,6 +1517,8 @@ dovecot:

## @section rspamd parameters
rspamd:
## @param rspamd.enabled Enable rspamd
enabled: true
## @param rspamd.overrides Enable rspamd overrides
## More info here: https://mailu.io/master/faq.html#how-can-i-override-settings
## Example:
Expand Down

0 comments on commit bb5a3ab

Please # to comment.