summaryrefslogtreecommitdiff
path: root/test/scripts/3200-testdb
diff options
context:
space:
mode:
authorPhilip Hazel <ph10@hermes.cam.ac.uk>2006-02-07 10:54:33 +0000
committerPhilip Hazel <ph10@hermes.cam.ac.uk>2006-02-07 10:54:33 +0000
commit59371ea735c941334861aa5b8e1e9a06facf044f (patch)
tree79168561a70a94a3994fbe362b904ff9aab86136 /test/scripts/3200-testdb
parent54c5ebb14ead7439af300e9d7d9d7d2ba29ff32e (diff)
Hopefully the final lot of test files.
Diffstat (limited to 'test/scripts/3200-testdb')
-rw-r--r--test/scripts/3200-testdb/32006
-rw-r--r--test/scripts/3200-testdb/32015
-rw-r--r--test/scripts/3200-testdb/320216
-rw-r--r--test/scripts/3200-testdb/32034
-rw-r--r--test/scripts/3200-testdb/32045
-rw-r--r--test/scripts/3200-testdb/320511
-rw-r--r--test/scripts/3200-testdb/32068
-rw-r--r--test/scripts/3200-testdb/32075
-rw-r--r--test/scripts/3200-testdb/320815
-rw-r--r--test/scripts/3200-testdb/32096
-rw-r--r--test/scripts/3200-testdb/32104
-rw-r--r--test/scripts/3200-testdb/321116
-rw-r--r--test/scripts/3200-testdb/321216
-rw-r--r--test/scripts/3200-testdb/32138
-rw-r--r--test/scripts/3200-testdb/REQUIRES1
15 files changed, 126 insertions, 0 deletions
diff --git a/test/scripts/3200-testdb/3200 b/test/scripts/3200-testdb/3200
new file mode 100644
index 000000000..cd02ab5bc
--- /dev/null
+++ b/test/scripts/3200-testdb/3200
@@ -0,0 +1,6 @@
+# testdb lookups
+
+exim -be
+match_ip: 12 ${if match_ip{10.11.12.13}{testdb;something}}
+match_ip: 13 ${if match_ip{10.11.12.13}{testdb;fail}}
+****
diff --git a/test/scripts/3200-testdb/3201 b/test/scripts/3200-testdb/3201
new file mode 100644
index 000000000..bddea5439
--- /dev/null
+++ b/test/scripts/3200-testdb/3201
@@ -0,0 +1,5 @@
+# $sender_host_name - no auto lookup in query-style lookups
+exim -d -bh 10.0.0.1
+****
+exim -d -bh 10.0.0.2
+****
diff --git a/test/scripts/3200-testdb/3202 b/test/scripts/3200-testdb/3202
new file mode 100644
index 000000000..7b7206353
--- /dev/null
+++ b/test/scripts/3200-testdb/3202
@@ -0,0 +1,16 @@
+# ACL defer tests
+exim -bh 1.1.1.1
+mail from:<x@y>
+rcpt to:<x@y>
+quit
+****
+exim -bh 1.1.2.1
+mail from:<x@y>
+rcpt to:<x@y>
+quit
+****
+exim -bh 1.1.3.1
+mail from:<x@y>
+rcpt to:<x@y>
+quit
+****
diff --git a/test/scripts/3200-testdb/3203 b/test/scripts/3200-testdb/3203
new file mode 100644
index 000000000..46617d8b4
--- /dev/null
+++ b/test/scripts/3200-testdb/3203
@@ -0,0 +1,4 @@
+# Lookup defer (senders)
+exim -odi userx@test.ex
+****
+no_msglog_check
diff --git a/test/scripts/3200-testdb/3204 b/test/scripts/3200-testdb/3204
new file mode 100644
index 000000000..d4a24fe1b
--- /dev/null
+++ b/test/scripts/3200-testdb/3204
@@ -0,0 +1,5 @@
+# Lookup defer (sender_reject)
+exim -bh 1.2.3.4
+mail from:<userx@somehost.example.com>
+rcpt to:<x@y>
+quit
diff --git a/test/scripts/3200-testdb/3205 b/test/scripts/3200-testdb/3205
new file mode 100644
index 000000000..adb8be659
--- /dev/null
+++ b/test/scripts/3200-testdb/3205
@@ -0,0 +1,11 @@
+# lookup defer (senders and hosts conditions in ACL)
+exim -bh 1.2.3.4
+mail from:<userx@external.test.ex>
+rcpt to:<userx@test.ex>
+quit
+****
+exim -bh 4.3.2.1
+mail from:<userx@external.test.ex>
+rcpt to:<userx@test.ex>
+quit
+****
diff --git a/test/scripts/3200-testdb/3206 b/test/scripts/3200-testdb/3206
new file mode 100644
index 000000000..925a6f85e
--- /dev/null
+++ b/test/scripts/3200-testdb/3206
@@ -0,0 +1,8 @@
+# defer in hold_domains, queue_domains
+exim -odi a@test.ex b@other.domain c@hold.remote.ex d@hold2.remote.ex e@queue.go.remote.ex f@queue2.go.remote.ex
+****
+1
+exim -bv a@test.ex b@other.domain
+****
+no_message_check
+no_msglog_check
diff --git a/test/scripts/3200-testdb/3207 b/test/scripts/3200-testdb/3207
new file mode 100644
index 000000000..7325d0ea3
--- /dev/null
+++ b/test/scripts/3200-testdb/3207
@@ -0,0 +1,5 @@
+# defer in domains, local_parts, senders, condition
+exim -odi r1@r1.ex r2@r2.ex r3@r3.ex r4@r4.ex d1@d1.ex d2@d2.ex d3@d3.ex d4@d4.ex
+****
+no_message_check
+no_msglog_check
diff --git a/test/scripts/3200-testdb/3208 b/test/scripts/3200-testdb/3208
new file mode 100644
index 000000000..9e4f9e38a
--- /dev/null
+++ b/test/scripts/3200-testdb/3208
@@ -0,0 +1,15 @@
+# defer in percent_hack_domains, relay_domains
+exim -bh V4NET.0.0.1
+ehlo remote.host
+mail from:<user@remote.host>
+rcpt to:<a@test.ex>
+rcpt to:<a@other.ex>
+rcpt to:<a%b@testhack.ex>
+rcpt to:<a%b@test.ex>
+rcpt to:<a%b@testhack2.ex>
+rcpt to:<a@yesrelay.ex>
+rcpt to:<a@norelay.ex>
+rcpt to:<a%yesrelay.ex@testhack.ex>
+rcpt to:<a%norelay.ex@testhack.ex>
+quit
+****
diff --git a/test/scripts/3200-testdb/3209 b/test/scripts/3200-testdb/3209
new file mode 100644
index 000000000..c619253a4
--- /dev/null
+++ b/test/scripts/3200-testdb/3209
@@ -0,0 +1,6 @@
+# defer in mx_domains
+need_ipv4
+#
+exim -odi x@mxt7.test.ex x@ten-1.test.ex
+****
+no_msglog_check
diff --git a/test/scripts/3200-testdb/3210 b/test/scripts/3200-testdb/3210
new file mode 100644
index 000000000..7a61c83ec
--- /dev/null
+++ b/test/scripts/3200-testdb/3210
@@ -0,0 +1,4 @@
+# named domain lists - lookup defer
+1
+exim -d -bt userx@test.ex
+****
diff --git a/test/scripts/3200-testdb/3211 b/test/scripts/3200-testdb/3211
new file mode 100644
index 000000000..44ab87238
--- /dev/null
+++ b/test/scripts/3200-testdb/3211
@@ -0,0 +1,16 @@
+# reset search_error_message for next router
+exim -bs
+mail from:<userx@test.ex>
+rcpt to:<userx@test.again.dns>
+quit
+****
+exim -bh 1.2.3.4
+mail from:<userx@test.ex>
+rcpt to:<userx@test.again.dns>
+quit
+****
+exim -bh 1.2.3.4
+mail from:<userx@test.ex>
+rcpt to:<r1-userx@test.again.dns>
+quit
+****
diff --git a/test/scripts/3200-testdb/3212 b/test/scripts/3200-testdb/3212
new file mode 100644
index 000000000..c6e809ccb
--- /dev/null
+++ b/test/scripts/3200-testdb/3212
@@ -0,0 +1,16 @@
+# lookup caching all
+exim -d -be
+${lookup{list}lsearch{DIR/aux-fixed/TESTNUM.aliases}{$value}{NOT FOUND}}
+${lookup{list}lsearch{DIR/aux-fixed/TESTNUM.aliases}{$value}{NOT FOUND}}
+${lookup{root}lsearch{DIR/aux-fixed/TESTNUM.aliases}{$value}{NOT FOUND}}
+${lookup{root}lsearch{DIR/aux-fixed/TESTNUM.aliases}{$value}{NOT FOUND}}
+${lookup{list}lsearch{DIR/aux-fixed/TESTNUM.aliases}{$value}{NOT FOUND}}
+
+${lookup testdb {something}{$value}{NOT FOUND}}
+${lookup testdb {something}{$value}{NOT FOUND}}
+${lookup testdb {nocache}{$value}{NOT FOUND}}
+${lookup testdb {something}{$value}{NOT FOUND}}
+
+${lookup{list}lsearch{DIR/aux-fixed/TESTNUM.aliases}{$value}{NOT FOUND}}
+${lookup{root}lsearch{DIR/aux-fixed/TESTNUM.aliases}{$value}{NOT FOUND}}
+****
diff --git a/test/scripts/3200-testdb/3213 b/test/scripts/3200-testdb/3213
new file mode 100644
index 000000000..ba34ffe11
--- /dev/null
+++ b/test/scripts/3200-testdb/3213
@@ -0,0 +1,8 @@
+# address list matching an empty address
+exim -bs
+helo x.y.z
+mail from:<>
+rset
+mail from:<x@y>
+quit
+****
diff --git a/test/scripts/3200-testdb/REQUIRES b/test/scripts/3200-testdb/REQUIRES
new file mode 100644
index 000000000..36e522fc2
--- /dev/null
+++ b/test/scripts/3200-testdb/REQUIRES
@@ -0,0 +1 @@
+lookup testdb