Skip to content

Commit

Permalink
Merge pull request #122 from AlMaVizca/add-smtp-proxy
Browse files Browse the repository at this point in the history
Add smtp to proxy protocol setup
  • Loading branch information
cfis authored Jul 2, 2024
2 parents 8d6d0e6 + f442a56 commit a95f358
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/docker-mailserver/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "14.0.0"
description: A fullstack but simple mailserver (smtp, imap, antispam, antivirus, ssl...) using Docker.
name: docker-mailserver
version: 4.0.0
version: 4.0.1
sources:
- https://github.com/docker-mailserver/docker-mailserver-helm
maintainers:
Expand Down
2 changes: 2 additions & 0 deletions charts/docker-mailserver/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ spec:
- name: submission
containerPort: 587
{{- if .Values.proxyProtocol.enabled }}
- name: smtp-proxy
containerPort: 12525
- name: subs-proxy
containerPort: 10465
- name: sub-proxy
Expand Down
3 changes: 3 additions & 0 deletions charts/docker-mailserver/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ spec:
nodePort: {{ default "30587" .Values.service.nodePort.submission }}
{{ end }}
{{- if .Values.proxyProtocol.enabled }}
- name: smtp-proxy
targetPort: smtp-proxy
port: 12525
- name: subs-proxy
targetPort: subs-proxy
port: 10465
Expand Down
6 changes: 6 additions & 0 deletions charts/docker-mailserver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,12 @@ configMaps:
-o milter_macro_daemon_name=ORIGINATING
-o cleanup_service_name=sender-cleanup
-o smtpd_upstream_proxy_protocol=haproxy
# Smtp with proxy
12525 inet n - n - 1 postscreen
-o syslog_name=postfix/smtp-proxy
-o postscreen_upstream_proxy_protocol=haproxy
-o postscreen_cache_map=btree:$data_directory/postscreen_10025_cache
EOS
{{- end }}
Expand Down

0 comments on commit a95f358

Please sign in to comment.