1 # DKIM verify, simple canonicalisation
3 exim -DSERVER=server -DMSIZE='rsa=512 ed25519=250' -bd -oX PORT_D
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
16 MAIL FROM:<CALLER@bloggs.com>
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=
28 To: bakawolf@yahoo.com
29 Date: Thu, 19 Nov 2015 17:00:07 -0700
30 Message-ID: <qwerty1234@disco-zombie.net>
33 This is a simple test.
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
49 MAIL FROM:<CALLER@bloggs.com>
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==
60 To: bakawolf@yahoo.com
61 Date: Thu, 19 Nov 2015 17:00:07 -0700
62 Message-ID: <qwerty1234@disco-zombie.net>
65 This is a simple test.
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
81 MAIL FROM:<CALLER@bloggs.com>
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=
93 To: bakawolf@yahoo.com
94 Date: Thu, 19 Nov 2015 17:00:07 -0700
95 Message-ID: <qwerty1234@disco-zombie.net>
98 This is a simple test.
106 # This should pass. The pubkey dns decord has a additional sha1-only h= field
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
116 MAIL FROM:<CALLER@bloggs.com>
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==
127 To: bakawolf@yahoo.com
128 Date: Thu, 19 Nov 2015 17:00:07 -0700
129 Message-ID: <qwerty1234@disco-zombie.net>
132 This is a simple test.
142 # A verifier that refuses sha1
143 exim -DSERVER=server -DOPTION -DMSIZE='rsa=512 ed25519c=32' -bd -oX PORT_D
146 # This should fail despite being a passing submission above (with the unlimited verifier).
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
154 MAIL FROM:<CALLER@bloggs.com>
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=
166 To: bakawolf@yahoo.com
167 Date: Thu, 19 Nov 2015 17:00:07 -0700
168 Message-ID: <qwerty1234@disco-zombie.net>
171 This is a simple test.
184 # With the default keysize minima, a 512b key should fail
185 exim -DSERVER=server -bd -oX PORT_D
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
195 MAIL FROM:<CALLER@bloggs.com>
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==
206 To: bakawolf@yahoo.com
207 Date: Thu, 19 Nov 2015 17:00:07 -0700
208 Message-ID: <qwerty1234@disco-zombie.net>
211 This is a simple test.