Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions helm/charts/smtp-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ This is the third of four Pingmailer mail-plane charts. Install order:
start && sleep infinity`).
- A `Service` on port 25 (SMTP). Port 587 (submission, STARTTLS-enforced)
is added when `postfix.submission.enabled=true` (the default).
- When submission is enabled, `main.cf` sets `smtpd_sender_login_maps` (inline
`regexp`) and `smtpd_sender_restrictions = reject_authenticated_sender_login_mismatch`,
so an authenticated client can only use its own address in `MAIL FROM`.
Unauthenticated port-25 traffic and null senders (bounces) are unchanged.
- A `PersistentVolumeClaim` for `/var/spool/postfix` — the mail queue
must survive pod restarts so in-flight messages aren't dropped.
- An optional TLS `Secret` mount: when `tlsSecret.name` is set, the chart
Expand Down
7 changes: 7 additions & 0 deletions helm/charts/smtp-server/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ data:
check_recipient_access hash:/etc/postfix/recipient_access
{{- end }}
reject
{{- if .Values.postfix.submission.enabled }}

# Bind MAIL FROM to the raven-approved SASL login; $$ escapes Postfix macros.
smtpd_sender_login_maps = regexp:{ {/^(.+)$$/ $${1}} }
smtpd_sender_restrictions =
reject_authenticated_sender_login_mismatch
{{- end }}

# --- Rate limits ---
smtpd_client_connection_rate_limit = {{ .Values.postfix.rateLimits.connectionPerClient }}
Expand Down