Merge 4.80.1 security fix in.
[users/jgh/exim.git] / test / scripts / 5400-cutthrough / 5400
index 4aa332b86a52ecd5c17a42c81d7cd830595bd389..ccf5e7429a136de73d9a54b293e977270c2a7cd7 100644 (file)
@@ -3,7 +3,7 @@ need_ipv4
 #
 server PORT_S
 220 ESMTP
-HELO
+EHLO
 250 OK
 MAIL FROM:
 250 Sender OK
@@ -22,13 +22,42 @@ MAIL FROM:<eximtest@myhost.test.ex>
 RCPT TO:<userx@domain.com>
 DATA
 
+.
+QUIT
+****
+# cutthrough_delivery into HELO-only server
+need_ipv4
+#
+server PORT_S
+220 SMTP only spoken here
+EHLO
+550 Not here, mate
+HELO
+250 OK
+MAIL FROM:
+250 Sender OK
+RCPT TO:
+250 Recipient OK
+DATA
+354 Send data
+.
+250 OK
+QUIT
+250 OK
+****
+exim -d-all+acl+transport -bs
+EHLO myhost.test.ex
+MAIL FROM:<eximtest@myhost.test.ex>
+RCPT TO:<userz@domain.com>
+DATA
+
 .
 QUIT
 ****
 # cutthrough cancelled by multiple recipients
 server PORT_S 2
 220 ESMTP
-HELO
+EHLO
 250 OK
 MAIL FROM:
 250 Sender OK
@@ -55,10 +84,11 @@ QUIT
 exim -d-all+acl+transport -bs
 EHLO myhost.test.ex
 MAIL FROM:<eximtest@myhost.test.ex>
-RCPT TO:<userx@domain.com>
 RCPT TO:<usery@domain.com>
+RCPT TO:<userx@domain.com>
 DATA
 
 .
 QUIT
 ****
+sleep 1