diff options
author | Heiko Schlittermann (HS12-RIPE) <hs@schlittermann.de> | 2020-10-03 18:58:11 +0200 |
---|---|---|
committer | Heiko Schlittermann (HS12-RIPE) <hs@schlittermann.de> | 2020-10-04 12:31:07 +0200 |
commit | ee359040f0c1e78c057bb1e533059c5c3d9e2c69 (patch) | |
tree | 7a16f568bfc3cba0944a76d22cc8052fcf897d8c /test/scripts/4030-proxy-protocol | |
parent | db889856a56c1da9d18fc2f676b4aad2d45dc585 (diff) |
Testsuite: Add test for proxy and -bh (Bug 2656)
Diffstat (limited to 'test/scripts/4030-proxy-protocol')
-rw-r--r-- | test/scripts/4030-proxy-protocol/4031 | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/test/scripts/4030-proxy-protocol/4031 b/test/scripts/4030-proxy-protocol/4031 new file mode 100644 index 000000000..ecf3e827b --- /dev/null +++ b/test/scripts/4030-proxy-protocol/4031 @@ -0,0 +1,40 @@ +# proxy-protocol proxy on inbound -bh +# +### non-prox plain receive +exim -bh 127.0.0.2 +HELO clientname +MAIL FROM: <a@test.ex> +RCPT TO:<b@test.ex> +DATA +Subject: test non-prox + +body non-prox +. +QUIT +**** +### protocol v1 receive +exim -bh HOSTIPV4 +>>> PROXY TCP4 127.0.0.2 127.42.42.42 64000 25\r\n +HELO clientname +MAIL FROM: <a@test.ex> +RCPT TO:<b@test.ex> +DATA +Subject: test v1 + +body v1 +. +QUIT +**** +### protocol v2 receive +exim -bh HOSTIPV4 +>>> \x0D\x0A\x0D\x0A\x00\x0D\x0A\x51\x55\x49\x54\x0A\x21\x11\x00\x0c\x7f\x00\x00\x02\x7f\x2a\x2a\x2a\xc2\x95\x04\x01 +HELO clientname +MAIL FROM: <a@test.ex> +RCPT TO:<b@test.ex> +DATA +Subject: test v2 + +body v2 +. +QUIT +**** |