Fix filter noerror command. Bug 2318
[exim.git] / test / scripts / 4500-DKIM / 4503
index 6efe3545aa7a614a6ac1b29a35e7620c81a58948..2c501a4e64a20ea894355dae5d851b765cd40739 100644 (file)
@@ -1,37 +1,45 @@
-# DKIM signing
+# DKIM verify, sha512
 #
 #
-exim -bd -DSERVER=server -oX PORT_D
+exim -DSERVER=server -bd -oX PORT_D
 ****
 #
 ****
 #
-# single header signed
-exim -DOPT=From -odf a@test.ex
-From: nobody@example.com
-From: second@example.com
-
-content
-****
+# This should pass, only Mail::DKIM::Signer does not handle rsa-sha512.
+#  - sha512, 1024b
+# Mail original in aux-fixed/4500.msg1.txt
+# Sig generated by: perl aux-fixed/dkim/sign.pl --algorithm=rsa-sha512 \
+#                      --method=simple/simple < aux-fixed/4500.msg1.txt
 #
 #
-# single header, oversigned
-exim -DOPT=From:From -odf b@test.ex
-From: nobody@example.com
-
-content
-****
+# TODO - until we have that we can only test internal consistency,
+# signing vs. verification.
 #
 #
-# default header set
-exim -DHEADERS_MAXSIZE=y -odf c@test.ex
+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-sha512; q=dns/txt; c=relaxed/relaxed; d=test.ex;
+       s=sel; h=From:From; bh=6B2m0DINYQYGHTvmDYQAfAm/wCDFh+Oj57jE2G4jz4nAeJfmjTB6tz
+       me+A5nT6AQ4J3N47vffXLG1exv8bzFZw==; b=YFIC4khvqvXRd8I3r3YTdQqG/SbtDIAYTYVkIo3
+       W7Qe+42eI+w1koPY+ocPtZeRBWWjGVbnZNtof7s5x0sRc6fSDZJAQu6RjnP2xEJWsivowXBMuu8id
+       PtqcDhP/3Q/0W85VMalfSC7eCgpnNxfn73ZjPuBZFCc1wMVh5nUmUvo=;
 From: nobody@example.com
 From: nobody@example.com
+Message-Id: <E10HmaX-0005vi-00@myhost.test.ex>
+Sender: CALLER_NAME <CALLER@myhost.test.ex>
+Date: Tue, 2 Mar 1999 09:44:33 +0000
 
 content
 
 content
-****
-#
-# check that on signing we warn in debug mode about verify problems
-exim -d-all+acl -DHEADERS_MAXSIZE=y -DSELECTOR=sel_bad -odf d@test.ex
-From: nobody@example.com
 
 
-content
+.
+??? 250
+QUIT
+??? 221
 ****
 #
 ****
 #
-millisleep 500
 killdaemon
 killdaemon
+no_stdout_check
 no_msglog_check
 no_msglog_check