Skip to content

Commit 91922d6

Browse files
committed
Fix spfTestsDisbled logic; add rblRejectDomains configuration
1 parent 8383b03 commit 91922d6

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

charts/docker-mailserver/templates/configmap.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ data:
3434
{{- if .Values.haproxy.enabled }} # Necessary to permit proxy protocol from haproxy to postscreen
3535
postscreen_upstream_proxy_protocol = haproxy
3636
{{ end }}
37-
{{ if .Values.spfTestsDisabled }}
38-
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, reject_unauth_pipelining, reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname, reject_unknown_recipient_domain, reject_rbl_client zen.spamhaus.org, reject_rbl_client bl.spamcop.net
37+
{{ if not .Values.spfTestsDisabled }}
38+
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, reject_unauth_pipelining, reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname, reject_unknown_recipient_domain, reject_rbl_client zen.spamhaus.org, reject_rbl_client bl.spamcop.net{{ range .Values.rblRejectDomains }}, reject_rbl_client {{ . }}{{ end }}
3939
{{ end -}}
4040
dovecot-services.cf: |
4141
{{- if .Values.haproxy.enabled }}

charts/docker-mailserver/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ demoMode:
6767
# spfTestsDisabled will ignore all SPF-based spam tests, in the event that you cannot obtain valid source IP details on ingress emails
6868
spfTestsDisabled: false
6969

70+
# List extra RBL domains to use for hard reject filtering
71+
rblRejectDomains: []
72+
7073
# If you're using David's hacked-up automatic external haproxy design, then enable
7174
# the following to launch the appropriate containers to call back to the haproxy webhook
7275
# Details at https://www.funkypenguin.co.nz/project/a-simple-free-load-balancer-for-your-kubernetes-cluster/

0 commit comments

Comments
 (0)