diff options
author | Simon Arlott <bugzilla.exim.simon@arlott.org> | 2019-03-16 16:01:15 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2019-03-16 16:01:15 +0000 |
commit | 7c498df16cbb3d35eb8df3668ec426388f0dc974 (patch) | |
tree | d0af3af7e56f63539f3cbad70674da9f8d1b65a9 /test | |
parent | 9883af7240d3c25b7a8a859c9e8482caacd5f1aa (diff) |
Add caseless option to verify=not_blind. Bug 2356
Diffstat (limited to 'test')
-rw-r--r-- | test/confs/0583 | 24 | ||||
-rw-r--r-- | test/log/0583 | 6 | ||||
-rw-r--r-- | test/rejectlog/0507 | 2 | ||||
-rw-r--r-- | test/rejectlog/0583 | 36 | ||||
-rw-r--r-- | test/scripts/0000-Basic/0507 | 2 | ||||
-rw-r--r-- | test/scripts/0000-Basic/0583 | 65 | ||||
-rw-r--r-- | test/stderr/0583 | 12 | ||||
-rw-r--r-- | test/stdout/0583 | 52 |
8 files changed, 197 insertions, 2 deletions
diff --git a/test/confs/0583 b/test/confs/0583 new file mode 100644 index 000000000..ae5b55d46 --- /dev/null +++ b/test/confs/0583 @@ -0,0 +1,24 @@ +# Exim test configuration 0583 + +ERROR_DETAILS= + +.include DIR/aux-var/std_conf_prefix + +primary_hostname = myhost.test.ex + +# ----- Main settings ----- + +acl_smtp_rcpt = accept +acl_smtp_data = check_data + +ERROR_DETAILS + +# ----- ACL ------ + +begin acl + +check_data: + accept verify = not_blind/case_insensitive + + +# End diff --git a/test/log/0583 b/test/log/0583 new file mode 100644 index 000000000..94f171bfd --- /dev/null +++ b/test/log/0583 @@ -0,0 +1,6 @@ +1999-03-02 09:44:33 10HmbA-0005vi-00 <= CALLER@myhost.test.ex U=CALLER P=local-smtp S=sss +1999-03-02 09:44:33 10HmaX-0005vi-00 U=CALLER F=<CALLER@myhost.test.ex> rejected after DATA: bcc recipient detected +1999-03-02 09:44:33 10HmaY-0005vi-00 U=CALLER F=<CALLER@myhost.test.ex> rejected after DATA: bcc recipient detected +1999-03-02 09:44:33 10HmbB-0005vi-00 <= CALLER@myhost.test.ex U=CALLER P=local-smtp S=sss +1999-03-02 09:44:33 10HmaZ-0005vi-00 U=CALLER F=<CALLER@myhost.test.ex> rejected after DATA: bcc recipient detected +1999-03-02 09:44:33 10HmbC-0005vi-00 <= CALLER@myhost.test.ex U=CALLER P=local-smtp S=sss diff --git a/test/rejectlog/0507 b/test/rejectlog/0507 index 957071a1f..ca6243bd3 100644 --- a/test/rejectlog/0507 +++ b/test/rejectlog/0507 @@ -5,7 +5,7 @@ P Received: from CALLER by myhost.test.ex with local-smtp (Exim x.yz) (envelope-from <CALLER@myhost.test.ex>) id 10HmaX-0005vi-00 for userx@dom.com; Tue, 2 Mar 1999 09:44:33 +0000 -T To: a@b.c, himself <usery@dom.com> +T To: a@b.c, himself <usery@dom.com>, HIMSELF <USERX@dom.com> I Message-Id: <E10HmaX-0005vi-00@myhost.test.ex> F From: CALLER_NAME <CALLER@myhost.test.ex> Date: Tue, 2 Mar 1999 09:44:33 +0000 diff --git a/test/rejectlog/0583 b/test/rejectlog/0583 new file mode 100644 index 000000000..993bc4559 --- /dev/null +++ b/test/rejectlog/0583 @@ -0,0 +1,36 @@ +1999-03-02 09:44:33 10HmaX-0005vi-00 U=CALLER F=<CALLER@myhost.test.ex> rejected after DATA: bcc recipient detected +Envelope-from: <CALLER@myhost.test.ex> +Envelope-to: <userx@dom.com> +P Received: from CALLER by myhost.test.ex with local-smtp (Exim x.yz) + (envelope-from <CALLER@myhost.test.ex>) + id 10HmaX-0005vi-00 + for userx@dom.com; Tue, 2 Mar 1999 09:44:33 +0000 +T To: b@b.c, himself <usery@dom.com> +I Message-Id: <E10HmaX-0005vi-00@myhost.test.ex> +F From: CALLER_NAME <CALLER@myhost.test.ex> + Date: Tue, 2 Mar 1999 09:44:33 +0000 +1999-03-02 09:44:33 10HmaY-0005vi-00 U=CALLER F=<CALLER@myhost.test.ex> rejected after DATA: bcc recipient detected +Envelope-from: <CALLER@myhost.test.ex> +Envelope-to: <userx@dom.com> +P Received: from CALLER by myhost.test.ex with local-smtp (Exim x.yz) + (envelope-from <CALLER@myhost.test.ex>) + id 10HmaY-0005vi-00 + for userx@dom.com; Tue, 2 Mar 1999 09:44:33 +0000 +T To: c@b.c, himself <usery@dom.com> +I Message-Id: <E10HmaY-0005vi-00@myhost.test.ex> +F From: CALLER_NAME <CALLER@myhost.test.ex> + Date: Tue, 2 Mar 1999 09:44:33 +0000 +1999-03-02 09:44:33 10HmaZ-0005vi-00 U=CALLER F=<CALLER@myhost.test.ex> rejected after DATA: bcc recipient detected +Envelope-from: <CALLER@myhost.test.ex> +Envelope-to: <userx@dom.com> + <usery@dom.com> + <userz@dom.com> +P Received: from CALLER by myhost.test.ex with local-smtp (Exim x.yz) + (envelope-from <CALLER@myhost.test.ex>) + id 10HmaZ-0005vi-00; Tue, 2 Mar 1999 09:44:33 +0000 +T To: e@b.c, himself <UserY@dom.com> +* Cc: unqualified, UserX@dom.com, x@y.z +C Cc: unqualified@myhost.test.ex, UserX@dom.com, x@y.z +I Message-Id: <E10HmaZ-0005vi-00@myhost.test.ex> +F From: CALLER_NAME <CALLER@myhost.test.ex> + Date: Tue, 2 Mar 1999 09:44:33 +0000 diff --git a/test/scripts/0000-Basic/0507 b/test/scripts/0000-Basic/0507 index d4f5bc065..ce8d71e85 100644 --- a/test/scripts/0000-Basic/0507 +++ b/test/scripts/0000-Basic/0507 @@ -11,7 +11,7 @@ exim -odq -bs mail from:<> rcpt to:<userx@dom.com> data -To: a@b.c, himself <usery@dom.com> +To: a@b.c, himself <usery@dom.com>, HIMSELF <USERX@dom.com> . quit **** diff --git a/test/scripts/0000-Basic/0583 b/test/scripts/0000-Basic/0583 new file mode 100644 index 000000000..c4ae477c1 --- /dev/null +++ b/test/scripts/0000-Basic/0583 @@ -0,0 +1,65 @@ +# verify = not_blind/case_insensitive +# +# Accept: the env rcpt matches a header To: +exim -odq -bs +mail from:<> +rcpt to:<userx@dom.com> +data +To: a@b.c, himself <UserX@dom.com> +. +quit +**** +### Reject: no match +exim -odq -bs +mail from:<> +rcpt to:<userx@dom.com> +data +To: b@b.c, himself <usery@dom.com> +. +quit +**** +### Reject, with specific SMTP message +exim -DERROR_DETAILS=smtp_return_error_details -odq -bs +mail from:<> +rcpt to:<userx@dom.com> +data +To: c@b.c, himself <usery@dom.com> +. +quit +**** +### Accept, matches in header CC: +exim -odq -bs +mail from:<> +rcpt to:<userx@dom.com> +rcpt to:<usery@dom.com> +data +To: d@b.c, himself <UserY@dom.com> +Cc: unqualified, UserX@dom.com, x@y.z +. +quit +**** +### Reject: To: & CC: combo, an env rcpt missing +exim -odq -bs +mail from:<> +rcpt to:<userx@dom.com> +rcpt to:<usery@dom.com> +rcpt to:<userz@dom.com> +data +To: e@b.c, himself <UserY@dom.com> +Cc: unqualified, UserX@dom.com, x@y.z +. +quit +**** +### Accept: Resent-To: & Resent-CC: combo +exim -odq -bs +mail from:<> +rcpt to:<userx@dom.com> +rcpt to:<usery@dom.com> +data +Resent-To: f@b.c, himself <UserY@dom.com> +Resent-Cc: unqualified, UserX@dom.com, x@y.z +To: an@other +. +quit +**** +no_msglog_check diff --git a/test/stderr/0583 b/test/stderr/0583 new file mode 100644 index 000000000..3c3c7f103 --- /dev/null +++ b/test/stderr/0583 @@ -0,0 +1,12 @@ +### Reject: no match +### Reject, with specific SMTP message +### Accept, matches in header CC: +### Reject: To: & CC: combo, an env rcpt missing +### Accept: Resent-To: & Resent-CC: combo + +******** SERVER ******** +### Reject: no match +### Reject, with specific SMTP message +### Accept, matches in header CC: +### Reject: To: & CC: combo, an env rcpt missing +### Accept: Resent-To: & Resent-CC: combo diff --git a/test/stdout/0583 b/test/stdout/0583 new file mode 100644 index 000000000..9c896e3e6 --- /dev/null +++ b/test/stdout/0583 @@ -0,0 +1,52 @@ +220 myhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
+250 OK
+250 Accepted
+354 Enter message, ending with "." on a line by itself
+250 OK id=10HmbA-0005vi-00
+221 myhost.test.ex closing connection
+### Reject: no match +220 myhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
+250 OK
+250 Accepted
+354 Enter message, ending with "." on a line by itself
+550 Administrative prohibition
+221 myhost.test.ex closing connection
+### Reject, with specific SMTP message +220 myhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
+250 OK
+250 Accepted
+354 Enter message, ending with "." on a line by itself
+550 Rejected after DATA: bcc recipient detected
+221 myhost.test.ex closing connection
+### Accept, matches in header CC: +220 myhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
+250 OK
+250 Accepted
+250 Accepted
+354 Enter message, ending with "." on a line by itself
+250 OK id=10HmbB-0005vi-00
+221 myhost.test.ex closing connection
+### Reject: To: & CC: combo, an env rcpt missing +220 myhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
+250 OK
+250 Accepted
+250 Accepted
+250 Accepted
+354 Enter message, ending with "." on a line by itself
+550 Administrative prohibition
+221 myhost.test.ex closing connection
+### Accept: Resent-To: & Resent-CC: combo +220 myhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
+250 OK
+250 Accepted
+250 Accepted
+354 Enter message, ending with "." on a line by itself
+250 OK id=10HmbC-0005vi-00
+221 myhost.test.ex closing connection
+ +******** SERVER ******** +### Reject: no match +### Reject, with specific SMTP message +### Accept, matches in header CC: +### Reject: To: & CC: combo, an env rcpt missing +### Accept: Resent-To: & Resent-CC: combo |