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