Add retry type "lookup". Bug 1566
[exim.git] / test / scripts / 0000-Basic / 0099
index c615c1ca8dcce6cdb1b9d171bfebcfd9484e28e0..7ad88b625f67a250c51dd00fcb8f98fc2d31d40d 100644 (file)
@@ -1,5 +1,8 @@
 # retry data
-exim -odi userx@far.away.ex
+#
+#
+# This should add an entry for "thishost.test.ex"
+exim -odi userx@simple
 Test message
 ****
 dump retry
@@ -10,7 +13,42 @@ dump retry
 sleep 3
 exim -odi -q
 ****
+#
+# This should add two entries for "localhost.test.ex" (ipv4, ipv6)
+exim -odi usery@complex
+Test message 2
+****
+dump retry
+#
+# and one for thishost without its IP
+exim -odi -DRETRY=retry_include_ip_address=no userz@simple
+Test message
+****
+dump retry
+#
+# expanded option, giving true, should leave the localhost pair unchanged
+exim -odi -DRETRY='retry_include_ip_address=${if eq{with}{$local_part} {yes}{no}}' with@complex
+Test message
+****
+dump retry
+#
+# expanded option, giving false, should add another localhost entry, without IP
+exim -odi -DRETRY='retry_include_ip_address=${if eq{with}{$local_part} {yes}{no}}' without@complex
+Test message
+****
+dump retry
+#
+# one for a lookup-failure (in manualroute)
+exim -odi userx@nonexist
+Test message
+****
+# one for a lookup-failure (in dnslookup)
+exim -odi userx@mxt2.test.ex
+Test message
+****
 dump retry
+#
+#
 exim -brt x@dark.star.ex
 ****
 exim -brt x@a.b.c
@@ -41,3 +79,5 @@ exim -f "d@e.f" -brt x@Q.abcd.ex
 ****
 exim -brt x@not.not.ex
 ****
+exim -brt x@nonexist.test.ex lookup
+****