1 # DKIM verify, simple canonicalisation
3 exim -DSERVER=server -DMSIZE='rsa=512 ed25519=250' -bd -oX PORT_D
9 # Mail original in aux-fixed/4500.msg1.txt
10 # Sig generated by: perl aux-fixed/dkim/sign.pl --method=simple/simple < aux-fixed/4500.msg1.txt
11 # NB: simple canon does not affect tabs-vs-spaces in header continuation lines, which
12 # likely matters in the DKIM sig header. Take care!
13 client 127.0.0.1 PORT_D
17 MAIL FROM:<CALLER@bloggs.com>
23 DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=test.ex; h=from:to
24 :date:message-id:subject; s=sel; bh=OB9dZVu7+5/ufs3TH9leIcEpXSo=; b=
25 CoaRNB2Z59hSnhTzT8bYbMIN3P57XAVcFeV5oGEl4aKmhm6Mtu2uIc7B2z9k5+A/
26 +KFIE9HRj7eg9kPzagoPIvI84WE5PN5yRehMjJI6WqhM3V+bQDHkb8ubSmiaYxY5
27 B2Pd/kEGgHUlMDB0Hug4FMMt7GcFxagKspthOT/Pso0=
29 To: bakawolf@yahoo.com
30 Date: Thu, 19 Nov 2015 17:00:07 -0700
31 Message-ID: <qwerty1234@disco-zombie.net>
34 This is a simple test.
44 # Mail original in aux-fixed/4500.msg1.txt
45 # Sig generated by: perl aux-fixed/dkim/sign.pl --method=simple/simple --selector=ses \
46 # --keyfile=aux-fixed/dkim/dkim512.private < aux-fixed/4500.msg1.txt
47 client 127.0.0.1 PORT_D
51 MAIL FROM:<CALLER@bloggs.com>
57 DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=test.ex; h=from:to
58 :date:message-id:subject; s=ses; bh=OB9dZVu7+5/ufs3TH9leIcEpXSo=; b=
59 cIErF1eueIT9AU4qG54FyT3yrlVDDM7RZnuU6fWTevZpAuMqhYcRO8tU3U4vtKWB
60 +I2vd+F1gzqCzBcRtfLhZg==
62 To: bakawolf@yahoo.com
63 Date: Thu, 19 Nov 2015 17:00:07 -0700
64 Message-ID: <qwerty1234@disco-zombie.net>
67 This is a simple test.
77 # Mail original in aux-fixed/4500.msg1.txt
78 # Sig generated by: perl aux-fixed/dkim/sign.pl --algorithm=rsa-sha256 \
79 # --method=simple/simple < aux-fixed/4500.msg1.txt
80 client 127.0.0.1 PORT_D
84 MAIL FROM:<CALLER@bloggs.com>
90 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=test.ex; h=from:to
91 :date:message-id:subject; s=sel; bh=3UbbJTudPxmejzh7U1Zg33U3QT+1
92 6kfV2eOTvMeiEis=; b=xQSD/JMqz0C+xKf0A1NTkPTbkDuDdJbpBuyjjT9iYvyP
93 Zez+xl0TkoPobFGVa6EN8+ZeYV18zjifhtWYLSsNmPinUtcpKQLG1zxAKmmS0JEh
94 +qihlWbeGJ5+tK588ugUzXHPj+4JBW0H6kxHvdH0l2SlQE5xs/cdggnx5QX5USY=
96 To: bakawolf@yahoo.com
97 Date: Thu, 19 Nov 2015 17:00:07 -0700
98 Message-ID: <qwerty1234@disco-zombie.net>
101 This is a simple test.
110 # This should pass. The pubkey dns decord has a additional sha1-only h= field
113 # Mail original in aux-fixed/4500.msg1.txt
114 # Sig generated by: perl aux-fixed/dkim/sign.pl --keyfile=aux-fixed/dkim/dkim512.private \
115 # --method=simple/simple --selector=ses_sha1 < aux-fixed/4500.msg1.txt
116 client 127.0.0.1 PORT_D
120 MAIL FROM:<CALLER@bloggs.com>
126 DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=test.ex; h=from:to
127 :date:message-id:subject; s=ses_sha1; bh=OB9dZVu7+5/ufs3TH9leIcE
128 pXSo=; b=hG14R3Eb/f13Pw6J0LmovHAL01KHVmVrTZ7KJrqieYTQemUaseoU2pB
129 7/g8NUwG/AsYoaw3gaAK8PqxSk2lcIQ==
131 To: bakawolf@yahoo.com
132 Date: Thu, 19 Nov 2015 17:00:07 -0700
133 Message-ID: <qwerty1234@disco-zombie.net>
136 This is a simple test.
146 # A verifier that refuses sha1
147 exim -DSERVER=server -DOPTION -DMSIZE='rsa=512 ed25519c=32' -bd -oX PORT_D
151 # This should fail despite being a passing submission above (with the unlimited verifier).
153 # Mail original in aux-fixed/4500.msg1.txt
154 # Sig generated by: perl aux-fixed/dkim/sign.pl --method=simple/simple < aux-fixed/4500.msg1.txt
155 client 127.0.0.1 PORT_D
159 MAIL FROM:<CALLER@bloggs.com>
165 DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=test.ex; h=from:to
166 :date:message-id:subject; s=sel; bh=OB9dZVu7+5/ufs3TH9leIcEpXSo=; b=
167 PeUA8iBGfStWv+9/BBKkvCEYj/AVMl4e9k+AqWOXKyuEUfHxqAnV+sPnOejpmvT8
168 41kuM4u0bICvK371YvB/yO61vtliRhyqU76Y2e55p2uvMADb3UyDhLyzpco4+yBo
169 1w0AuIxu0VU4TK8UmOLyCw/1hxrh1DcEInbEMEKJ7kI=
171 To: bakawolf@yahoo.com
172 Date: Thu, 19 Nov 2015 17:00:07 -0700
173 Message-ID: <qwerty1234@disco-zombie.net>
176 This is a simple test.
190 # With the default keysize minima, a 512b key should fail
191 exim -DSERVER=server -bd -oX PORT_D
194 # Mail original in aux-fixed/4500.msg1.txt
195 # Sig generated by: perl aux-fixed/dkim/sign.pl --method=simple/simple --selector=ses \
196 # --keyfile=aux-fixed/dkim/dkim512.private < aux-fixed/4500.msg1.txt
197 client 127.0.0.1 PORT_D
201 MAIL FROM:<CALLER@bloggs.com>
207 DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=test.ex; h=from:to
208 :date:message-id:subject; s=ses; bh=OB9dZVu7+5/ufs3TH9leIcEpXSo=; b=
209 cIErF1eueIT9AU4qG54FyT3yrlVDDM7RZnuU6fWTevZpAuMqhYcRO8tU3U4vtKWB
210 +I2vd+F1gzqCzBcRtfLhZg==
212 To: bakawolf@yahoo.com
213 Date: Thu, 19 Nov 2015 17:00:07 -0700
214 Message-ID: <qwerty1234@disco-zombie.net>
217 This is a simple test.
226 # Two signature, one pass one fail. Checking for "at least one pass".
227 # Sigs from (F) and (C) above
228 client 127.0.0.1 PORT_D
232 MAIL FROM:<CALLER@bloggs.com>
238 DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=test.ex; h=from:to
239 :date:message-id:subject; s=ses; bh=OB9dZVu7+5/ufs3TH9leIcEpXSo=; b=
240 cIErF1eueIT9AU4qG54FyT3yrlVDDM7RZnuU6fWTevZpAuMqhYcRO8tU3U4vtKWB
241 +I2vd+F1gzqCzBcRtfLhZg==
242 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=test.ex; h=from:to
243 :date:message-id:subject; s=sel; bh=3UbbJTudPxmejzh7U1Zg33U3QT+1
244 6kfV2eOTvMeiEis=; b=xQSD/JMqz0C+xKf0A1NTkPTbkDuDdJbpBuyjjT9iYvyP
245 Zez+xl0TkoPobFGVa6EN8+ZeYV18zjifhtWYLSsNmPinUtcpKQLG1zxAKmmS0JEh
246 +qihlWbeGJ5+tK588ugUzXHPj+4JBW0H6kxHvdH0l2SlQE5xs/cdggnx5QX5USY=
248 To: bakawolf@yahoo.com
249 Date: Thu, 19 Nov 2015 17:00:07 -0700
250 Message-ID: <qwerty1234@disco-zombie.net>
253 This is a simple test.