summaryrefslogtreecommitdiff
path: root/test/scripts/4500-DKIM
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2018-01-06 14:48:35 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2018-01-06 14:48:35 +0000
commit2c47372fad0f829ddfa29d04095f57a70206469c (patch)
tree0f22d80c369d07d359b0ad25f627f6adb347a4b4 /test/scripts/4500-DKIM
parent7952eef9f77899f36b23f1b9fa679f459cd52ffd (diff)
Logging: disable the verbose DKIM verification line by default; add a tag to <= lines.
New log_selector controls "dkim" and "dkim_verbose".
Diffstat (limited to 'test/scripts/4500-DKIM')
-rw-r--r--test/scripts/4500-DKIM/450636
1 files changed, 36 insertions, 0 deletions
diff --git a/test/scripts/4500-DKIM/4506 b/test/scripts/4500-DKIM/4506
index 4499315d2..1f4a9d60a 100644
--- a/test/scripts/4500-DKIM/4506
+++ b/test/scripts/4500-DKIM/4506
@@ -204,5 +204,41 @@ QUIT
#
#
killdaemon
+#
+#
+# A deny return from the dkim ACL should reject the message
+exim -DSERVER=server -DSTRICT=y -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:<shouldfail@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.
+.
+??? 550
+QUIT
+??? 221
+****
+#
+#
+killdaemon
no_stdout_check
no_msglog_check