summaryrefslogtreecommitdiff
path: root/test/scripts/9900-testing
diff options
context:
space:
mode:
Diffstat (limited to 'test/scripts/9900-testing')
-rw-r--r--test/scripts/9900-testing/990064
-rw-r--r--test/scripts/9900-testing/990126
-rw-r--r--test/scripts/9900-testing/990215
3 files changed, 105 insertions, 0 deletions
diff --git a/test/scripts/9900-testing/9900 b/test/scripts/9900-testing/9900
new file mode 100644
index 000000000..0ed4bab6e
--- /dev/null
+++ b/test/scripts/9900-testing/9900
@@ -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
+****
diff --git a/test/scripts/9900-testing/9901 b/test/scripts/9900-testing/9901
new file mode 100644
index 000000000..b9943ce2c
--- /dev/null
+++ b/test/scripts/9900-testing/9901
@@ -0,0 +1,26 @@
+# long routing delay in message on reused connection (server timeout)
+# This test is problematical - trying to cause a timeout in a server for the
+# 2nd message down the same connection. Works on Linux, but does different
+# things on FreeBSD.
+#
+need_ipv4
+#
+exim -DCOM=# -DSERVER=server -bd -oX PORT_D
+****
+exim -odi -odqs ok@no.delay
+Message 1
+****
+exim -odi -odqs ok@no.delay
+Message 2
+****
+sudo exim -Mar $msg2 delay@2.test.again.dns
+****
+# Remove the retry data so that we do attempt the routing during
+# delivery. That slows it down enough for the server to time out.
+#
+# sudo rm spool/db/retry
+exim -q -d-all+route+dns
+****
+killdaemon
+dump retry
+no_msglog_check
diff --git a/test/scripts/9900-testing/9902 b/test/scripts/9900-testing/9902
new file mode 100644
index 000000000..d20ade8ee
--- /dev/null
+++ b/test/scripts/9900-testing/9902
@@ -0,0 +1,15 @@
+# host name lookup order
+# NOT WORKING
+echo THIS TEST DOES NOT WORK
+exim -d-all+lookup+dns -bh V4NET.0.0.1
+quit
+****
+exim -DORDER='host_lookup_order=byaddr:bydns' -d-all+lookup+dns -bh V4NET.0.0.1
+quit
+****
+exim -d-all+lookup+dns -bh 1.2.3.4
+quit
+****
+exim -DORDER='host_lookup_order=byaddr:bydns' -d-all+lookup+dns -bh 1.2.3.4
+quit
+****