DKIM: support timestamp and expiry tags in signing. Bug 2260
[exim.git] / test / scripts / 4500-DKIM / 4520
index 1bc4c603038ffbf25d16965a3426c485f7675704..8e60f4bec0ebe398a0eb2d44e483329170033ac2 100644 (file)
@@ -11,8 +11,8 @@ From: second@example.com
 content
 ****
 #
-# single header, oversigned
-exim -DOPT=From:From -odf b@test.ex
+# single header, oversigned, with timestamps
+exim -DOPT=From:From -DTIMES=10 -odf b@test.ex
 From: nobody@example.com
 
 content
@@ -51,15 +51,23 @@ X-mine: two
 content
 ****
 #
-# default header set
-exim -DHEADERS_MAXSIZE=y -odf c@test.ex
+## default header set
+# cannot test that as it includes Date: so results in a varying signature
+#exim -DHEADERS_MAXSIZE=y -odf c@test.ex
+#From: nobody@example.com
+#
+#content
+#****
+##
+# check that on signing we warn in debug mode about verify problems
+exim -d-all+acl -DOPT=From -DSELECTOR=sel_bad -odf d@test.ex
 From: nobody@example.com
 
 content
 ****
 #
-# check that on signing we warn in debug mode about verify problems
-exim -d-all+acl -DOPT=From -DSELECTOR=sel_bad -odf d@test.ex
+# check that an empty dkim_privatekey overrides dkim_strict
+exim -DOPT=From -DSTRICT=true -DSELECTOR=none -odf a@test.ex
 From: nobody@example.com
 
 content