PROXY protocol copies of the mail listeners, from the environment #475

Merged
jcoffey-dev merged 1 commits from feat/mail-proxy-listeners into main 2026-11-19 06:19:25 +00:00
1 Commits
Author SHA1 Message Date
jcoffey-dev ed1eaf8adf PROXY protocol copies of the mail listeners, from the environment
ci / fork-checks (pull_request) Skipped
ci / build (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 11m7s
Behind a load balancer that sends PROXY v2, the server needs listeners
that take the client's address from the header, believed from the load
balancer only. In Kubernetes the chart can't add listeners to a store, and
the store-wide trusted networks would make every listener, HTTP included,
expect a header from the pod network.

INBUXA_MAIL_PROXY_LISTENERS=smtp=10025,imaps=10993 gives each named mail
listener a copy on that port, with the same protocol and TLS, that trusts
PROXY headers from INBUXA_MAIL_PROXY_TRUSTED_NETWORKS only. The copies
aren't stored; the listeners they copy are unchanged. Each variable without
the other, an unknown listener, a port given twice and a network wider
than /8 are refused. K-C6.
2026-11-18 23:07:20 -07:00