mailin-test: the client's address in both mail-in modes (K-C6) #25

Merged
jcoffey-dev merged 1 commits from feat/mailin-test into main 2026-11-19 06:10:40 +00:00
Owner

lab/network/mailin-test.sh sends to alice from the bench and reads back the address in the Received header three ways:

  • straight to the mail Service (Local mode);
  • through an HAProxy on the kind network that sends PROXY v2 and is the only trusted address;
  • with a forged PROXY header from the untrusted bench.

All three pass with inbuxa/inbuxa-server#475 and inbuxa/inbuxa-charts#24. The test puts the chart back (PROXY off) and removes HAProxy when it's done. HAProxy listens on 25, as a cloud load balancer would, because the server reads that port from the header.

`lab/network/mailin-test.sh` sends to alice from the bench and reads back the address in the Received header three ways: - straight to the mail Service (Local mode); - through an HAProxy on the kind network that sends PROXY v2 and is the only trusted address; - with a forged PROXY header from the untrusted bench. All three pass with inbuxa/inbuxa-server#475 and inbuxa/inbuxa-charts#24. The test puts the chart back (PROXY off) and removes HAProxy when it's done. HAProxy listens on 25, as a cloud load balancer would, because the server reads that port from the header.
jcoffey-dev added 1 commit 2026-11-19 06:08:10 +00:00
Sends to alice from the bench and reads back the address in the Received
header: straight to the mail Service (Local), through an HAProxy that sends
PROXY v2 and is the only address trusted, and a forged PROXY header from
the untrusted bench, which must not be believed.
jcoffey-dev merged commit 8e060e3d82 into main 2026-11-19 06:10:40 +00:00
jcoffey-dev deleted branch feat/mailin-test 2026-11-19 06:10:40 +00:00
Sign in to join this conversation.