summaryrefslogtreecommitdiff
path: root/test/scripts
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2016-02-24 18:19:04 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2016-03-03 13:25:30 +0000
commit59eaad2b1af0dc58545dff6a7211948782811e1a (patch)
tree850aa0f5536176fc02adfb5851274b8a2999a8b1 /test/scripts
parentbe92b80c645837095fd47f1334502a7c4ec41c93 (diff)
Cutthrough: fix operation under -bhc to not actually deliver. Bug 1800
Diffstat (limited to 'test/scripts')
-rw-r--r--test/scripts/5400-cutthrough/540242
1 files changed, 42 insertions, 0 deletions
diff --git a/test/scripts/5400-cutthrough/5402 b/test/scripts/5400-cutthrough/5402
new file mode 100644
index 000000000..3e6f3189e
--- /dev/null
+++ b/test/scripts/5400-cutthrough/5402
@@ -0,0 +1,42 @@
+# cutthrough_delivery and -bhc
+need_ipv4
+munge loopback
+no_msglog_check
+#
+# Despite config for cutthrough should not make onward conn
+server -t -2 PORT_S
+****
+exim -bhc 1.2.3.4
+EHLO myhost.test.ex
+MAIL FROM:<CALLER@myhost.test.ex>
+RCPT TO:<plain@domain.com>
+DATA
+
+.
+QUIT
+****
+#
+# Onward conn made for r-verify but cleared before DATA
+server PORT_S
+220 server ready
+EHLO
+250 OK
+MAIL
+250 OK
+RCPT
+250 OK
+QUIT
+220 OK
+*eof
+****
+exim -bhc 1.2.3.4
+EHLO myhost.test.ex
+MAIL FROM:<CALLER@myhost.test.ex>
+RCPT TO:<verify@domain.com>
+DATA
+
+.
+QUIT
+****
+#
+# End