ARC: add independent-source testcase. Fix signatures by not line-terminating
[users/jgh/exim.git] / test / scripts / 4540-DKIM-Ed25519 / 4540
1 # DKIM verify, ed25519
2 #
3 exim -DSERVER=server -bd -oX PORT_D
4 ****
5 #
6 # This should pass, only Mail::DKIM::Signer does not handle ed25519-sha256 yet
7 #
8 # Mail original (will be)in aux-fixed/4500.msg1.txt
9 # Sig generated by: perl aux-fixed/dkim/sign.pl --algorithm=ed255190sha256 \
10 #                       --method=simple/simple < aux-fixed/4500.msg1.txt
11 #
12 # TODO - until we have that we can only test internal consistency,
13 # signing vs. verification.  For now, use a message we signed with
14 # the Exim GnuTLS implementation (then we can test GnuTLS vs. others)
15 #
16 client 127.0.0.1 PORT_D
17 ??? 220
18 HELO xxx
19 ??? 250
20 MAIL FROM:<CALLER@bloggs.com>
21 ??? 250
22 RCPT TO:<a@test.ex>
23 ??? 250
24 DATA
25 ??? 354
26 DKIM-Signature: v=1; a=ed25519-sha256; q=dns/txt; c=relaxed/relaxed; d=test.ex
27         ; s=sed; h=From:To:Subject; bh=/Ab0giHZitYQbDhFszoqQRUkgqueaX9zatJttIU/plc=;
28          b=5fhyD3EILDrnL4DnkD4hDaeis7+GSzL9GMHrhIDZJjuJ00WD5iI8SQ1q9rDfzFL/Kdw0VIyB4R
29         Dq0a4H6HI+Bw==;
30 Received: from jgh by myhost.test.ex with local (Exim x.yz)
31         envelope-from <jgh@myhost.test.ex>)
32          1dtXln-0000YP-Hb
33          a@test.ex; Sun, 17 Sep 2017 12:29:51 +0100
34 From: nobody@example.com
35 Message-Id: <E1dtXln-0000YP-Hb@myhost.test.ex>
36 Sender: CALLER_NAME <jgh@myhost.test.ex>
37 Date: Sun, 17 Sep 2017 12:29:51 +0100
38
39 content
40 .
41 ??? 250
42 QUIT
43 ??? 221
44 ****
45 #
46 #
47 # This should pass, an independently-generated sample from Scott Kitterman.
48 # I don't want to retain this longterm as it hits an external DNS record,
49 # not under the testsuite.
50 client 127.0.0.1 PORT_D
51 ??? 220
52 HELO xxx
53 ??? 250
54 MAIL FROM:<CALLER@bloggs.com>
55 ??? 250
56 RCPT TO:<a@test.ex>
57 ??? 250
58 DATA
59 ??? 354
60 DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/simple; d=kitterman.org;
61  i=@kitterman.org; q=dns/txt; s=ed25519; t=1517847601;
62  h=message-id : date : from : to : subject : date : from :
63  subject; bh=wE7NXSkgnx9PGiavN4OZhJztvkqPDlemV3OGuEnLwNo=;
64  b=sEnnE99Xsjpcqa/cNf8k/KQCEgjJ/4tswIKoNvq2q0fFQL6XBORJ2fQb
65  Fvt34Tb4sOxlZtBYu01kEJlmGz4uCw==
66 Authentication-Results: lists.example.org; arc=none; spf=pass smtp.mfrom=example.com; dmarc=pass
67 Received: from localhost
68 Message-ID: <example@example.com>
69 Date: Mon, 01 Jan 2011 01:02:03 +0400
70 From: Test User <test@example.com>
71 To: somebody@example.com
72 Subject: Testing
73
74 This is a test message.
75 .
76 ??? 250
77 QUIT
78 ??? 221
79 ****
80 #
81 killdaemon
82 no_stdout_check
83 no_msglog_check