Hopefully the final lot of test files.
[exim.git] / test / scripts / 9900-testing / 9900
diff --git a/test/scripts/9900-testing/9900 b/test/scripts/9900-testing/9900
new file mode 100644 (file)
index 0000000..0ed4bab
--- /dev/null
@@ -0,0 +1,64 @@
+# retry times when no IPv6 connectivity
+need_ipv4
+#
+server PORT_S
+220 ESMTP
+EHLO
+250-OK
+250 HELP
+MAIL FROM:
+250 Sender OK
+RCPT TO:
+250 Recipient OK
+DATA
+350 Send message
+.
+250 OK
+QUIT
+250 OK
+****
+# This should successfully send to the IPv4 address, after failing to
+# connect to the IPv6 address.
+exim -odi userx@mx46cd.test.ex
+First message
+****
+# Let the IPv6 address time out
+sleep 2
+#
+server PORT_S
+220 ESMTP
+EHLO
+250-OK
+250 HELP
+MAIL FROM:
+250 Sender OK
+RCPT TO:
+250 Recipient OK
+DATA
+350 Send message
+.
+250 OK
+QUIT
+250 OK
+****
+# This should also be successful
+exim -odi userx@mx46cd.test.ex
+Second message
+****
+#
+dump retry
+# The IPv6 address has timed out, but the IPv4 address should still be OK
+exim -odi userx@mx46cd.test.ex
+Third message
+****
+dump retry
+exim -q
+****
+exim -q
+****
+exim -q
+****
+exim -q
+****
+exim -q
+****