DMARC: add ARC info to history records
[exim.git] / test / scripts / 4500-DKIM / 4500
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 # NB: simple canon does not affect tabs-vs-spaces in header continuation lines, which
11 # likely matters in the DKIM sig header.  Take care!
12 client 127.0.0.1 PORT_D
13 ??? 220
14 HELO xxx
15 ??? 250
16 MAIL FROM:<CALLER@bloggs.com>
17 ??? 250
18 RCPT TO:<a@test.ex>
19 ??? 250
20 DATA
21 ??? 354
22 DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=test.ex; h=from:to
23         :date:message-id:subject; s=sel; bh=OB9dZVu7+5/ufs3TH9leIcEpXSo=; b=
24         CoaRNB2Z59hSnhTzT8bYbMIN3P57XAVcFeV5oGEl4aKmhm6Mtu2uIc7B2z9k5+A/
25         +KFIE9HRj7eg9kPzagoPIvI84WE5PN5yRehMjJI6WqhM3V+bQDHkb8ubSmiaYxY5
26         B2Pd/kEGgHUlMDB0Hug4FMMt7GcFxagKspthOT/Pso0=
27 From: mrgus@test.ex
28 To: bakawolf@yahoo.com
29 Date: Thu, 19 Nov 2015 17:00:07 -0700
30 Message-ID: <qwerty1234@disco-zombie.net>
31 Subject: simple test
32
33 This is a simple test.
34 .
35 ??? 250
36 QUIT
37 ??? 221
38 ****
39 #
40 # This should pass.
41 #  - sha1, 512b
42 # Mail original in aux-fixed/4500.msg1.txt
43 # Sig generated by: perl aux-fixed/dkim/sign.pl --method=simple/simple --selector=ses \
44 #                       --keyfile=aux-fixed/dkim/dkim512.private < aux-fixed/4500.msg1.txt
45 client 127.0.0.1 PORT_D
46 ??? 220
47 HELO xxx
48 ??? 250
49 MAIL FROM:<CALLER@bloggs.com>
50 ??? 250
51 RCPT TO:<a@test.ex>
52 ??? 250
53 DATA
54 ??? 354
55 DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=test.ex; h=from:to
56         :date:message-id:subject; s=ses; bh=OB9dZVu7+5/ufs3TH9leIcEpXSo=; b=
57         cIErF1eueIT9AU4qG54FyT3yrlVDDM7RZnuU6fWTevZpAuMqhYcRO8tU3U4vtKWB
58         +I2vd+F1gzqCzBcRtfLhZg==
59 From: mrgus@text.ex
60 To: bakawolf@yahoo.com
61 Date: Thu, 19 Nov 2015 17:00:07 -0700
62 Message-ID: <qwerty1234@disco-zombie.net>
63 Subject: simple test
64
65 This is a simple test.
66 .
67 ??? 250
68 QUIT
69 ??? 221
70 ****
71 #
72 # This should pass.
73 #  - sha256, 1024b
74 # Mail original in aux-fixed/4500.msg1.txt
75 # Sig generated by: perl aux-fixed/dkim/sign.pl --algorithm=rsa-sha256 \
76 #                       --method=simple/simple < aux-fixed/4500.msg1.txt
77 client 127.0.0.1 PORT_D
78 ??? 220
79 HELO xxx
80 ??? 250
81 MAIL FROM:<CALLER@bloggs.com>
82 ??? 250
83 RCPT TO:<a@test.ex>
84 ??? 250
85 DATA
86 ??? 354
87 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=test.ex; h=from:to
88         :date:message-id:subject; s=sel; bh=3UbbJTudPxmejzh7U1Zg33U3QT+1
89         6kfV2eOTvMeiEis=; b=xQSD/JMqz0C+xKf0A1NTkPTbkDuDdJbpBuyjjT9iYvyP
90         Zez+xl0TkoPobFGVa6EN8+ZeYV18zjifhtWYLSsNmPinUtcpKQLG1zxAKmmS0JEh
91         +qihlWbeGJ5+tK588ugUzXHPj+4JBW0H6kxHvdH0l2SlQE5xs/cdggnx5QX5USY=
92 From: mrgus@text.ex
93 To: bakawolf@yahoo.com
94 Date: Thu, 19 Nov 2015 17:00:07 -0700
95 Message-ID: <qwerty1234@disco-zombie.net>
96 Subject: simple test
97
98 This is a simple test.
99 .
100 ??? 250
101 QUIT
102 ??? 221
103 ****
104 #
105 #
106 # This should pass.  The pubkey dns decord has a additional sha1-only h= field
107 #
108 #  - sha1, 512b
109 # Mail original in aux-fixed/4500.msg1.txt
110 # Sig generated by: perl aux-fixed/dkim/sign.pl --keyfile=aux-fixed/dkim/dkim512.private \
111 #                       --method=simple/simple --selector=ses_sha1 < aux-fixed/4500.msg1.txt
112 client 127.0.0.1 PORT_D
113 ??? 220
114 HELO xxx
115 ??? 250
116 MAIL FROM:<CALLER@bloggs.com>
117 ??? 250
118 RCPT TO:<a@test.ex>
119 ??? 250
120 DATA
121 ??? 354
122 DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=test.ex; h=from:to
123         :date:message-id:subject; s=ses_sha1; bh=OB9dZVu7+5/ufs3TH9leIcE
124         pXSo=; b=hG14R3Eb/f13Pw6J0LmovHAL01KHVmVrTZ7KJrqieYTQemUaseoU2pB
125         7/g8NUwG/AsYoaw3gaAK8PqxSk2lcIQ==
126 From: mrgus@text.ex
127 To: bakawolf@yahoo.com
128 Date: Thu, 19 Nov 2015 17:00:07 -0700
129 Message-ID: <qwerty1234@disco-zombie.net>
130 Subject: simple test
131
132 This is a simple test.
133 .
134 ??? 250
135 QUIT
136 ??? 221
137 ****
138 #
139 #
140 killdaemon
141 #
142 # A verifier that refuses sha1
143 exim -DSERVER=server -DOPTION -DMSIZE='rsa=512 ed25519c=32' -bd -oX PORT_D
144 ****
145 #
146 # This should fail despite being a passing submission above (with the unlimited verifier).
147 #  - sha1, 1024b
148 # Mail original in aux-fixed/4500.msg1.txt
149 # Sig generated by: perl aux-fixed/dkim/sign.pl --method=simple/simple < aux-fixed/4500.msg1.txt
150 client 127.0.0.1 PORT_D
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=sel; bh=OB9dZVu7+5/ufs3TH9leIcEpXSo=; b=
162         PeUA8iBGfStWv+9/BBKkvCEYj/AVMl4e9k+AqWOXKyuEUfHxqAnV+sPnOejpmvT8
163         41kuM4u0bICvK371YvB/yO61vtliRhyqU76Y2e55p2uvMADb3UyDhLyzpco4+yBo
164         1w0AuIxu0VU4TK8UmOLyCw/1hxrh1DcEInbEMEKJ7kI=
165 From: mrgus@text.ex
166 To: bakawolf@yahoo.com
167 Date: Thu, 19 Nov 2015 17:00:07 -0700
168 Message-ID: <qwerty1234@disco-zombie.net>
169 Subject: simple test
170
171 This is a simple test.
172 .
173 ??? 250
174 QUIT
175 ??? 221
176 ****
177 killdaemon
178 #
179 #
180 #
181 #
182 #
183 #
184 # With the default keysize minima, a 512b key should fail
185 exim -DSERVER=server -bd -oX PORT_D
186 ****
187 #  - sha1, 512b
188 # Mail original in aux-fixed/4500.msg1.txt
189 # Sig generated by: perl aux-fixed/dkim/sign.pl --method=simple/simple --selector=ses \
190 #                       --keyfile=aux-fixed/dkim/dkim512.private < aux-fixed/4500.msg1.txt
191 client 127.0.0.1 PORT_D
192 ??? 220
193 HELO xxx
194 ??? 250
195 MAIL FROM:<CALLER@bloggs.com>
196 ??? 250
197 RCPT TO:<a@test.ex>
198 ??? 250
199 DATA
200 ??? 354
201 DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=test.ex; h=from:to
202         :date:message-id:subject; s=ses; bh=OB9dZVu7+5/ufs3TH9leIcEpXSo=; b=
203         cIErF1eueIT9AU4qG54FyT3yrlVDDM7RZnuU6fWTevZpAuMqhYcRO8tU3U4vtKWB
204         +I2vd+F1gzqCzBcRtfLhZg==
205 From: mrgus@text.ex
206 To: bakawolf@yahoo.com
207 Date: Thu, 19 Nov 2015 17:00:07 -0700
208 Message-ID: <qwerty1234@disco-zombie.net>
209 Subject: simple test
210
211 This is a simple test.
212 .
213 ??? 250
214 QUIT
215 ??? 221
216 ****
217 killdaemon
218 #
219 no_stdout_check
220 no_msglog_check