Build: iconv type for Hurd
[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 (would be) 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 # Duplicate of the above, but referencing a pubkey in "wrapped-in-SubjectPublicKeyInfo"
48 # format.  Should pass also.
49 client 127.0.0.1 PORT_D
50 ??? 220
51 HELO xxx
52 ??? 250
53 MAIL FROM:<CALLER@bloggs.com>
54 ??? 250
55 RCPT TO:<a@test.ex>
56 ??? 250
57 DATA
58 ??? 354
59 DKIM-Signature: v=1; a=ed25519-sha256; q=dns/txt; c=relaxed/relaxed; d=test.ex
60  ; s=sedw; h=From:To:Subject; bh=/Ab0giHZitYQbDhFszoqQRUkgqueaX9zatJttIU/plc=;
61  b=g0aVl5sI4fFLWDwXj9SnLgENXg2u8H8kKgK5/bXBZ7DKAImkm2+4tRzz1UOveu/Navis53Bg/C
62  9nPxsspzb/Dg==;
63 Received: from jgh by myhost.test.ex with local (Exim x.yz)
64         envelope-from <jgh@myhost.test.ex>)
65          1dtXln-0000YP-Hb
66          a@test.ex; Sun, 17 Sep 2017 12:29:51 +0100
67 From: nobody@example.com
68 Message-Id: <E1dtXln-0000YP-Hb@myhost.test.ex>
69 Sender: CALLER_NAME <jgh@myhost.test.ex>
70 Date: Sun, 17 Sep 2017 12:29:51 +0100
71
72 content
73 .
74 ??? 250
75 QUIT
76 ??? 221
77 ****
78 #
79 #
80
81 # This should pass, an independently-generated sample from Scott Kitterman.
82 # We use a copied version of his DNS record.
83 client 127.0.0.1 PORT_D
84 ??? 220
85 HELO xxx
86 ??? 250
87 MAIL FROM:<CALLER@bloggs.com>
88 ??? 250
89 RCPT TO:<a@test.ex>
90 ??? 250
91 DATA
92 ??? 354
93 DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/simple; d=kitterman.org;
94  i=@kitterman.org; q=dns/txt; s=ed25519; t=1517847601;
95  h=message-id : date : from : to : subject : date : from :
96  subject; bh=wE7NXSkgnx9PGiavN4OZhJztvkqPDlemV3OGuEnLwNo=;
97  b=sEnnE99Xsjpcqa/cNf8k/KQCEgjJ/4tswIKoNvq2q0fFQL6XBORJ2fQb
98  Fvt34Tb4sOxlZtBYu01kEJlmGz4uCw==
99 Authentication-Results: lists.example.org; arc=none; spf=pass smtp.mfrom=example.com; dmarc=pass
100 Received: from localhost
101 Message-ID: <example@example.com>
102 Date: Mon, 01 Jan 2011 01:02:03 +0400
103 From: Test User <test@example.com>
104 To: somebody@example.com
105 Subject: Testing
106
107 This is a test message.
108 .
109 ??? 250
110 QUIT
111 ??? 221
112 ****
113 #
114 killdaemon
115 #
116 #
117 #
118 #
119 # This should fail because the signing pubkey is too small.
120 exim -DSERVER=server -DMSIZE='rsa=1024 ed25519=300' -bd -oX PORT_D
121 ****
122 #
123 # Duplicate test input to the first one, above.
124 #
125 client 127.0.0.1 PORT_D
126 ??? 220
127 HELO xxx
128 ??? 250
129 MAIL FROM:<CALLER@bloggs.com>
130 ??? 250
131 RCPT TO:<a@test.ex>
132 ??? 250
133 DATA
134 ??? 354
135 DKIM-Signature: v=1; a=ed25519-sha256; q=dns/txt; c=relaxed/relaxed; d=test.ex
136         ; s=sed; h=From:To:Subject; bh=/Ab0giHZitYQbDhFszoqQRUkgqueaX9zatJttIU/plc=;
137          b=5fhyD3EILDrnL4DnkD4hDaeis7+GSzL9GMHrhIDZJjuJ00WD5iI8SQ1q9rDfzFL/Kdw0VIyB4R
138         Dq0a4H6HI+Bw==;
139 Received: from jgh by myhost.test.ex with local (Exim x.yz)
140         envelope-from <jgh@myhost.test.ex>)
141          1dtXln-0000YP-Hb
142          a@test.ex; Sun, 17 Sep 2017 12:29:51 +0100
143 From: nobody@example.com
144 Message-Id: <E1dtXln-0000YP-Hb@myhost.test.ex>
145 Sender: CALLER_NAME <jgh@myhost.test.ex>
146 Date: Sun, 17 Sep 2017 12:29:51 +0100
147
148 content
149 .
150 ??? 250
151 QUIT
152 ??? 221
153 ****
154 killdaemon
155 #
156 no_stdout_check
157 no_msglog_check