diff options
author | Philip Hazel <ph10@hermes.cam.ac.uk> | 2007-01-17 11:17:58 +0000 |
---|---|---|
committer | Philip Hazel <ph10@hermes.cam.ac.uk> | 2007-01-17 11:17:58 +0000 |
commit | 431b736177e2cdfd0b4da4c8545d8b732286abe1 (patch) | |
tree | d7e40e4cdb12e9c0297384aaa05d03b8ad3230db /test | |
parent | 22ad45c9e84aa0caab29371080c66e02f2b0aea2 (diff) |
Fix negated dnslists item bug; add == and =& features, courtesy Brad
Jorsch.
Diffstat (limited to 'test')
-rw-r--r-- | test/confs/0139 | 17 | ||||
-rw-r--r-- | test/scripts/0000-Basic/0139 | 8 | ||||
-rw-r--r-- | test/stderr/0139 | 101 | ||||
-rw-r--r-- | test/stdout/0139 | 16 |
4 files changed, 142 insertions, 0 deletions
diff --git a/test/confs/0139 b/test/confs/0139 index cd9433a92..2f844b5f0 100644 --- a/test/confs/0139 +++ b/test/confs/0139 @@ -13,13 +13,30 @@ gecos_name = CALLER_NAME domainlist local_domains = exim.test.ex trusted_users = CALLER +acl_smtp_helo = check_helo acl_smtp_rcpt = check_recipient acl_smtp_mail = check_mail +acl_smtp_vrfy = check_vrfy # ------ ACL ------ begin acl +check_helo: + warn dnslists = rbl2.test.ex!=127.0.0.3 : rbl3.test.ex=127.0.0.3 + accept + +check_vrfy: + warn dnslists = rbl.test.ex=127.0.0.1 + warn dnslists = rbl.test.ex!=127.0.0.1 + warn dnslists = rbl.test.ex!=127.0.0.3 + warn dnslists = rbl.test.ex==127.0.0.1 + warn dnslists = rbl.test.ex==127.0.0.1,127.0.0.2 + warn dnslists = rbl.test.ex!==127.0.0.1 + warn dnslists = rbl.test.ex!==127.0.0.3 + warn dnslists = rbl.test.ex!==127.0.0.1,127.0.0.2 + accept + check_mail: warn dnslists = rbl4.test.ex&0.0.0.6 warn dnslists = rbl4.test.ex&127.0.0.3 diff --git a/test/scripts/0000-Basic/0139 b/test/scripts/0000-Basic/0139 index 4cd168e18..0224bd9d0 100644 --- a/test/scripts/0000-Basic/0139 +++ b/test/scripts/0000-Basic/0139 @@ -32,4 +32,12 @@ test data . quit **** +exim -bh V4NET.11.12.15 +helo a.b +quit +**** +exim -bh V4NET.13.13.2 +vrfy a@b +quit +**** no_msglog_check diff --git a/test/stderr/0139 b/test/stderr/0139 index 14cdd0647..42ebd686d 100644 --- a/test/stderr/0139 +++ b/test/stderr/0139 @@ -259,3 +259,104 @@ LOG: H=[V4NET.11.12.15] F=<postmaster@exim.test.ex> rejected RCPT <userx@exim.te >>> warn: condition test failed >>> processing "accept" >>> accept: condition test succeeded +>>> host in hosts_connection_nolog? no (option unset) +>>> host in host_lookup? no (option unset) +>>> host in host_reject_connection? no (option unset) +>>> host in sender_unqualified_hosts? no (option unset) +>>> host in recipient_unqualified_hosts? no (option unset) +>>> host in helo_verify_hosts? no (option unset) +>>> host in helo_try_verify_hosts? no (option unset) +>>> host in helo_accept_junk_hosts? no (option unset) +>>> a.b in helo_lookup_domains? no (end of list) +>>> using ACL "check_helo" +>>> processing "warn" +>>> check dnslists = rbl2.test.ex!=127.0.0.3 : rbl3.test.ex=127.0.0.3 +>>> DNS list check: rbl2.test.ex!=127.0.0.3 +>>> new DNS lookup for 15.12.11.V4NET.rbl2.test.ex +>>> DNS lookup for 15.12.11.V4NET.rbl2.test.ex failed +>>> => that means V4NET.11.12.15 is not listed at rbl2.test.ex +>>> DNS list check: rbl3.test.ex=127.0.0.3 +>>> new DNS lookup for 15.12.11.V4NET.rbl3.test.ex +>>> DNS lookup for 15.12.11.V4NET.rbl3.test.ex succeeded (yielding 127.0.0.3) +>>> => that means V4NET.11.12.15 is listed at rbl3.test.ex +>>> warn: condition test succeeded +>>> processing "accept" +>>> accept: condition test succeeded +>>> host in hosts_connection_nolog? no (option unset) +>>> host in host_lookup? no (option unset) +>>> host in host_reject_connection? no (option unset) +>>> host in sender_unqualified_hosts? no (option unset) +>>> host in recipient_unqualified_hosts? no (option unset) +>>> host in helo_verify_hosts? no (option unset) +>>> host in helo_try_verify_hosts? no (option unset) +>>> host in helo_accept_junk_hosts? no (option unset) +>>> host in smtp_accept_max_nonmail_hosts? yes (matched "*") +>>> using ACL "check_vrfy" +>>> processing "warn" +>>> check dnslists = rbl.test.ex=127.0.0.1 +>>> DNS list check: rbl.test.ex=127.0.0.1 +>>> new DNS lookup for 2.13.13.V4NET.rbl.test.ex +>>> DNS lookup for 2.13.13.V4NET.rbl.test.ex succeeded (yielding 127.0.0.1, 127.0.0.2) +>>> => that means V4NET.13.13.2 is listed at rbl.test.ex +>>> warn: condition test succeeded +>>> processing "warn" +>>> check dnslists = rbl.test.ex!=127.0.0.1 +>>> DNS list check: rbl.test.ex!=127.0.0.1 +>>> using result of previous DNS lookup +>>> DNS lookup for 2.13.13.V4NET.rbl.test.ex succeeded (yielding 127.0.0.1, 127.0.0.2) +>>> => but we are not accepting this block class because +>>> => there was an exclude match for =127.0.0.1 +>>> warn: condition test failed +>>> processing "warn" +>>> check dnslists = rbl.test.ex!=127.0.0.3 +>>> DNS list check: rbl.test.ex!=127.0.0.3 +>>> using result of previous DNS lookup +>>> DNS lookup for 2.13.13.V4NET.rbl.test.ex succeeded (yielding 127.0.0.1, 127.0.0.2) +>>> => that means V4NET.13.13.2 is listed at rbl.test.ex +>>> warn: condition test succeeded +>>> processing "warn" +>>> check dnslists = rbl.test.ex==127.0.0.1 +>>> DNS list check: rbl.test.ex==127.0.0.1 +>>> using result of previous DNS lookup +>>> DNS lookup for 2.13.13.V4NET.rbl.test.ex succeeded (yielding 127.0.0.1, 127.0.0.2) +>>> => but we are not accepting this block class because +>>> => there was an IP address that did not match for ==127.0.0.1 +>>> warn: condition test failed +>>> processing "warn" +>>> check dnslists = rbl.test.ex==127.0.0.1,127.0.0.2 +>>> DNS list check: rbl.test.ex==127.0.0.1,127.0.0.2 +>>> using result of previous DNS lookup +>>> DNS lookup for 2.13.13.V4NET.rbl.test.ex succeeded (yielding 127.0.0.1, 127.0.0.2) +>>> => that means V4NET.13.13.2 is listed at rbl.test.ex +>>> warn: condition test succeeded +>>> processing "warn" +>>> check dnslists = rbl.test.ex!==127.0.0.1 +>>> DNS list check: rbl.test.ex!==127.0.0.1 +>>> using result of previous DNS lookup +>>> DNS lookup for 2.13.13.V4NET.rbl.test.ex succeeded (yielding 127.0.0.1, 127.0.0.2) +>>> => that means V4NET.13.13.2 is listed at rbl.test.ex +>>> warn: condition test succeeded +>>> processing "warn" +>>> check dnslists = rbl.test.ex!==127.0.0.3 +>>> DNS list check: rbl.test.ex!==127.0.0.3 +>>> using result of previous DNS lookup +>>> DNS lookup for 2.13.13.V4NET.rbl.test.ex succeeded (yielding 127.0.0.1, 127.0.0.2) +>>> => that means V4NET.13.13.2 is listed at rbl.test.ex +>>> warn: condition test succeeded +>>> processing "warn" +>>> check dnslists = rbl.test.ex!==127.0.0.1,127.0.0.2 +>>> DNS list check: rbl.test.ex!==127.0.0.1,127.0.0.2 +>>> using result of previous DNS lookup +>>> DNS lookup for 2.13.13.V4NET.rbl.test.ex succeeded (yielding 127.0.0.1, 127.0.0.2) +>>> => but we are not accepting this block class because +>>> => there were no IP addresses that did not match for ==127.0.0.1,127.0.0.2 +>>> warn: condition test failed +>>> processing "accept" +>>> accept: condition test succeeded +>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> +>>> routing a@b +>>> calling system_aliases router +>>> system_aliases router declined for a@b +>>> a in "userx"? no (end of list) +>>> no more routers +LOG: VRFY failed for a@b H=[V4NET.13.13.2] diff --git a/test/stdout/0139 b/test/stdout/0139 index 011f2d4fb..3736dd4fd 100644 --- a/test/stdout/0139 +++ b/test/stdout/0139 @@ -50,3 +50,19 @@ 354 Enter message, ending with "." on a line by itself
250 OK id=10HmaX-0005vi-00
221 the.local.host.name closing connection
+ +**** SMTP testing session as if from host V4NET.11.12.15 +**** but without any ident (RFC 1413) callback. +**** This is not for real! + +220 the.local.host.name ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
+250 the.local.host.name Hello a.b [V4NET.11.12.15]
+221 the.local.host.name closing connection
+ +**** SMTP testing session as if from host V4NET.13.13.2 +**** but without any ident (RFC 1413) callback. +**** This is not for real! + +220 the.local.host.name ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
+550 <a@b> Unrouteable address
+221 the.local.host.name closing connection
|