3 exim -DSERVER=server -bd -oX PORT_D
6 # This should fail verify (missing header hash in sig header)
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 127.0.0.1 PORT_D
14 MAIL FROM:<CALLER@bloggs.com>
20 DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=test.ex; h=from:to
21 :date:message-id:subject; s=sel; bh=OB9dZVu7+5/ufs3TH9leIcEpXSo=;
23 To: bakawolf@yahoo.com
24 Date: Thu, 19 Nov 2015 17:00:07 -0700
25 Message-ID: <qwerty1234@disco-zombie.net>
28 This is a simple test.
36 # This should fail verify (missing body hash in sig header)
38 # Mail original in aux-fixed/4500.msg1.txt
39 # Sig generated by: perl aux-fixed/dkim/sign.pl --method=simple/simple < aux-fixed/4500.msg1.txt
40 client 127.0.0.1 PORT_D
44 MAIL FROM:<CALLER@bloggs.com>
50 DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=test.ex; h=from:to
51 :date:message-id:subject; s=sel; b=
52 PeUA8iBGfStWv+9/BBKkvCEYj/AVMl4e9k+AqWOXKyuEUfHxqAnV+sPnOejpmvT8
53 41kuM4u0bICvK371YvB/yO61vtliRhyqU76Y2e55p2uvMADb3UyDhLyzpco4+yBo
54 1w0AuIxu0VU4TK8UmOLyCw/1hxrh1DcEInbEMEKJ7kI=
56 To: bakawolf@yahoo.com
57 Date: Thu, 19 Nov 2015 17:00:07 -0700
58 Message-ID: <qwerty1234@disco-zombie.net>
61 This is a simple test.
69 # This should fail verify (missing body)
71 # Mail original in aux-fixed/4500.msg1.txt
72 # Sig generated by: perl aux-fixed/dkim/sign.pl --method=simple/simple < aux-fixed/4500.msg1.txt
73 client 127.0.0.1 PORT_D
77 MAIL FROM:<CALLER@bloggs.com>
83 DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=test.ex; h=from:to
84 :date:message-id:subject; s=sel; bh=OB9dZVu7+5/ufs3TH9leIcEpXSo=; b=
85 PeUA8iBGfStWv+9/BBKkvCEYj/AVMl4e9k+AqWOXKyuEUfHxqAnV+sPnOejpmvT8
86 41kuM4u0bICvK371YvB/yO61vtliRhyqU76Y2e55p2uvMADb3UyDhLyzpco4+yBo
87 1w0AuIxu0VU4TK8UmOLyCw/1hxrh1DcEInbEMEKJ7kI=
89 To: bakawolf@yahoo.com
90 Date: Thu, 19 Nov 2015 17:00:07 -0700
91 Message-ID: <qwerty1234@disco-zombie.net>
101 # This should refuse to do verification (over-long body line)
102 # The sig is bogus, but we don't verify it
103 write test-data 1x16386
107 client 127.0.0.1 PORT_D
111 MAIL FROM:<CALLER@bloggs.com>
117 DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=test.ex; h=from:to
118 :date:message-id:subject; s=sel; bh=OB9dZVu7+5/ufs3TH9leIcEpXSo=; b=
119 PeUA8iBGfStWv+9/BBKkvCEYj/AVMl4e9k+AqWOXKyuEUfHxqAnV+sPnOejpmvT8
120 41kuM4u0bICvK371YvB/yO61vtliRhyqU76Y2e55p2uvMADb3UyDhLyzpco4+yBo
121 1w0AuIxu0VU4TK8UmOLyCw/1hxrh1DcEInbEMEKJ7kI=
123 To: bakawolf@yahoo.com
124 Date: Thu, 19 Nov 2015 17:00:07 -0700
125 Message-ID: <qwerty1234@disco-zombie.net>
137 # This should fail as the sig on the mail uses sha1 but the dns record requires sha256
140 # Mail original in aux-fixed/4500.msg1.txt
141 # Sig generated by: perl aux-fixed/dkim/sign.pl --keyfile=aux-fixed/dkim/dkim512.private \
142 # --method=simple/simple --selector=ses_sha1 < aux-fixed/4500.msg1.txt
143 # and then modifying the s= manually
144 client 127.0.0.1 PORT_D
148 MAIL FROM:<CALLER@bloggs.com>
154 DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=test.ex; h=from:to
155 :date:message-id:subject; s=ses_sha256; bh=OB9dZVu7+5/ufs3TH9leIcE
156 pXSo=; b=hG14R3Eb/f13Pw6J0LmovHAL01KHVmVrTZ7KJrqieYTQemUaseoU2pB
157 7/g8NUwG/AsYoaw3gaAK8PqxSk2lcIQ==
159 To: bakawolf@yahoo.com
160 Date: Thu, 19 Nov 2015 17:00:07 -0700
161 Message-ID: <qwerty1234@disco-zombie.net>
164 This is a simple test.
173 # See what happens when we do a DNS lookup from the DKIM ACL
174 exim -DSERVER=server -DBAD=bad -bd -oX PORT_D
176 # This should fail verify (missing header hash in sig header)
178 # Mail original in aux-fixed/4500.msg1.txt
179 # Sig generated by: perl aux-fixed/dkim/sign.pl --method=simple/simple < aux-fixed/4500.msg1.txt
180 client 127.0.0.1 PORT_D
184 MAIL FROM:<CALLER@bloggs.com>
190 DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=test.ex; h=from:to
191 :date:message-id:subject; s=sel; bh=OB9dZVu7+5/ufs3TH9leIcEpXSo=;
193 To: bakawolf@yahoo.com
194 Date: Thu, 19 Nov 2015 17:00:07 -0700
195 Message-ID: <qwerty1234@disco-zombie.net>
198 This is a simple test.