diff --git a/charts/mailu/templates/_services.tpl b/charts/mailu/templates/_services.tpl index 8f5cecdf..8339cf47 100644 --- a/charts/mailu/templates/_services.tpl +++ b/charts/mailu/templates/_services.tpl @@ -208,6 +208,11 @@ Service fqdn (within cluster) can be retrieved with `mailu.SERVICE.serviceFqdn` {{- end -}} {{- end -}} +{{- /* Fallback to standard mail ports when using external ingress */ -}} +{{- if not $enabledPorts -}} + {{- $enabledPorts = list "25" "465" "587" "143" "993" -}} +{{- end -}} + {{- $enabledPortsString := join "," $enabledPorts -}} {{- printf "%s" $enabledPortsString -}} {{- end -}}