Let the submission listener run without the PROXY protocol #87
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "submission-no-proxy"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
KARTA_SMTP_TRUSTED_PROXIESapplied to every listener. A deployment whose port 25 comes in through a relay with the PROXY protocol (staging: HAProxy on a second host) therefore could not also let an application on the same host submit mail directly: the submission listeners wanted the header too.KARTA_SMTP_SUBMISSION_TRUSTED_PROXIESgives the submission listeners (587, 465) their own list; an empty value means no proxy. Unset, they followKARTA_SMTP_TRUSTED_PROXIESexactly as before, so nothing changes for an existing deployment. Spaces around the ranges are now ignored.Changed:
config/runtime.exs, the configuration reference and the SMTP listeners guide, CHANGELOG (Unreleased). Nothing else.Verified:
test/karta/runtime_config_test.exsrun once (16 tests pass, 4 of them new: no proxies, inheritance, empty override, own ranges),Code.format_string!clean on the two files. Not verified: the full suite and credo (manager's check); behaviour against a live listener (needs the certificate and the deployment).🤖 Generated with Claude Code