diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2015-02-27 18:58:59 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2015-02-27 18:58:59 +0000 |
commit | bd4ece7debfe8926fe99608da6cfe5aaac6a550b (patch) | |
tree | d49f28abf0d39963723c91d196e5165b3bd34fba /test | |
parent | b980ed83fa4ae95ee650ccf73d33dbad4c20c595 (diff) |
Add retry type "lookup". Bug 1566
Also add dnslookup router option "fail_defer_domains" to support it.
Diffstat (limited to 'test')
-rw-r--r-- | test/confs/0099 | 9 | ||||
-rw-r--r-- | test/log/0099 | 5 | ||||
-rw-r--r-- | test/scripts/0000-Basic/0099 | 12 | ||||
-rw-r--r-- | test/stdout/0099 | 16 |
4 files changed, 42 insertions, 0 deletions
diff --git a/test/confs/0099 b/test/confs/0099 index e54cf628c..c4e1a8339 100644 --- a/test/confs/0099 +++ b/test/confs/0099 @@ -21,12 +21,20 @@ log_selector = +received_recipients begin routers +bydns: + driver = dnslookup + domains = mxt2.test.ex + transport = smtp + fail_defer_domains = * + all: driver = manualroute route_list = simple thishost.test.ex byname \ ; complex thisloop.test.ex byname \ + ; nonexist nonexist.test.ex byname \ ; * 127.0.0.1 byname self = send + host_find_failed = defer transport = smtp @@ -50,6 +58,7 @@ begin retry rcpt45x.test.ex rcpt_45x F,10d,2m rcpt463.test.ex rcpt_463 F,10d,3m rcpt4xx.test.ex rcpt_4xx F,10d,1m +* lookup F,10d,30m *@\N^\d * F,5d,1m *@*.abcd.ex * F,5d,2m diff --git a/test/log/0099 b/test/log/0099 index 952b24041..6fa94331a 100644 --- a/test/log/0099 +++ b/test/log/0099 @@ -21,3 +21,8 @@ 1999-03-02 09:44:33 10HmbB-0005vi-00 H=thisloop.test.ex [ip4.ip4.ip4.ip4] Connection refused 1999-03-02 09:44:33 10HmbB-0005vi-00 H=thisloop.test.ex [127.0.0.1] Connection refused 1999-03-02 09:44:33 10HmbB-0005vi-00 == without@complex R=all T=smtp defer (dd): Connection refused +1999-03-02 09:44:33 10HmbC-0005vi-00 <= CALLER@test.ex U=CALLER P=local S=sss for userx@nonexist +1999-03-02 09:44:33 10HmbC-0005vi-00 no IP address found for host nonexist.test.ex +1999-03-02 09:44:33 10HmbC-0005vi-00 == userx@nonexist R=all defer (-32): lookup of host "nonexist.test.ex" failed in all router +1999-03-02 09:44:33 10HmbD-0005vi-00 <= CALLER@test.ex U=CALLER P=local S=sss for userx@mxt2.test.ex +1999-03-02 09:44:33 10HmbD-0005vi-00 == userx@mxt2.test.ex R=bydns defer (-32): all relevant MX records point to non-existent hosts diff --git a/test/scripts/0000-Basic/0099 b/test/scripts/0000-Basic/0099 index 6dfc14a04..7ad88b625 100644 --- a/test/scripts/0000-Basic/0099 +++ b/test/scripts/0000-Basic/0099 @@ -38,6 +38,16 @@ 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 **** @@ -69,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 +**** diff --git a/test/stdout/0099 b/test/stdout/0099 index 35b7f54b6..0f6f7f2fa 100644 --- a/test/stdout/0099 +++ b/test/stdout/0099 @@ -40,6 +40,21 @@ first failed = time last try = time2 next try = time2 + 900 first failed = time last try = time2 next try = time2 + 900 T:thisloop.test.ex:999 dd 65 Connection refused first failed = time last try = time2 next try = time2 + 900 ++++++++++++++++++++++++++++ + R:mxt2.test.ex -32 0 all relevant MX records point to non-existent hosts +first failed = time last try = time2 next try = time2 + 1800 + R:nonexist -32 0 lookup of host "nonexist.test.ex" failed in all router +first failed = time last try = time2 next try = time2 + 1800 + T:thishost.test.ex:127.0.0.1:999 dd 65 Connection refused +first failed = time last try = time2 next try = time2 + 900 + T:thishost.test.ex:999 dd 65 Connection refused +first failed = time last try = time2 next try = time2 + 900 + T:thisloop.test.ex:127.0.0.1:999 dd 65 Connection refused +first failed = time last try = time2 next try = time2 + 900 + T:thisloop.test.ex:ip4.ip4.ip4.ip4:999 dd 65 Connection refused +first failed = time last try = time2 next try = time2 + 900 + T:thisloop.test.ex:999 dd 65 Connection refused +first failed = time last try = time2 next try = time2 + 900 Retry rule: *.star.ex * F,3d,10m; Retry rule: lsearch*@;TESTSUITE/aux-fixed/0099.rlist * F,1d,3m; Retry rule: !*.not.ex * F,2d,15m; @@ -55,3 +70,4 @@ Retry rule: rcpt463.test.ex * F,1w3d,3m; Retry rule: * * G,1d,1m,1.5; Retry rule: * * G,2d,2m,1.5; Retry rule: * * F,1w5d,2h30m; +Retry rule: * * F,1w3d,30m; |