summaryrefslogtreecommitdiff
path: root/test/scripts
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2017-01-28 14:21:19 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2017-01-28 14:21:19 +0000
commit2a27d0e4e61c2eecbb9557e8ad5d0a55077ee4ff (patch)
tree541499460deec89410ad8f28f59935e1d5331329 /test/scripts
parentdcd037631f32cdaed817d40ac086f4d933f51bd0 (diff)
Testsuite: testcase for DKIM bug 2029
Diffstat (limited to 'test/scripts')
-rw-r--r--test/scripts/4500-DKIM/4506105
-rw-r--r--test/scripts/4500-DKIM/4520 (renamed from test/scripts/4500-DKIM/4503)0
-rw-r--r--test/scripts/4500-DKIM/4521 (renamed from test/scripts/4500-DKIM/4509)2
-rw-r--r--test/scripts/4500-DKIM/4522 (renamed from test/scripts/4500-DKIM/4510)2
4 files changed, 107 insertions, 2 deletions
diff --git a/test/scripts/4500-DKIM/4506 b/test/scripts/4500-DKIM/4506
new file mode 100644
index 000000000..b2d53e8fc
--- /dev/null
+++ b/test/scripts/4500-DKIM/4506
@@ -0,0 +1,105 @@
+# DKIM verify, errors
+#
+exim -d-all+acl -DSERVER=server -bd -oX PORT_D
+****
+#
+# This should fail verify (missing header hash in sig header)
+# - sha1, 1024b
+# Mail original in aux-fixed/4500.msg1.txt
+# Sig generated by: perl aux-fixed/dkim/sign.pl --method=simple/simple < aux-fixed/4500.msg1.txt
+client 127.0.0.1 PORT_D
+??? 220
+HELO xxx
+??? 250
+MAIL FROM:<CALLER@bloggs.com>
+??? 250
+RCPT TO:<a@test.ex>
+??? 250
+DATA
+??? 354
+DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=test.ex; h=from:to
+ :date:message-id:subject; s=sel; bh=OB9dZVu7+5/ufs3TH9leIcEpXSo=;
+From: mrgus@text.ex
+To: bakawolf@yahoo.com
+Date: Thu, 19 Nov 2015 17:00:07 -0700
+Message-ID: <qwerty1234@disco-zombie.net>
+Subject: simple test
+
+This is a simple test.
+.
+??? 250
+QUIT
+??? 221
+****
+#
+#
+# This should fail verify (missing body hash in sig header)
+# - sha1, 1024b
+# Mail original in aux-fixed/4500.msg1.txt
+# Sig generated by: perl aux-fixed/dkim/sign.pl --method=simple/simple < aux-fixed/4500.msg1.txt
+client 127.0.0.1 PORT_D
+??? 220
+HELO xxx
+??? 250
+MAIL FROM:<CALLER@bloggs.com>
+??? 250
+RCPT TO:<a@test.ex>
+??? 250
+DATA
+??? 354
+DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=test.ex; h=from:to
+ :date:message-id:subject; s=sel; b=
+ PeUA8iBGfStWv+9/BBKkvCEYj/AVMl4e9k+AqWOXKyuEUfHxqAnV+sPnOejpmvT8
+ 41kuM4u0bICvK371YvB/yO61vtliRhyqU76Y2e55p2uvMADb3UyDhLyzpco4+yBo
+ 1w0AuIxu0VU4TK8UmOLyCw/1hxrh1DcEInbEMEKJ7kI=
+From: mrgus@text.ex
+To: bakawolf@yahoo.com
+Date: Thu, 19 Nov 2015 17:00:07 -0700
+Message-ID: <qwerty1234@disco-zombie.net>
+Subject: simple test
+
+This is a simple test.
+.
+??? 250
+QUIT
+??? 221
+****
+#
+#
+# This should fail verify (missing body)
+# - sha1, 1024b
+# Mail original in aux-fixed/4500.msg1.txt
+# Sig generated by: perl aux-fixed/dkim/sign.pl --method=simple/simple < aux-fixed/4500.msg1.txt
+client 127.0.0.1 PORT_D
+??? 220
+HELO xxx
+??? 250
+MAIL FROM:<CALLER@bloggs.com>
+??? 250
+RCPT TO:<a@test.ex>
+??? 250
+DATA
+??? 354
+DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=test.ex; h=from:to
+ :date:message-id:subject; s=sel; bh=OB9dZVu7+5/ufs3TH9leIcEpXSo=; b=
+ PeUA8iBGfStWv+9/BBKkvCEYj/AVMl4e9k+AqWOXKyuEUfHxqAnV+sPnOejpmvT8
+ 41kuM4u0bICvK371YvB/yO61vtliRhyqU76Y2e55p2uvMADb3UyDhLyzpco4+yBo
+ 1w0AuIxu0VU4TK8UmOLyCw/1hxrh1DcEInbEMEKJ7kI=
+From: mrgus@text.ex
+To: bakawolf@yahoo.com
+Date: Thu, 19 Nov 2015 17:00:07 -0700
+Message-ID: <qwerty1234@disco-zombie.net>
+Subject: simple test
+.
+??? 250
+QUIT
+??? 221
+****
+#
+#
+#
+#
+#
+killdaemon
+no_stdout_check
+no_msglog_check
diff --git a/test/scripts/4500-DKIM/4503 b/test/scripts/4500-DKIM/4520
index 6efe3545a..6efe3545a 100644
--- a/test/scripts/4500-DKIM/4503
+++ b/test/scripts/4500-DKIM/4520
diff --git a/test/scripts/4500-DKIM/4509 b/test/scripts/4500-DKIM/4521
index 3447fa10b..7b341521f 100644
--- a/test/scripts/4500-DKIM/4509
+++ b/test/scripts/4500-DKIM/4521
@@ -1,4 +1,4 @@
-# DKIM signing, with CHUNKING
+# DKIM signing, with CHUNKING, stdin
#
exim -bd -DSERVER=server -oX PORT_S
****
diff --git a/test/scripts/4500-DKIM/4510 b/test/scripts/4500-DKIM/4522
index 938b10e61..e8924b84e 100644
--- a/test/scripts/4500-DKIM/4510
+++ b/test/scripts/4500-DKIM/4522
@@ -1,4 +1,4 @@
-# DKIM signing, with CHUNKING
+# DKIM signing, with CHUNKING, smtp/tcp
#
exim -bd -DSERVER=server -oX PORT_S
****