From 81e509d738395fbfd837fbda1681971591109f8a Mon Sep 17 00:00:00 2001 From: Philip Hazel Date: Thu, 16 Mar 2006 11:14:46 +0000 Subject: User, not system, error message for VRFY defer. --- test/confs/0042 | 5 +++++ test/scripts/0000-Basic/0042 | 1 + test/stderr/0042 | 12 ++++++++++++ test/stdout/0042 | 1 + 4 files changed, 19 insertions(+) (limited to 'test') diff --git a/test/confs/0042 b/test/confs/0042 index 15e1e6729..4d994e4c5 100644 --- a/test/confs/0042 +++ b/test/confs/0042 @@ -24,6 +24,11 @@ fail_remote_domains: domains = ! +local_domains data = :fail: unrouteable mail domain "$domain" +fail_expansion: + driver = redirect + local_parts = expan + data = ${if with syntax error + localuser: driver = accept local_parts = userx diff --git a/test/scripts/0000-Basic/0042 b/test/scripts/0000-Basic/0042 index a0b2e4f2c..2c8975a69 100644 --- a/test/scripts/0000-Basic/0042 +++ b/test/scripts/0000-Basic/0042 @@ -2,4 +2,5 @@ exim -bh 1.1.1.1 vrfy userx@test.ex vrfy junkjunk@test.ex +vrfy expan@test.ex quit diff --git a/test/stderr/0042 b/test/stderr/0042 index 2c4cc1dc8..740dc1bfa 100644 --- a/test/stderr/0042 +++ b/test/stderr/0042 @@ -13,6 +13,7 @@ >>> routing userx@test.ex >>> test.ex in "test.ex"? yes (matched "test.ex") >>> test.ex in "! +local_domains"? no (matched "! +local_domains") +>>> userx in "expan"? no (end of list) >>> userx in "userx"? yes (matched "userx") >>> calling localuser router >>> routed by localuser router @@ -22,6 +23,17 @@ >>> routing junkjunk@test.ex >>> test.ex in "test.ex"? yes (matched "test.ex") >>> test.ex in "! +local_domains"? no (matched "! +local_domains") +>>> junkjunk in "expan"? no (end of list) >>> junkjunk in "userx"? no (end of list) >>> no more routers LOG: VRFY failed for junkjunk@test.ex H=[1.1.1.1] +>>> processing "accept" +>>> accept: condition test succeeded +>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +>>> routing expan@test.ex +>>> test.ex in "test.ex"? yes (matched "test.ex") +>>> test.ex in "! +local_domains"? no (matched "! +local_domains") +>>> expan in "expan"? yes (matched "expan") +>>> calling fail_expansion router +>>> fail_expansion router: defer for expan@test.ex +>>> message: failed to expand "${if with syntax error": unknown condition "with" diff --git a/test/stdout/0042 b/test/stdout/0042 index 76d3552bc..8602d02d3 100644 --- a/test/stdout/0042 +++ b/test/stdout/0042 @@ -6,4 +6,5 @@ 220 the.local.host.name ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000 250 is deliverable 550 Unrouteable address +451 Cannot resolve at this time 221 the.local.host.name closing connection -- cgit v1.2.3