Move ESMPT LIMITS extension from experimental to mainline
[exim.git] / test / scripts / 4520-TLS-DKIM / 4520
1 # DKIM verify, simple canonicalisation
2 #
3 exim -DSERVER=server -DMSIZE='rsa=512 ed25519=250' -bd -oX PORT_D
4 ****
5 #
6 # This should pass.
7 #  - sha1, 1024b
8 # Mail original in aux-fixed/4500.msg1.txt
9 # Sig generated by: perl aux-fixed/dkim/sign.pl --method=simple/simple < aux-fixed/4500.msg1.txt
10 client-anytls 127.0.0.1 PORT_D
11 ??? 220
12 EHLO test
13 ??? 250-myhost
14 ??? 250-SIZE
15 ??? 250-LIMITS
16 ??? 250-8BITMIME
17 ??? 250-PIPELINING
18 ??? 250-STARTTLS
19 ??? 250 HELP
20 STARTTLS
21 ??? 220
22 HELO xxx
23 ??? 250
24 MAIL FROM:<CALLER@bloggs.com>
25 ??? 250
26 RCPT TO:<a@test.ex>
27 ??? 250
28 DATA
29 ??? 354
30 DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=test.ex; h=from:to
31         :date:message-id:subject; s=sel; bh=OB9dZVu7+5/ufs3TH9leIcEpXSo=; b=
32         PeUA8iBGfStWv+9/BBKkvCEYj/AVMl4e9k+AqWOXKyuEUfHxqAnV+sPnOejpmvT8
33         41kuM4u0bICvK371YvB/yO61vtliRhyqU76Y2e55p2uvMADb3UyDhLyzpco4+yBo
34         1w0AuIxu0VU4TK8UmOLyCw/1hxrh1DcEInbEMEKJ7kI=
35 From: mrgus@text.ex
36 To: bakawolf@yahoo.com
37 Date: Thu, 19 Nov 2015 17:00:07 -0700
38 Message-ID: <qwerty1234@disco-zombie.net>
39 Subject: simple test
40
41 This is a simple test.
42 .
43 ??? 250
44 QUIT
45 ??? 221
46 ****
47 #
48 # This should pass.
49 #  - sha1, 512b
50 # Mail original in aux-fixed/4500.msg1.txt
51 # Sig generated by: perl aux-fixed/dkim/sign.pl --method=simple/simple --selector=ses \
52 #                       --keyfile=aux-fixed/dkim/dkim512.private < aux-fixed/4500.msg1.txt
53 client-anytls 127.0.0.1 PORT_D
54 ??? 220
55 EHLO test
56 ??? 250-
57 ??? 250-
58 ??? 250-
59 ??? 250-
60 ??? 250-
61 ??? 250-
62 ??? 250
63 STARTTLS
64 ??? 220
65 HELO xxx
66 ??? 250
67 MAIL FROM:<CALLER@bloggs.com>
68 ??? 250
69 RCPT TO:<a@test.ex>
70 ??? 250
71 DATA
72 ??? 354
73 DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=test.ex; h=from:to
74         :date:message-id:subject; s=ses; bh=OB9dZVu7+5/ufs3TH9leIcEpXSo=; b=
75         cIErF1eueIT9AU4qG54FyT3yrlVDDM7RZnuU6fWTevZpAuMqhYcRO8tU3U4vtKWB
76         +I2vd+F1gzqCzBcRtfLhZg==
77 From: mrgus@text.ex
78 To: bakawolf@yahoo.com
79 Date: Thu, 19 Nov 2015 17:00:07 -0700
80 Message-ID: <qwerty1234@disco-zombie.net>
81 Subject: simple test
82
83 This is a simple test.
84 .
85 ??? 250
86 QUIT
87 ??? 221
88 ****
89 #
90 # This should pass.
91 #  - sha256, 1024b
92 # Mail original in aux-fixed/4500.msg1.txt
93 # Sig generated by: perl aux-fixed/dkim/sign.pl --algorithm=rsa-sha256 \
94 #                       --method=simple/simple < aux-fixed/4500.msg1.txt
95 client-anytls 127.0.0.1 PORT_D
96 ??? 220
97 EHLO test
98 ??? 250-
99 ??? 250-
100 ??? 250-
101 ??? 250-
102 ??? 250-
103 ??? 250-
104 ??? 250
105 STARTTLS
106 ??? 220
107 HELO xxx
108 ??? 250
109 MAIL FROM:<CALLER@bloggs.com>
110 ??? 250
111 RCPT TO:<a@test.ex>
112 ??? 250
113 DATA
114 ??? 354
115 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=test.ex; h=from:to
116         :date:message-id:subject; s=sel; bh=3UbbJTudPxmejzh7U1Zg33U3QT+1
117         6kfV2eOTvMeiEis=; b=xQSD/JMqz0C+xKf0A1NTkPTbkDuDdJbpBuyjjT9iYvyP
118         Zez+xl0TkoPobFGVa6EN8+ZeYV18zjifhtWYLSsNmPinUtcpKQLG1zxAKmmS0JEh
119         +qihlWbeGJ5+tK588ugUzXHPj+4JBW0H6kxHvdH0l2SlQE5xs/cdggnx5QX5USY=
120 From: mrgus@text.ex
121 To: bakawolf@yahoo.com
122 Date: Thu, 19 Nov 2015 17:00:07 -0700
123 Message-ID: <qwerty1234@disco-zombie.net>
124 Subject: simple test
125
126 This is a simple test.
127 .
128 ??? 250
129 QUIT
130 ??? 221
131 ****
132 #
133 #
134 # This should pass.  The pubkey dns decord has a additional sha1-only h= field
135 #
136 #  - sha1, 512b
137 # Mail original in aux-fixed/4500.msg1.txt
138 # Sig generated by: perl aux-fixed/dkim/sign.pl --keyfile=aux-fixed/dkim/dkim512.private \
139 #                       --method=simple/simple --selector=ses_sha1 < aux-fixed/4500.msg1.txt
140 client-anytls 127.0.0.1 PORT_D
141 ??? 220
142 EHLO test
143 ??? 250-
144 ??? 250-
145 ??? 250-
146 ??? 250-
147 ??? 250-
148 ??? 250-
149 ??? 250
150 STARTTLS
151 ??? 220
152 HELO xxx
153 ??? 250
154 MAIL FROM:<CALLER@bloggs.com>
155 ??? 250
156 RCPT TO:<a@test.ex>
157 ??? 250
158 DATA
159 ??? 354
160 DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=test.ex; h=from:to
161         :date:message-id:subject; s=ses_sha1; bh=OB9dZVu7+5/ufs3TH9leIcE
162         pXSo=; b=hG14R3Eb/f13Pw6J0LmovHAL01KHVmVrTZ7KJrqieYTQemUaseoU2pB
163         7/g8NUwG/AsYoaw3gaAK8PqxSk2lcIQ==
164 From: mrgus@text.ex
165 To: bakawolf@yahoo.com
166 Date: Thu, 19 Nov 2015 17:00:07 -0700
167 Message-ID: <qwerty1234@disco-zombie.net>
168 Subject: simple test
169
170 This is a simple test.
171 .
172 ??? 250
173 QUIT
174 ??? 221
175 ****
176 #
177 #
178 killdaemon
179 #
180 # A verifier that refuses sha1
181 exim -DSERVER=server -DOPTION -DMSIZE='rsa=512 ed25519c=32' -bd -oX PORT_D
182 ****
183 #
184 # This should fail despite being a passing submission above (with the unlimited verifier).
185 #  - sha1, 1024b
186 # Mail original in aux-fixed/4500.msg1.txt
187 # Sig generated by: perl aux-fixed/dkim/sign.pl --method=simple/simple < aux-fixed/4500.msg1.txt
188 client-anytls 127.0.0.1 PORT_D
189 ??? 220
190 EHLO test
191 ??? 250-
192 ??? 250-
193 ??? 250-
194 ??? 250-
195 ??? 250-
196 ??? 250-
197 ??? 250
198 STARTTLS
199 ??? 220
200 HELO xxx
201 ??? 250
202 MAIL FROM:<CALLER@bloggs.com>
203 ??? 250
204 RCPT TO:<a@test.ex>
205 ??? 250
206 DATA
207 ??? 354
208 DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=test.ex; h=from:to
209         :date:message-id:subject; s=sel; bh=OB9dZVu7+5/ufs3TH9leIcEpXSo=; b=
210         PeUA8iBGfStWv+9/BBKkvCEYj/AVMl4e9k+AqWOXKyuEUfHxqAnV+sPnOejpmvT8
211         41kuM4u0bICvK371YvB/yO61vtliRhyqU76Y2e55p2uvMADb3UyDhLyzpco4+yBo
212         1w0AuIxu0VU4TK8UmOLyCw/1hxrh1DcEInbEMEKJ7kI=
213 From: mrgus@text.ex
214 To: bakawolf@yahoo.com
215 Date: Thu, 19 Nov 2015 17:00:07 -0700
216 Message-ID: <qwerty1234@disco-zombie.net>
217 Subject: simple test
218
219 This is a simple test.
220 .
221 ??? 250
222 QUIT
223 ??? 221
224 ****
225 killdaemon
226 #
227 #
228 #
229 #
230 #
231 #
232 # With the default keysize minima, a 512b key should fail
233 exim -DSERVER=server -bd -oX PORT_D
234 ****
235 #  - sha1, 512b
236 # Mail original in aux-fixed/4500.msg1.txt
237 # Sig generated by: perl aux-fixed/dkim/sign.pl --method=simple/simple --selector=ses \
238 #                       --keyfile=aux-fixed/dkim/dkim512.private < aux-fixed/4500.msg1.txt
239 client-anytls 127.0.0.1 PORT_D
240 ??? 220
241 EHLO test
242 ??? 250-
243 ??? 250-
244 ??? 250-
245 ??? 250-
246 ??? 250-
247 ??? 250-
248 ??? 250
249 STARTTLS
250 ??? 220
251 HELO xxx
252 ??? 250
253 MAIL FROM:<CALLER@bloggs.com>
254 ??? 250
255 RCPT TO:<a@test.ex>
256 ??? 250
257 DATA
258 ??? 354
259 DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=test.ex; h=from:to
260         :date:message-id:subject; s=ses; bh=OB9dZVu7+5/ufs3TH9leIcEpXSo=; b=
261         cIErF1eueIT9AU4qG54FyT3yrlVDDM7RZnuU6fWTevZpAuMqhYcRO8tU3U4vtKWB
262         +I2vd+F1gzqCzBcRtfLhZg==
263 From: mrgus@text.ex
264 To: bakawolf@yahoo.com
265 Date: Thu, 19 Nov 2015 17:00:07 -0700
266 Message-ID: <qwerty1234@disco-zombie.net>
267 Subject: simple test
268
269 This is a simple test.
270 .
271 ??? 250
272 QUIT
273 ??? 221
274 ****
275 killdaemon
276 #
277 no_stdout_check
278 no_msglog_check